Title: Working with error
Last modified: August 21, 2016

---

# Working with error

 *  [Jon Brown](https://wordpress.org/support/users/jb510/)
 * (@jb510)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/working-with-error/)
 * Hasn’t been updated in a long time and the core export.php has changed (nothing
   major).
 * As in this thread:
    [http://wordpress.org/support/topic/plugin-wordpress-menu-exporter-error-during-export?replies=3](http://wordpress.org/support/topic/plugin-wordpress-menu-exporter-error-during-export?replies=3)
   I was getting “Cannot modify header information” errors at the end of the XML
   export” errors of the end of my export.
 * Per that thread adding die on the next to last line fixed the errors
 *     ```
       } ?>
       </channel>
       </rss>
       <?php
       die;
       }
       ```
   
 * I tried merging in the code from the current /wp-admin/includes/export.php, but
   it by itself didn’t make any difference, still needed to add die.
 * [http://wordpress.org/extend/plugins/menu-exporter/](http://wordpress.org/extend/plugins/menu-exporter/)

The topic ‘Working with error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/menu-exporter.svg)
 * [WordPress Menu Exporter](https://wordpress.org/plugins/menu-exporter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/menu-exporter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/menu-exporter/)
 * [Active Topics](https://wordpress.org/support/plugin/menu-exporter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/menu-exporter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/menu-exporter/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jon Brown](https://wordpress.org/support/users/jb510/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/working-with-error/)
 * Status: not resolved