• Resolved newvibe

    (@newvibe)


    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 416

    Is there anything I can do to fix this?
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello!
    You can try and re-save the shipping methods and check if that helps.
    Just go to the shipping methods that you have defined as if you want to edit them, and update them / save them.
    You have to do that for all of your defined shipping methods.

    Plugin Contributor Andreas Panag

    (@andrewp-2)

    Since we don’t have news for some time, I am closing this ticket.

    If you still have problem, please feel free to open a ticket in wpml.org so we can help you.

    Thank you very much

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Invalid argument supplied to foreach()’ is closed to new replies.