• Resolved gort187

    (@gort187)


    I just completed the recommended upgrade of your plug in and now I only get a white screen while in the admin area that has the following message

    Parse error: syntax error, unexpected ‘[‘ in /home/MYDIRECTORY/public_html/wp-content/plugins/xml-sitemap-feed/includes/class-xmlsitemapfeed-admin.php on line 632

    When I go back to the update page, this is what was installed

    Downloading update from https://downloads.wordpress.org/plugin/xml-sitemap-feed.4.8.2.zip

    When I try to navigate around with in the admin, I get this message and I can not get to the plugins section to uninstall it. Any ideas on how to get this corrected?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Steffi

    (@steffievolvcom)

    We have received the same error which took down the site completely. When I removed your plugin the site works again. Can you please let us know when you get this fixed so that we can reinstall latest plugin update. Thanks!

    I solved this issue by copying some lines in class-xmlsitemapfeed-admin.php of version 4.7.5 to the installed file of version 4.8.2.
    Afterwards line 632 and 633 read:

    $genres = !empty($options[‘genres’]) ? $options[‘genres’] : array();
    $genres_default = !empty($genres[‘default’]) ? (array)$genres[‘default’] : array();

    And line 655:

    $keywords = !empty($options[‘keywords’]) ? $options[‘keywords’] : array();

    Steffi

    (@steffievolvcom)

    is the vendor going to update the plugin? I don’t like to tweak code of someone else’s plugin.

    The version 4.8.2 has been published about 21 hours ago.
    I hope the plugin author would read here, too.
    My solution should help until the author would release a new verion.

    Thread Starter gort187

    (@gort187)

    If they do, I guess I’ll have to FTP the changed files as I can not access the admin area of my site.

    You can rename the plugin directory by (s)FTP. By doing this, the plugin is deactivated and you are able to access the WP backend again

    Thread Starter gort187

    (@gort187)

    Thank you GuentherLudwig for your help!!

    Hi all, the issue here is an outdated PHP version. Anything under 5.4 will suffer this problem. My recommendation is to upgrade your PHP version (or contact your provider) as soon as possible to at least version 5.6 that is still receiving security updates till the end of the year, but better to PHP 7.0 or higher as recommended by WordPress.

    Running such an old PHP version is putting your site at risk.

    That said, I’ll apply the backward compatibility fix suggested above in the upcoming release so if you really cannot upgrade PHP, you should be able to continue with the plugin.

    Thread Starter gort187

    (@gort187)

    Thank you RavanH! I will work on upgrading the PHP that I am using, your compatibility fix will help until I can upgrade one other shopping cart that I am using on the same hosting account.

    Steffi

    (@steffievolvcom)

    Thank you RavanH. Will you please notify us via this thread when the fix has been applied to the upcoming release? Thanks! I’ve uninstalled the plugin til we get that fix.

    Just released 4.8.3 which has this fix 🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Parse error: syntax error, unexpected ‘[‘ in /home/’ is closed to new replies.