• Resolved zefyr

    (@zefyr)


    I use last WPML version (all pack) + Woocommerce 2.2.6 + Woocommerce Multilingual. I use two currencies for one language with manual price settings. This doesn´t work, my page get warning:

    <b>Warning</b>: Invalid argument supplied for foreach() in <b>/wp-content/plugins/woocommerce-multilingual/inc/products.class.php</b> on line <b>2663</b>
    <b>Warning</b>: Invalid argument supplied for foreach() in <b>/wp-content/plugins/woocommerce-multilingual/inc/products.class.php</b> on line <b>2663</b>
    <b>Warning</b>: Missing argument 2 for WCML_Endpoints::filter_get_endpoint_url() in <b>/wp-content/plugins/woocommerce-multilingual/inc/endpoints.class.php</b> on line <b>233</b>

    <b>Warning</b>: Missing argument 3 for WCML_Endpoints::filter_get_endpoint_url() in <b>/wp-content/plugins/woocommerce-multilingual/inc/endpoints.class.php</b> on line <b>233</b>

    <b>Warning</b>: Missing argument 4 for WCML_Endpoints::filter_get_endpoint_url() in <b>/wp-content/plugins/woocommerce-multilingual/inc/endpoints.class.php</b> on line <b>233</b>

    https://wordpress.org/plugins/woocommerce-multilingual/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello and Happy New Year!!!
    You have mentioned the version that you are using of WooCommerce, however you forgot to mention the other versions that are in play – like for WooCommerce Multilingual.
    I would suggest you to make backup of your website first, and then first update to the latest WPML and WooCommerce Multilingual 3.7.7 (currently) and then try again and see if the error persists.
    You might have to update the original product (not the translation, just the original).
    Also if you can test in a minimal setup – it would be good – by minimal I mean only WPML and WooCommerce + WooCommerce Multilingual, and a default theme – sometimes the issues lies in compatibility with other plugins or themes.

    Let me know how it goes and if I can help you any further.
    If you wish – it is always better to open a new ticket in wpml.org support forum, where we can help you on your site.

    I am closing this ticket as resolved due to inactivity.
    I hope that everything is working for you.

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

The topic ‘Warnings invalid argument for foreach’ is closed to new replies.