We have just installed the Matomo plugin in our WebSite. Everything is OK, except the archiving process.
When we manually try to archive reports by clicking on the button (Diagnostics / Trouble Shouting menu), we get the following error message :
‘Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2023-01-09&format=json&trigger=archivephp. The response was empty. This usually means a server error. A solution to this error is generally to increase the value of ‘memory_limit’ in your php.ini file. For more information and the error message please check in your PHP CLI error log file. As this core:archive command triggers PHP processes over the CLI, you can find where PHP CLI logs are stored by running this command: php -i | grep error_log’
‘Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2023-01-09&format=json&trigger=archivephp: ‘’’
In the php.ini file I have the setting : memory_limit = 1024M
which is “normally” enough, that’s why we don’t understand this error message.
Thanks a lot for your reply. Unfortunately I cannot change this parameter because the Web site is hosted on a shared environment.
Nevertheless, we only have around 200 connections per day, so I don’t think that the memory limit is the bottleneck.
Looking on Internet, I have seen that this error message, most of the time, has nothing to do with the memory limit :-(.
Do you have nay other ideas ?
Thanks a lot fro your help and support,