Error on checkout
-
We have had customers on our shop reporting an error on checkout. We checked the server logs and we saw the following error;
Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /home/sites/11b/f/xxxxxxxxxx/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php:476\nStack trace:\n#0 /home/sites/11b/f/xxxxxxxxxx/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php(476): array_keys(NULL)\n#1 /home/sites/11b/f/xxxxxxxxxx/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php(412): wc_shipping_methods_have_changed(0, Array)\n#2 /home/sites/11b/f/xxxxxxxxxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1451): wc_get_chosen_shipping_method_for_package(0, Array)\n#3 /home/sites/11b/f/xxxxxxxxxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1420): WC_Cart->get_chosen_shipping_methods(Array)\n#4 /home/sites/11b/f/xxxxxxxxxx/public_html/wp-content/plugins/
Could this please be investigated ASAP.
- The topic ‘Error on checkout’ is closed to new replies.