Title: Invalid Code PHP 5.4
Last modified: August 20, 2016

---

# Invalid Code PHP 5.4

 *  Resolved [jeff.cave](https://wordpress.org/support/users/jeffcave/)
 * (@jeffcave)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/invalid-code-php-54/)
 * 1. Not receiving any sitemap.xml
    2. Turns out I don’t have it network activated
   3. Network activate RESULT:
 * `
    Fatal error: Call-time pass-by-reference has been removed in /.../www/wp-content/
   plugins/xml-sitemap-feed/includes/core.php on line 652
 * FIX:
    Removed ampersand from line 652. Don’t know if this is going to cause me
   grief though.
 * [http://wordpress.org/extend/plugins/xml-sitemap-feed/](http://wordpress.org/extend/plugins/xml-sitemap-feed/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/invalid-code-php-54/#post-3593621)
 * Did you remove the ampersand in `if ( '200' == wp_remote_retrieve_response_code(&
   $response) )`?
 * If so, there should be no problem. It can and should be removed. Thanks for the
   bug report 🙂

Viewing 1 replies (of 1 total)

The topic ‘Invalid Code PHP 5.4’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/invalid-code-php-54/#post-3593621)
 * Status: resolved