[Bug] archive causes php memory limit warning #22447
Labels
Potential Bug
Something that might be a bug, but needs validation and confirmation it can be reproduced.
To Triage
An issue awaiting triage by a Matomo core team member
What happened?
Launching a cronjob to auto-archive my matomo site returns this error
Error: Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2024-07-26&format=json&trigger=archivephp: 'PHP Warning: Failed to set memory limit to 0 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0 {"idarchives":[3551],"nb_visits":6}'
What should happen?
Archive cronjob should run with no errors reported on stderr
How can this be reproduced?
Launching this command
/usr/local/bin/php /var/www/html/console core:archive --url=https://mysite.domain.tld/"
Matomo version
5.1.0
PHP version
8.1.29
Server operating system
Debian GNU/Linux 12
What browsers are you seeing the problem on?
Not applicable (e.g. an API call etc.)
Computer operating system
Windows 11 Pro 23H2
Relevant log output
Validations
The text was updated successfully, but these errors were encountered: