Title: PHP 8.3+ fatal errors
Last modified: August 7, 2025

---

# PHP 8.3+ fatal errors

 *  Resolved [Adrian Emil Tudorache](https://wordpress.org/support/users/railmedia/)
 * (@railmedia)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-8-3-fatal-errors/)
 * Hi there,
 * I found two problems in your plugin on Cloudways (DigitalOcean) hosting on PHP
   8.3 + nginx.
 * Both issues are in the same file: /src/PriceManager.php
 * #1 – line 83 – original code:
 * `$productPrice = round( $productPrice, $roundPrecision );`
 * revised code:
 * `$productPrice = $productPrice && is_numeric( $productPrice ) ? round( $productPrice,
   $roundPrecision ) : $productPrice;`
 * Problem is that the value of the `$productPrice` variable is string instead of
   int.
 * #2 – line 194 – original code:
 * `return 100 * ($originalPrice - $currentPrice) / $originalPrice;`
 * revised code:
 * `return 100 * (floatval($originalPrice) - floatval($currentPrice)) / $originalPrice;`
 * same problem: `$originalPrice` and `$currentPrice` are string.
 * Best regards,
   Adrian

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mykola Lukin](https://wordpress.org/support/users/bycrik/)
 * (@bycrik)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-8-3-fatal-errors/#post-18591190)
 * Hello [@railmedia](https://wordpress.org/support/users/railmedia/),
 * Thanks for pointing this out!
 * We will fix that in the next plugin update.

Viewing 1 replies (of 1 total)

The topic ‘PHP 8.3+ fatal errors’ is closed to new replies.

 * ![](https://ps.w.org/tier-pricing-table/assets/icon-256x256.gif?rev=3025448)
 * [Tiered Pricing Table for WooCommerce](https://wordpress.org/plugins/tier-pricing-table/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tier-pricing-table/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tier-pricing-table/)
 * [Active Topics](https://wordpress.org/support/plugin/tier-pricing-table/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tier-pricing-table/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tier-pricing-table/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mykola Lukin](https://wordpress.org/support/users/bycrik/)
 * Last activity: [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-8-3-fatal-errors/#post-18591190)
 * Status: resolved