Support » Theme: Storefront » wc-cart-functions.php error with Woocommerce and Storefront Theme Update

  • Resolved creativcompass

    (@creativcompass)


    I recently updated the storefront theme (2.2.8), plugins, and Woocommerce(3.3.3). I’m receiving this error when I add items to the shopping cart.

    Warning: array_keys() expects parameter 1 to be array, null given in /app/wp/wp-content/plugins/woocommerce/includes/wc-cart-functions.php on line 470

    Warning: array_keys() expects parameter 1 to be array, null given in /app/wp/wp-content/plugins/woocommerce/includes/wc-cart-functions.php on line 441

    Warning: current() expects parameter 1 to be array, null given in /app/wp/wp-content/plugins/woocommerce/includes/wc-cart-functions.php on line 442

    Has anyone else seen this before?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Mike

    (@mikedmoore)

    Automattic Happiness Engineer

    Hey there!

    Do you see the same warning when you test with only WooCommerce active? It seems like this could be a plugin conflict.

    We’re seeing this now too, same exact 3 errors…

    Anyone know what’s going on?

    OOPS!! I apologize for the post above. I do have the same Warnings but I didn’t notice this was posted under a theme. We’re not using this theme, it’s actually a custom coded theme I developed, so has nothing to do with Storefront. I suspect it’s not even theme related, proabably some sort of new conflict.

    Joel Williams

    (@joelwills)

    Automattic Happiness Engineer

    Thanks for letting us know, we’ll close this here then.

    All the best!

    I was getting this same error in WooCommerce v3.4.6 with Storefront theme v2.3.4 (all latest as of this posting). The error referenced line 436 of that same file.

    Reference the latest Woo file to see which function the error(s) relate to https://github.com/woocommerce/woocommerce/blob/master/includes/wc-cart-functions.php

    The problem was apparently caused by the shipping plugins having been deactivated and reactivated. I had to open up Woo > Settings > Shipping and re-save all of the settings. Problem solved.

    Hello,
    I’m in the process of creating my eShop cart and in the checkout there is this message at the top of the page:

    Notice: Undefined index: priority in /var/www/vhosts/fancyowl.gr/httpdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1526

    Unfortunately, I don’t know anything about coding. Can anyone help me fix this error, please?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘wc-cart-functions.php error with Woocommerce and Storefront Theme Update’ is closed to new replies.