We get the following warning in the dashboard:
Warning
The PHP version 7.4 you are using has reached its End of Life (EOL). You are strongly urged to upgrade to a current version, as using this version may expose you to security vulnerabilities and bugs that have been fixed in more recent versions of PHP.
Then installed and switched to php8.0
Website was displaying a blank screen and we got errors in the logs:
2023/01/03 13:29:53 [error] 3185#3185: *789 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant PDO::MYSQL_ATTR_FOUND_ROWS in /var/www/html/matomo/core/Tracker/Db/Pdo/Mysql.php:107
Stack trace:
#0 /var/www/html/matomo/core/Tracker/Db.php(286): Piwik\Tracker\Db\Pdo\Mysql->connect()
#1 /var/www/html/matomo/core/Tracker.php(237): Piwik\Tracker\Db::connectPiwikTrackerDb()
#2 /var/www/html/matomo/core/Db.php(52): Piwik\Tracker::getDatabase()
#3 /var/www/html/matomo/core/Tracker.php(197): Piwik\Db::get()
#4 /var/www/html/matomo/core/Tracker/Cache.php(109): Piwik\Tracker::initCorePiwikInTrackerMode()
#5 /var/www/html/matomo/core/Tracker/Cache.php(89): Piwik\Tracker\Cache::updateCacheWebsiteAttributes()
#6 /var/www/html/matomo/core/Tracker/Request.php(615): Piwik\Tracker\Cache::getCacheWebsiteAttributes()
#7 /var/www/html/matomo/core/Tracker/Request.php(596): Piwik\Tracker\Request->getIdSite()
#8 /var/www/html/matomo/core/Tracker/Request.php(96): Piwik\Tracker\Request->getIdSiteIfExists()
Had to go back to php7-4 for the website to run properly again.
Please advise how to solve this.
1 post - 1 participant