Title: fatal error version 4.7
Last modified: August 31, 2016

---

# fatal error version 4.7

 *  Resolved [Benjamin Pongy AXOME](https://wordpress.org/support/users/redpik/)
 * (@redpik)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-version-47/)
 * xml-sitemap.php line 703
    $allowed = [‘zh-cn’,’zh-tw’];
 * ???
 * [https://wordpress.org/plugins/xml-sitemap-feed/](https://wordpress.org/plugins/xml-sitemap-feed/)

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

 *  Thread Starter [Benjamin Pongy AXOME](https://wordpress.org/support/users/redpik/)
 * (@redpik)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-version-47/#post-7353664)
 * OK, I understand.
    It’s the new array syntax (since PHP 5.4). I’m on a PHP 5.3
   server.
 *  [rafaljen](https://wordpress.org/support/users/rafaljen/)
 * (@rafaljen)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-version-47/#post-7353685)
 * 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](https://wordpress.org/support/users/paologalli/)
 * (@paologalli)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-version-47/#post-7353691)
 * doesn’t work
    it generates an error and the “,” is highlighted as not expected
 *  [paologalli](https://wordpress.org/support/users/paologalli/)
 * (@paologalli)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-version-47/#post-7353695)
 * I changed php version to 5.4.45 and the plugin doesn’t work…
 *  [rafaljen](https://wordpress.org/support/users/rafaljen/)
 * (@rafaljen)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-version-47/#post-7353698)
 * Please paste the code that changed. Probably a mistake when changing.
 *  [paologalli](https://wordpress.org/support/users/paologalli/)
 * (@paologalli)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-version-47/#post-7353704)
 * no errors, I typed it three times…
 *  [cathyslifestockphotos](https://wordpress.org/support/users/cathyslifestockphotos/)
 * (@cathyslifestockphotos)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-version-47/#post-7353723)
 * rafaljen, thanks for the fix. I just changed line 703 and the plugin activated
   OK.
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-version-47/#post-7353724)
 * 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](https://wordpress.org/support/users/cathyslifestockphotos/)
 * (@cathyslifestockphotos)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-version-47/#post-7353728)
 * Thanks, RavanH.
 *  [YS3F](https://wordpress.org/support/users/ys3f/)
 * (@ys3f)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-version-47/#post-7353838)
 * 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](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-version-47/#post-7353843)
 * @ 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.

 * ![](https://ps.w.org/xml-sitemap-feed/assets/icon-128x128.png?rev=1112143)
 * [XML Sitemap & Google News](https://wordpress.org/plugins/xml-sitemap-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/xml-sitemap-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/xml-sitemap-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/xml-sitemap-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/xml-sitemap-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/)

 * 11 replies
 * 6 participants
 * Last reply from: [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-version-47/#post-7353843)
 * Status: resolved