• Resolved Acal

    (@acal)


    Hello,
    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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author tychesoftwares

    (@tychesoftwares)

    Hi @acal,

    I apologize for the inconvenience caused to you. I tried to replicate the issue at our end but it seems it works fine.

    I’ll forward this error message to our developer so that they will check if we can fix this issue by reviewing the error.

    To replicate the issue at our end, can you share with us screenshots of the setup you have done in our plugin?

    Thread Starter Acal

    (@acal)

    Thank you for your quick reply and offer to help. The problem is that I completely deleted the plugin and then reinstalled it so all of the settings used thereafter were reconfigured from scratch. I can’t be certain if it set up the same as it was when it broke the add-to-cart functionality.

    It might be better to back up the site and try updating Woo to 6.0, plus updating Stripe plugin and other Woo addons and see if I can reproduce it?

    My settings are currently very basic and are as follows:

    General Tab: Enabled plugin – otherwise no other settings made

    Credit card via Stripe – Enable – Fee title : Stripe Processing Fee , Fee Type : Percent, Fee value : 4; otherwise all settings are default

    Credit card via PayPal – Enable – Fee title : Stripe Processing Fee , Fee Type : Percent, Fee value : 4; otherwise all settings are default

    Plugin Author tychesoftwares

    (@tychesoftwares)

    Hi @acal,

    >>It might be better to back up the site and try updating Woo to 6.0, plus updating Stripe plugin and other Woo addons and see if I can reproduce it?

    Yes, that would also help. Also, you can test it on your staging site first by updating WooCommerce.

    We are still unable to reproduce the same but I’ve forwarded the error message you sent to our developer so I’ll keep you updated here on the same.

    Plugin Author tychesoftwares

    (@tychesoftwares)

    Hi @acal,

    Our developer has looked into the code but we couldn’t find any culprit in the code. Are you still facing the issue with the latest version of WooCommerce and our plugin?

    If yes, can I ask you to create the ticket here so that we can more communicate on this?

    Thread Starter Acal

    (@acal)

    I will get a staging site spun up. Sorry for the delay.

    Thread Starter Acal

    (@acal)

    Looks good on staging.

    • This reply was modified 3 years, 1 month ago by Acal.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error and can’t add to cart’ is closed to new replies.