Title: Problem when running PHP 8
Last modified: August 30, 2022

---

# Problem when running PHP 8

 *  Resolved [yodergreg](https://wordpress.org/support/users/yodergreg/)
 * (@yodergreg)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/problem-when-running-php-8/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-when-running-php-8%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [tychesoftwares](https://wordpress.org/support/users/tychesoftwares/)
 * (@tychesoftwares)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/problem-when-running-php-8/#post-15971380)
 * Hi [@yodergreg](https://wordpress.org/support/users/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](https://wordpress.org/support/users/yodergreg/)
 * (@yodergreg)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-when-running-php-8/#post-16005315)
 * 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](https://www.dropbox.com/sh/ut9ftsmbrof1l1c/AAB4tTyIHIpyR1sYuAJU7exQa?dl=0).
 *  Plugin Author [tychesoftwares](https://wordpress.org/support/users/tychesoftwares/)
 * (@tychesoftwares)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-when-running-php-8/#post-16017299)
 * Hi [@yodergreg](https://wordpress.org/support/users/yodergreg/),
 * Thank you for sharing screenshots.
 * I’ll try to reproduce the issue and will get back to you with an update.
 *  [Jaap de Wit](https://wordpress.org/support/users/hitec4ever/)
 * (@hitec4ever)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-when-running-php-8/#post-16040655)
 * 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](https://wordpress.org/support/users/tychesoftwares/)
 * (@tychesoftwares)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-when-running-php-8/#post-16075893)
 * I am still unable to replicate this issue on my site.
 * So [@hitec4ever](https://wordpress.org/support/users/hitec4ever/) and [@yodergreg](https://wordpress.org/support/users/yodergreg/),
   could you please submit the ticket [here ](https://tychesoftwares.freshdesk.com/support/signup)
   so that we can more communicate on this and solve it soon?
    -  This reply was modified 3 years, 8 months ago by [tychesoftwares](https://wordpress.org/support/users/tychesoftwares/).
 *  Plugin Author [tychesoftwares](https://wordpress.org/support/users/tychesoftwares/)
 * (@tychesoftwares)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problem-when-running-php-8/#post-16121319)
 * Hi [@yodergreg](https://wordpress.org/support/users/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](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](https://wordpress.org/support/users/yodergreg/)
 * (@yodergreg)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problem-when-running-php-8/#post-16129563)
 * 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](https://wordpress.org/support/users/yodergreg/)
 * (@yodergreg)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/problem-when-running-php-8/#post-16281771)
 * 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.

 * ![](https://ps.w.org/checkout-fees-for-woocommerce/assets/icon-256x256.jpg?rev
   =2818154)
 * [Payment Gateway Based Fees and Discounts for WooCommerce](https://wordpress.org/plugins/checkout-fees-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/checkout-fees-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/checkout-fees-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/checkout-fees-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/checkout-fees-for-woocommerce/reviews/)

## Tags

 * [php 8](https://wordpress.org/support/topic-tag/php-8/)

 * 8 replies
 * 3 participants
 * Last reply from: [yodergreg](https://wordpress.org/support/users/yodergreg/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/problem-when-running-php-8/#post-16281771)
 * Status: resolved