Fatal error in PHP 8
-
Hi there, we’re using your plugin (version 1.6.1) on our server which has been upgraded to PHP8, and after that noticed several errors on our error log, have found this 3 for now:
PHP Fatal error: Uncaught TypeError: Unsupported operand types: int + string in /wp-content/plugins/yith-woocommerce-points-and-rewards/includes/class.yith-wc-points-rewards.php:234 PHP Fatal error: Uncaught TypeError: Unsupported operand types: string + int in /wp-content/plugins/yith-woocommerce-points-and-rewards/includes/class.yith-wc-points-rewards-redemption.php:549 PHP Fatal error: Uncaught Error: Call to undefined method YITH_WC_Points_Rewards::get_action_label() in /wp-content/plugins/yith-woocommerce-points-and-rewards/includes/class.yith-wc-points-rewards-redemption.php:183
First two were solved by casting variable to int, but fix must be applied in order to prevent from failing in future versions
Kind regards!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fatal error in PHP 8’ is closed to new replies.