Error : unserialize()

Hello everyone,

I’m testing Matomo for a few days and I have an error when I launch the command to refreshing data

  • ./console core:archive --force-all-websites --force-all-periods=315576000 --force-date-last-n=1000 --url=’[matomo_local_site]’

Here is the error

/var/www/html/matomo/core/Common.php(297): Notice - unserialize(): Error at offset 0 of 854414 bytes - Matomo 3.13.6 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)

Event with this error, datas are correctly imported.

Could you help me to fix this error ?

Thanks you in advance,

None

With the nex update a have still this warning

/var/www/html/matomo/core/Common.php(297): Notice - unserialize(): Error at offset 0 of 854414 bytes - Matomo 3.14.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)

Thanks in advance for your answer,

Arnaud

Hi,

I think this is the same issue as PHP Warning but import works, just seen indirectly.

Explained in an abstract way (this is not Matomo code):

The PHP-cli archiving process makes some HTTP requests to the Matomo API for some things. If this works, it responds with something similar to this:

a:1:{s:7:"message";s:7:"success";}

php-cli then runs unserialize() to find out that this corresponds to this response and continues

["message" => "success"]

But due to your issue, the webserver responds with

PHP Warning: Module ‘mysqlnd’ already loaded in Unknown on line 0
a:1:{s:7:"message";s:7:"success";}

which then is an invalid format for unserialize() which means the notice is shown. As this is only a warning when parsing the result message, the archiving should still give the correct result.