Fatal error: Uncaught TypeError:
-
Hi,
Installed WooCommerce version 6.8.1. I got fatal errors. When I want to add 1 product add to cart going to add a new product to the cart then I received this error cart/checkout pages crashed.
Here is the debug information. Can you please verify and tell me what is going wrong?
[Mon Aug 22 14:48:19.596608 2022] [proxy_fcgi:error] [pid 2171781:tid 140176920225536] [client 12.12.250.66:4752] AH01071: Got error 'PHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/html/pgprint/wp-content/plugins/woocommerce/includes/class-wc-cart.php on line 1425PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to wc_add_number_precision() must be of the type float, null given, called in /var/www/html/pgprint/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1946 and defined in /var/www/html/pgprint/wp-content/plugins/woocommerce/includes/wc-core-functions.php:1918\nStack trace:\n#0 /var/www/html/pgprint/wp-content/plugins/woocommerce/includes/wc-core-functions.php(1946): wc_add_number_precision()\n#1 /var/www/html/pgprint/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(344): wc_add_number_precision_deep()\n#2 /var/www/html/pgprint/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(850): WC_Cart_Totals->get_shipping_from_cart()\n#3 /var/www/html/pgprint/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(144): WC_Cart_Totals->calculate_shipping_totals()\n#4 /var/www/html/pgprint/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(134): WC_Cart_Totals->calculate()
The page I need help with: [log in to see the link]
- The topic ‘Fatal error: Uncaught TypeError:’ is closed to new replies.