You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I read that one before i wrote this one, i don't think that one relates as it has to do with timing, in this case it wont process at all. But who knows
Pretty sure the issue is with the cleanupNotRemovedFiles() function calling a foreach loop on the variable $files. There needs to be a check if $files is empty before calling the foreach loop, as shown below. This fixed the error for me:
public static function cleanupNotRemovedFiles()
{
$timeOneWeekAgo = strtotime('-1 week');
$files = _glob(self::getTmpPath() . '/*');
if(empty($files)) {
return;
}
foreach ($files as $file) {
$timeLastModified = filemtime($file);
if ($timeOneWeekAgo > $timeLastModified) {
unlink($file);
}
}
}
I run multiple large websites so i use crontab to do cron jobs, it stopped working after i updated to 2.1.0 trough the web interface.
I get the following on multiple instances on piwik i use after accessing https://stats.mywebsite.com/misc/cron/archive.php?token_auth=mykeyhere
See attached
Keywords: cron
The text was updated successfully, but these errors were encountered: