Invalid argument supplied to foreach()
-
With only WooCommerce and the plugins required to run WooCommerce Multilingual, every visit to my site produces the following php warnings:
[04-Jan-2019 20:10:20 UTC] PHP Warning: Invalid argument supplied for foreach() in /wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-shipping.php on line 115
[04-Jan-2019 20:10:20 UTC] PHP Warning: array_keys() expects parameter 1 to be array, null given in /wp-content/plugins/woocommerce/includes/wc-cart-functions.php on line 465
[04-Jan-2019 20:10:20 UTC] PHP Warning: array_keys() expects parameter 1 to be array, null given in /wp-content/plugins/woocommerce/includes/wc-cart-functions.php on line 436
[04-Jan-2019 20:10:20 UTC] PHP Warning: current() expects parameter 1 to be array, null given in /wp-content/plugins/woocommerce/includes/wc-cart-functions.php on line 437
[04-Jan-2019 20:10:20 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /wp-content/plugins/woocommerce/includes/wc-cart-functions.php on line 416Is there anything I can do to fix this?
Thanks!
- The topic ‘Invalid argument supplied to foreach()’ is closed to new replies.