Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Benjamin Pongy AXOME

    (@redpik)

    OK, I understand.
    It’s the new array syntax (since PHP 5.4).
    I’m on a PHP 5.3 server.

    rafaljen

    (@rafaljen)

    Edit the file:

    /wp-content/plugins/xml-sitemap-feed/includes/class-xmlsitemapfeed.php

    Find:

    $allowed = ['zh-cn','zh-tw'];

    Change to:
    $allowed = array('zh-cn','zh-tw');

    paologalli

    (@paologalli)

    doesn’t work
    it generates an error and the “,” is highlighted as not expected

    paologalli

    (@paologalli)

    I changed php version to 5.4.45 and the plugin doesn’t work…

    rafaljen

    (@rafaljen)

    Please paste the code that changed. Probably a mistake when changing.

    paologalli

    (@paologalli)

    no errors, I typed it three times…

    cathyslifestockphotos

    (@cathyslifestockphotos)

    rafaljen, thanks for the fix. I just changed line 703 and the plugin activated OK.

    Plugin Author Rolf Allard van Hagen

    (@ravanh)

    My bad! A PHP 5.3 (and below) compatible version is being released right now… My apologies to all that are still on 5.3

    Please note it is strongly advised to move to 5.4+ if possible because 5.3 has reached en of life in 2014 and is no longer supported. But if that’s not possible due to your hosting provider, the new plugin update should work for you.

    cathyslifestockphotos

    (@cathyslifestockphotos)

    Thanks, RavanH.

    YS3F

    (@ys3f)

    Same problem, same solution:

    $allowed = [‘zh-cn’,’zh-tw’];
    Change to:
    $allowed = array(‘zh-cn’,’zh-tw’);

    Many Thanks

    Plugin Author Rolf Allard van Hagen

    (@ravanh)

    @ YS3F this should be fixed in the latest .1 release. Are you using 4.7 and does WordPress tell there is a newer version?

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

The topic ‘fatal error version 4.7’ is closed to new replies.