core/Common.php(297): Notice - unserialize(): Error at offset 0 of XXXX bytes - Matomo 3.13.5

Since the upgrade to Matomo 3.13.5 problem running archiving
/console core:archive --url=https://mywebsite.com/ > /[DIRECTORIES]/logs/matomo-archive.log

Partial log:

INFO [2020-05-08 22:42:41] 16938 ---------------------------
INFO [2020-05-08 22:42:41] 16938 START
INFO [2020-05-08 22:42:41] 16938 Starting Matomo reports archiving...
INFO [2020-05-08 22:42:41] 16938 Day has finished for website id 1, 7, 8, 9, 10, since last run
INFO [2020-05-08 22:42:41] 16938 Will pre-process for website id = 1, period = day, date = last2
INFO [2020-05-08 22:42:41] 16938 - pre-processing all visits
WARNING [2020-05-08 22:42:42] 16938 [DIRECTORIES]/core/Common.php(297): Notice - unserialize(): Error at offset 0 of 7757 bytes - Matomo 3.13.5 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
INFO [2020-05-08 22:42:42] 16938 Day has finished for website id 2 since last run
INFO [2020-05-08 22:42:42] 16938 Will pre-process for website id = 2, period = day, date = last2
INFO [2020-05-08 22:42:42] 16938 - pre-processing all visits
WARNING [2020-05-08 22:42:42] 16938 [DIRECTORIES]/core/Common.php(297): Notice - unserialize(): Error at offset 0 of 3570 bytes - Matomo 3.13.5 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
INFO [2020-05-08 22:42:43] 16938 Day has finished for website id 4 since last run
INFO [2020-05-08 22:42:43] 16938 Will pre-process for website id = 4, period = day, date = last2
INFO [2020-05-08 22:42:43] 16938 - pre-processing all visits
...

Was working fine for years, without any recent server configuration changes.

MySQL version: 5.7.30
PHP version: 7.2.30

Hi,

As already mentioned on Github, you need to check your PHP error log as without the exact error message one can only blindly guess what is happening.

PHP log and has no related records
except: PHP message: Error in Matomo: Action ‘’ not found in the module ‘Proxy’;

Running php console diagnostics:run gives “Could not open input file: console”

A quick update: Upgrading PHP to 7.4.5 fixed all the issues.
It appears that in our case the environment with PHP 7.2.30 was causing issues without reporting any errors.

1 Like