Title: PHP Error in debug.log &#8211; Invalid argument
Last modified: September 15, 2021

---

# PHP Error in debug.log – Invalid argument

 *  [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-error-in-debug-log-invalid-argument/)
 * Hi,
    I was gettting following error with SuperCache. It prevented preload to 
   work.
 * `Invalid argument supplied for foreach() in ...\wp-content\plugins\wp-super-cache\
   wp-cache.php on line 2050`
 * A quick fix was to enter some text (“test”) into the “Rejected Cookies” section
   on the second tab. It seems like an empty field causes the error.
 * BTW. I could reproduce the error in “safe-mode” with only supercache as active
   plugin.

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

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-error-in-debug-log-invalid-argument/#post-14879472)
 * Good catch. It’s a harmless warning I’ll get fixed.
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-error-in-debug-log-invalid-argument/#post-14879518)
 * Fixed in [https://github.com/Automattic/wp-super-cache/pull/787](https://github.com/Automattic/wp-super-cache/pull/787)
   and it will be in the next release. I don’t know when that release may be, yet.

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

The topic ‘PHP Error in debug.log – Invalid argument’ is closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/php-error-in-debug-log-invalid-argument/#post-14879518)
 * Status: not resolved