PHP8 compatibility
-
Hello,
When using PHP8.0, login to the backend (current WP version) doesn’t work, this error shows up in the log:
`2022/02/17 08:50:00 [error] 3485756#3485756: *82132 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /var/www//wp-content/plugins/countdown-builder/classes/countdown/Countdown.php:400
Stack trace:
#0 /var/www/wp-content/plugins/countdown-builder/classes/countdown/CountdownModel.php(18): ycd\Countdown::getPostSavedData()
#1 /var/www/wp-content/plugins/countdown-builder/classes/countdown/Countdown.php(458): ycd\CountdownModel::getDataById()
#2 /var/www/wp-content/plugins/countdown-builder/classes/countdown/Countdown.php(570): ycd\Countdown::find()
#3 /var/www/wp-content/plugins/countdown-builder/classes/countdown/Countdown.php(584): ycd\Countdown::getCountdownsObj()
#4 /var/www/wp-content/plugins/countdown-builder/assets/js/Js.php(41): ycd\Countdown::shapeIdTitleData()Maybe you can reproduce this issue? I have it on twi different web servers. Just switching to PHP7.4 makes it work again.
BR – WBW
- The topic ‘PHP8 compatibility’ is closed to new replies.