• Resolved khaiser

    (@khaiser)


    Hi,

    I’m getting a fatal error on my site (hosted on Cloudways) coming from this plugin:

    PHP Fatal error: Uncaught TypeError: Unsupported operand types: int + string in
    /wp-content/plugins/woo-ultimate-order-combination/inc/functions.php:666

    This looks like a PHP 8+ compatibility issue: the code at line 666 is adding an integer and a string with the + operator, and one of the values is apparently not numeric (e.g. an empty string or null). On PHP 7.x this would just throw a warning and treat the string as 0, but on PHP 8+ it’s a fatal TypeError.

    Could you take a look at line 666 of inc/functions.php and add a proper type cast ((int)/(float)) or an is_numeric() check before the addition?

    Environment:

    • WordPress + WooCommerce (Cloudways hosting)
    • PHP version: 8.3
    • Plugin version: 2.0.6

    Happy to provide more details (full stack trace, steps to reproduce) if needed.

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Hi,

    Thank you for reporting this and for providing the details. I’ve identified the PHP 8+ compatibility issue and fixed it by properly handling the tax values as numeric amounts.

    I’m releasing a new version of the plugin with this fix included. Please update to the latest version and let me know if you encounter any further issues.

    Thanks again for reporting it!

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.