• After clicking on the add to cart button I got a fatal error.

    This is the error:

    Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /wp-content/plugins/woocommerce/includes/wc-cart-functions.php:514

Viewing 1 replies (of 1 total)
  • Hey there! Thanks for contacting us. I’m happy to help you.

    Is everything on your website updated (all plugins, the theme, WordPress, etc)?

    You are seeing this error on the front end, correct?

    Do you have any custom code on the website?
    What about plugins that can modify the cart and/or product page?

    I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
    Fatal error logs (if any) under WooCommerce > Status > Logs. Then you can use the selector to search for Fatal Errors.
    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Looking forward to your reply.

    Have a wonderful day!

Viewing 1 replies (of 1 total)

The topic ‘Critical error on wc-cart-function.php’ is closed to new replies.