Title: Too many warnings
Last modified: February 26, 2019

---

# Too many warnings

 *  Resolved [Tunn](https://wordpress.org/support/users/iuriem/)
 * (@iuriem)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/too-many-warnings/)
 *     ```
       Notice: Undefined index: xmlsf_priority in /.../wp-content/plugins/xml-sitemap-feed/controllers/admin/main.php on line 321
   
       Warning: Cannot modify header information - headers already sent by (output started at /.../wp-content/plugins/xml-sitemap-feed/controllers/admin/main.php:321) in /.../wp-admin/post.php on line 222
   
       Warning: Cannot modify header information - headers already sent by (output started at /.../wp-content/plugins/xml-sitemap-feed/controllers/admin/main.php:321) in /.../wp-includes/pluggable.php on line 1251
   
       Warning: Cannot modify header information - headers already sent by (output started at /.../wp-content/plugins/xml-sitemap-feed/controllers/admin/main.php:321) in /.../wp-includes/pluggable.php on line 1254
       ```
   
 * Wordpress 5.1
    define(‘WP_DEBUG’, true); Sela theme

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

 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/too-many-warnings/#post-11252101)
 * Hi, thanks for letting me know. I suspect the three “headers already sent” errors
   are caused by the first notice being printed publicly, causing headers to be 
   sent earlier than they should.
 * The notice will be addressed in the next version.
 * In the mean time I’d advise to either set `define(‘WP_DEBUG’, false);` as soon
   as you are not debugging anymore or add the line `define( 'WP_DEBUG_DISPLAY',
   false );` to prevent public output of PHP messages.
 *  Thread Starter [Tunn](https://wordpress.org/support/users/iuriem/)
 * (@iuriem)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/too-many-warnings/#post-11253027)
 * Thank you for the `define( 'WP_DEBUG_DISPLAY', false );`, I didn’t know about
   it. By the way, you made a great plugin. I’m waiting for the next version.

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

The topic ‘Too many warnings’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Tunn](https://wordpress.org/support/users/iuriem/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/too-many-warnings/#post-11253027)
 * Status: resolved