• dterrazas

    (@dterrazas)


    I had an issue with the plugin and my Multisite. I don’t think you can add/concatenate arrays together like in the example below in BOLD

    I had to edit init.php to resolve this issue. I just commented out the return part for now. I do not know what the full impact will be from this edit but it seems to be working okay now. I have been running version 2.2 for years and finally decided to figure out why I could not upgrade.

    Here is the error message:
    Fatal error: Unsupported operand types in /home/blogsite/public_html/wp-content/plugins/wordpress-23-related-posts-plugin/init.php on line 119

    function wp_rp_get_platform_options() {
    $options = wp_rp_get_options();

    $thumb_options = array(‘custom_size_thumbnail_enabled’ => false);

    if (!empty($options[‘custom_size_thumbnail_enabled’])) {
    $thumb_options[‘custom_size_thumbnail_enabled’] = $options[‘custom_size_thumbnail_enabled’];
    $thumb_options[‘custom_thumbnail_width’] = $options[‘custom_thumbnail_width’];
    $thumb_options[‘custom_thumbnail_height’] = $options[‘custom_thumbnail_height’];
    }
    //return $options[‘desktop’] + $thumb_options;
    }

    https://wordpress.org/plugins/wordpress-23-related-posts-plugin/

Viewing 1 replies (of 1 total)
  • PetraP

    (@petrap)

    Hey,

    thanks for reaching out!
    Quick question(s) – have you tried installing the plugin via the zip file and not via upgrade button in the dashboard? Also, do you use a WP Firewall plugin or something similar? We had a user that couldn’t make the upgrade because of WP Firewall plugin.

    Looking forward to your reply and sorry for the inconvenience,
    Petra

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Error in Init.php, the entire site was blank, admin as well’ is closed to new replies.