Archive Cron Job setup in Cpanel not working

Please ignore. Fixed.

I wonder if anyone can help/ I’ve setup a corn job in Cpanel for auto archiving. However it’s not working and I’m getting an error message in the system check page telling me so.

In the log, the last entry is this…

INFO [2022-10-06 18:02:51] 1527866 Error: Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=49&period=year&date=2022-01-01&format=json&trigger=archivephp: 'Got invalid response from API request: domain.com/stats/?module=API&method=CoreAdminHome.archiveReports&idSite=49&period=year&date=2022-01-01&format=json&trigger=archivephp&. Response was 'Missing scheme in given url''

We (myself and server guy) have tried editing the command all ways, but nothing is working.

I wonder if anyone can shed some light based on the message above from the log?

Thanks.

Can interest someone else… How did you fix this?

I had an error in the Cron Job command text. Fixed that, and it all worked. I’m guessing the error message above said what it said “invalid response from API” etc. because the script couldn’t find the files it needed because there was an error in the command.

1 Like