Title: PHP warnings
Last modified: November 9, 2020

---

# PHP warnings

 *  Resolved [arjanvandenbos](https://wordpress.org/support/users/arjanvandenbos/)
 * (@arjanvandenbos)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/php-warnings-107/)
 * I am getting these PHP warnings when saving some WordPress pages:
 * ==========
    Warning: Invalid argument supplied for foreach() in /home/bayimbaf/
   public_html/[domain]/wp-content/plugins/wp-asset-clean-up/classes/Preloads.php
   on line 432
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/bayimbaf/public_html/[domain]/wp-content/plugins/wp-asset-clean-up/classes/
   Preloads.php:432) in /home/bayimbaf/public_html/[domain]/wp-admin/post.php on
   line 231
    ==========
 * It only happens on a few pages, in particular the Front page.
    It looks like 
   disabling the Tablepress plugin resolves the issue but that is exactly why I 
   wanted to use Asset Cleanup in the first place, to only load Tablepress on certain
   pages.
 * Loading or unloading Tablepress CSS files with Asset Cleanup makes no difference
   in the warning coming up. There is no Tablepress shortcode used on affected pages.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warnings-107%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/php-warnings-107/#post-13660962)
 * [@arjanvandenbos](https://wordpress.org/support/users/arjanvandenbos/) it looks
   like the page you wanted to optimize does not have any JS scripts, hence, that
   error has shown up. Although it’s harmless, it’s annoying indeed. I’ve released
   a fix in the development version that you could use until the next tag is released.
   Please download it following the instructions from this post: [https://assetcleanup.com/docs/how-to-get-the-development-version-of-asset-cleanup/](https://assetcleanup.com/docs/how-to-get-the-development-version-of-asset-cleanup/)
 *  Thread Starter [arjanvandenbos](https://wordpress.org/support/users/arjanvandenbos/)
 * (@arjanvandenbos)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/php-warnings-107/#post-13663157)
 * Thanks Gabe, that did indeed resolve this issue.

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

The topic ‘PHP warnings’ is closed to new replies.

 * ![](https://ps.w.org/wp-asset-clean-up/assets/icon-256x256.png?rev=1981952)
 * [Asset CleanUp: Page Speed Booster](https://wordpress.org/plugins/wp-asset-clean-up/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-asset-clean-up/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-asset-clean-up/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-asset-clean-up/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [arjanvandenbos](https://wordpress.org/support/users/arjanvandenbos/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/php-warnings-107/#post-13663157)
 * Status: resolved