After updating to Woo 6.0 (running PHP 8) users could no longer “add to cart” on the shop pages or the single product pages. The ajax loading gif would run and never complete and a wp-ajax console error could be seen via the inspector. If I turned off AJAX on Woo settings then a user would get a critical error instead of the never-ending loading gif.
Checking the log I found errors related to this plugin as well (see redacted version below). I deactivated the plugin and all “add to cart” ajax actions started working again. I then rolled back to Woo 5.9.0 and it still did not work with your plugin running until I completely uninstalled and reinstalled the plugin. It works well now.
My fear is that if I now update to Woo 6.0 it will break again. What can be done? Thanks!
[Tue Jan 11 08:31:16.520436 2022] [proxy_fcgi:error] [pid 7776:tid 140311883642624] [client XXX] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Unsupported operand types: int + string in .../public_html/wp-content/plugins/checkout-fees-for-woocommerce/includes/class-alg-wc-checkout-fees.php:503\nStack trace:\n#0 .../public_html/wp-content/plugins/checkout-fees-for-woocommerce/includes/class-alg-wc-checkout-fees.php(839): Alg_WC_Checkout_Fees->calculate_the_fee()\n#1 .../public_html/wp-content/plugins/checkout-fees-for-woocommerce/includes/class-alg-wc-checkout-fees.php(902): Alg_WC_Checkout_Fees->get_the_fee()\n#2 .../public_html/wp-content/plugins/checkout-fees-for-woocommerce/includes/class-alg-wc-checkout-fees.php(373): Alg_WC_Checkout_Fees->maybe_add_cart_fee()\n#3 .../public_html/wp-includes/class-wp-hook.php(303): Alg_WC_Checkout_Fees->add_gateways_fees()\n#4 .../p...', referer: https://xxx/
- You must be logged in to reply to this topic.