menu

SlickStack

A free LEMP stack automation script written in Bash designed to enhance and simplify WordPress provisioning, performance, and security.

Channels
Team

PHP Warning: Invalid argument supplied for foreach()

October 16, 2019 at 7:42am

PHP Warning: Invalid argument supplied for foreach()

October 16, 2019 at 7:42am
Hi, I have this error in my WP dashboard PHP Error log.
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/wp-cron.php on line 111
Line 111 in wp-cron.php is as below. foreach ( $cronhooks as $hook => $keys ) {
Everything seems to be working but the log is producing this error. Any help is appreciated. Thanks.

October 16, 2019 at 8:08am
We have noticed that error on some installations as well, and I'm not sure the cause. From my research it is probably caused by a plugin, so perhaps one of our Must Use plugins that is calling WP-Cron is to blame. It does not seem to be a critical error, at least... but several of our plugins are due for a code update anyways so hopefully it resolves itself. If anyone knows the cause, please let us know :)
like-fill
1
  • reply
  • like