PHP Warning: Invalid argument supplied for foreach()
-
I’ve noticed with the last couple Jetpack updates (maybe more) that these occur in wp-admin/error_log:
PHP Notice: Trying to get property ‘option_name’ of non-object in /home/site/public_html/wp-content/plugins/jetpack/modules/widget-visibility/widget-conditions.php on line 807
PHP Warning: Invalid argument supplied for foreach() in /home/site/public_html/wp-content/plugins/jetpack/modules/widget-visibility/widget-conditions.php on line 810
PHP Notice: Trying to get property ‘option_name’ of non-object in /home/site/public_html/wp-content/plugins/jetpack/modules/widget-visibility/widget-conditions.php on line 846
I think it needs this for the Warning. Not sure about the Notice.
https://thisinterestsme.com/invalid-argument-supplied-for-foreachOur PHP is 7.2 and WP is the current 5.x version.
- The topic ‘PHP Warning: Invalid argument supplied for foreach()’ is closed to new replies.