Title: Php error when the cache is cleared
Last modified: October 31, 2019

---

# Php error when the cache is cleared

 *  Resolved [soydanielromero](https://wordpress.org/support/users/soydanielromero/)
 * (@soydanielromero)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-error-when-the-cache-is-cleared/)
 * I get the following messages when I clear local cache, when I clear CDN cache
   and when I preload the cache using wp-rocket… Any suggest?
 * Warning: Invalid argument supplied for foreach() in /home/soydanielromero/public_html/
   wp-content/plugins/featured-images-for-rss-feeds/includes/freemius/includes/managers/
   class-fs-admin-menu-manager.php on line 525
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/soydanielromero/public_html/wp-content/plugins/featured-images-for-rss-
   feeds/includes/freemius/includes/managers/class-fs-admin-menu-manager.php:525)
   in /home/soydanielromero/public_html/wp-admin/includes/misc.php on line 1196
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/soydanielromero/public_html/wp-content/plugins/featured-images-for-rss-
   feeds/includes/freemius/includes/managers/class-fs-admin-menu-manager.php:525)
   in /home/soydanielromero/public_html/wp-includes/pluggable.php on line 1251
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/soydanielromero/public_html/wp-content/plugins/featured-images-for-rss-
   feeds/includes/freemius/includes/managers/class-fs-admin-menu-manager.php:525)
   in /home/soydanielromero/public_html/wp-includes/pluggable.php on line 1254
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-when-the-cache-is-cleared%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Rob @ 5 Star Plugins](https://wordpress.org/support/users/5starplugins/)
 * (@5starplugins)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-error-when-the-cache-is-cleared/#post-12085309)
 * Hi Daniel,
 * I’ve seen that warning before, it seems there’s an issue or error in another 
   plugin or the theme that is outputting the header before our menu code fires,
   causing the warning. It can be ignored, and WP_DEBUG should be disabled so it
   does not show publicly.
 * To troubleshoot it, you can turn on the DEBUG log, and review any errors caused
   by other plugins that would trigger this warning, or you can try deactiving other
   plugins until it goes away, to see which one is outputting error info to the 
   header prematurely.

Viewing 1 replies (of 1 total)

The topic ‘Php error when the cache is cleared’ is closed to new replies.

 * ![](https://ps.w.org/featured-images-for-rss-feeds/assets/icon-256x256.png?rev
   =1546995)
 * [Featured Images in RSS for Mailchimp & More](https://wordpress.org/plugins/featured-images-for-rss-feeds/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/featured-images-for-rss-feeds/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/featured-images-for-rss-feeds/)
 * [Active Topics](https://wordpress.org/support/plugin/featured-images-for-rss-feeds/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/featured-images-for-rss-feeds/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/featured-images-for-rss-feeds/reviews/)

## Tags

 * [Cannot modify header information](https://wordpress.org/support/topic-tag/cannot-modify-header-information/)
 * [php warnings](https://wordpress.org/support/topic-tag/php-warnings/)
 * [wp_debug](https://wordpress.org/support/topic-tag/wp_debug/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rob @ 5 Star Plugins](https://wordpress.org/support/users/5starplugins/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/php-error-when-the-cache-is-cleared/#post-12085309)
 * Status: resolved