• Resolved yodergreg

    (@yodergreg)


    This plugin has worked great for one of the sites I created. Recently the server was upgraded to use PHP 8, and then the checkout page wouldn’t complete the calculation for the form total… it would just be stuck showing a spinning icon. I deactivated the plugin and then the checkout worked fine. We then downgraded PHP for this site and the Payment Gateway Based Fees and Discounts plugin is working fine again when reactivated.

    We’re using the Stripe and PayPal add-ons for payment gateway options on this site.

    The page I need help with: [log in to see the link]

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

    (@tychesoftwares)

    Hi @yodergreg,

    Thank you for pointing out this bug. I just tested the plugin with PHP 8 and the checkout process worked fine with our plugin.

    Could you please show me the setup through screenshots you have done in the plugin? Also, tell me which versions of WooCommerce and WordPress are running on your site.

    Thread Starter yodergreg

    (@yodergreg)

    We had temporarily put the production site back to PHP 7.4, but we can try some further troubleshooting on a staging site. We were using the latest version of WooCommerce. Screenshots of the settings we have in place are here.

    Plugin Author tychesoftwares

    (@tychesoftwares)

    Hi @yodergreg,

    Thank you for sharing screenshots.

    I’ll try to reproduce the issue and will get back to you with an update.

    We have the same issue. Spinning wheel and causing a fatal error.

    Error:

    2022-09-24T18:51:04+00:00 CRITICAL Uncaught TypeError: Unsupported operand types: float + string in /var/hpwsites/u_carp_wp/website/html/webroot/wp-content/plugins/checkout-fees-for-woocommerce/includes/class-alg-wc-checkout-fees.php:503

    Plugin Author tychesoftwares

    (@tychesoftwares)

    I am still unable to replicate this issue on my site.

    So @hitec4ever and @yodergreg, could you please submit the ticket here so that we can more communicate on this and solve it soon?

    Plugin Author tychesoftwares

    (@tychesoftwares)

    Hi @yodergreg,

    We have this issue fixed at our end. I’ll need you to download the fix from the below link and replace the file with the original file.

    Link: https://www.dropbox.com/s/usyqb07sj21bv1g/class-alg-wc-checkout-fees.zip?dl=0
    file path : /wp-content/plugins/checkout-fees-for-woocommerce/includes

    Do let me know the result after applying this fix.

    Thread Starter yodergreg

    (@yodergreg)

    Thanks. As far as I can tell, that appears to have fixed the problem. We now have PHP 8 running on the server again and everything appears to be working correctly.

    Thread Starter yodergreg

    (@yodergreg)

    Hi, we are having the same issue again on our site with the spinning wheel icon showing up on the checkout. Did the PHP 8 bug fix not get added into the latest plugin update that was released 4 weeks ago? I don’t see a mention of it in the change log.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Problem when running PHP 8’ is closed to new replies.