Title: PHP error in XML sitemap
Last modified: October 5, 2018

---

# PHP error in XML sitemap

 *  [LeadBoxer](https://wordpress.org/support/users/leadboxer/)
 * (@leadboxer)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-error-in-xml-sitemap/)
 * Whenever i activate the plugin, my sitemap for pages (generated by Yoast) is 
   no longer working.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-in-xml-sitemap%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [webcraftic](https://wordpress.org/support/users/webcraftic/)
 * (@webcraftic)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-error-in-xml-sitemap/#post-10752960)
 * Hi,
 * You have errors in php code snippet. Please check your php code.
 * Best regards, Alex
 *  Thread Starter [LeadBoxer](https://wordpress.org/support/users/leadboxer/)
 * (@leadboxer)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-error-in-xml-sitemap/#post-10754517)
 * Hi Alex,
 * thank you for your quick response.
 * I deactivated all snippets, even moved them to the trash.
    unfortunately the 
   error remains in the sitemap.
 *  Plugin Author [webcraftic](https://wordpress.org/support/users/webcraftic/)
 * (@webcraftic)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-error-in-xml-sitemap/#post-10772943)
 * Hi,
 * I am very sorry that this happened to you!
 * Try reinstalling the plugin. But before that, save your snippets to a file. Reinstallation
   will completely clear the plugin of everything superfluous, if the error repeats,
   I will fix it in the next update. I am currently working on improving and correcting
   the plugin errors.
 * Best regards, Alex
    -  This reply was modified 7 years, 8 months ago by [webcraftic](https://wordpress.org/support/users/webcraftic/).
 *  Thread Starter [LeadBoxer](https://wordpress.org/support/users/leadboxer/)
 * (@leadboxer)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/php-error-in-xml-sitemap/#post-10796321)
 * Hi Alex,
 * Today i deactivated and removed the plugin. The XML sitemap started working. 
   I reinstalled and activated the plugin and the sitemap broke again.
 * Thanks for looking into this. i love your plugin, and if there is anything i 
   can do to help, please let me know.
 * Regards,
 * Wart

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

The topic ‘PHP error in XML sitemap’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [LeadBoxer](https://wordpress.org/support/users/leadboxer/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/php-error-in-xml-sitemap/#post-10796321)
 * Status: not resolved