• Hi.
    We get 2 warning after updating plugin:

    Warning 1:

    Warning: array_unique() expects parameter 1 to be array, null given in /var/www/www.URL ADRESS HIDDEN HERE/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 298
    class="post-10110 product type-product status-publish has-post-thumbnail taxable shipping-taxable purchasable product-type-simple product-cat-cobb-premier-gas-sv instock">

    Warning 2:
    Warning: array_unique() expects parameter 1 to be array, null given in /var/www/www.URL ADRESS HIDDEN HERE/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 298

    How to fix this?
    we had to deactivate and wait for fix

    https://wordpress.org/plugins/woocommerce-custom-currencies/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yeah, same thing here, just installed and activated with the following:

    Warning: array_unique() expects parameter 1 to be array, null given in /home/*****/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 298

    Warning: Invalid argument supplied for foreach() in /home/******/public_html/wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-general.php on line 48

    had to deactivate it also.

    Plugin Author GalalAly

    (@galalaly2)

    Hi,

    Since this is a beta version, such errors may occur.

    To fix it, you can go to WooCommerce -> Settings, click on “Currency Tab”, go to the extra currencies link and add any custom currency. The error will disappear.

    This warning should be fixed in the next version.

    Sorry if this might have caused any inconvenience.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘2 warning after updating plugin’ is closed to new replies.