Matomo V 4.13.0
MySQL version: 10.3.36-MariaDB-0+deb10u2
PHP version: 8.1.13
Since a recent PHP update we are now getting these errors after cron runs every hour:
PHP Deprecated: Function utf8_encode() is deprecated in /path-to-matomo/example.com/public_html/vendor/szymach/c-pchart/constants.php on line 48
ERROR [2022-12-13 19:05:12] 28748 Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=2&period=day&date=2022-12-13&format=json&trigger=archivephp: ‘PHP Deprecated: Function utf8_encode() is deprecated in /path-to-matomo/example.com/public_html/vendor/szymach/c-pchart/constants.php on line 48 {“idarchives”:[23261],“nb_visits”:4}’
ERROR [2022-12-13 19:05:12] 28748 Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=2&period=day&date=2022-12-12&format=json&trigger=archivephp: ‘PHP Deprecated: Function utf8_encode() is deprecated in /path-to-matomo/example.com/public_html/vendor/szymach/c-pchart/constants.php on line 48 {“idarchives”:[22581],“nb_visits”:29}’
ERROR [2022-12-13 19:05:12] 28748 Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=2&period=day&date=2022-12-11&format=json&trigger=archivephp: ‘PHP Deprecated: Function utf8_encode() is deprecated in /path-to-matomo/example.com/public_html/vendor/szymach/c-pchart/constants.php on line 48 {“idarchives”:[20181],“nb_visits”:6}’
ERROR [2022-12-13 19:05:16] 28748 Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=2&period=week&date=2022-12-12&format=json&trigger=archivephp: ‘PHP Deprecated: Function utf8_encode() is deprecated in /path-to-matomo/example.com/public_html/vendor/szymach/c-pchart/constants.php on line 48 {“idarchives”:[23266],“nb_visits”:33}’
[Exception]
62 total errors during this script execution, please investigate and try and fix these errors.
core:archive [–url="…"] [–skip-idsites[="…"]] [–skip-all-segments] [–force-idsites[="…"]] [–skip-segments-today] [–force-periods[="…"]] [–force-date-last-n[="…"]] [–force-date-range[="…"]] [–force-idsegments="…"] [–concurrent-requests-per-website[="…"]] [–concurrent-archivers[="…"]] [–max-websites-to-process="…"] [–max-archives-to-process="…"] [–disable-scheduled-tasks] [–accept-invalid-ssl-certificate] [–php-cli-options[="…"]] [–force-all-websites] [–force-report[="…"]]
INFO [2022-12-13 20:47:35] 24415 Error: Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=26&period=month&date=2022-12-01&format=json&trigger=archivephp: ‘PHP Deprecated: Function utf8_encode() is deprecated in /home/roguevalleymedia/domains/analytics.roguevalleymedia.com/public_html/vendor/szymach/c-pchart/constants.php on line 48 {“idarchives”:[23501],“nb_visits”:24}’
Cron =
/usr/bin/php /path-to-matomo/example.com/public_html/console core:archive --url=https://example.com/ > /dev/null
We also tried this Cron:
/usr/bin/php /path-to-matomo/example.com/public_html/console --matomo-domain=example.com core:archive
Any help or suggestions are appreciated.
2 posts - 2 participants