diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-09-28 22:32:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-28 22:32:32 +0300 |
commit | 7c08d92788d80466671caa967c926efc47651a2d (patch) | |
tree | 53d1fcf7912b9a4ed5691baa3c20cb10c1ca53d6 /plugins | |
parent | fff3dddae9f7ce341576e8c131545867a5916b0d (diff) |
Fix error getSegmentArchivesToInvalidateForNewSegments() on null (#16482)
fix `Uncaught exception: Error: Call to a member function getSegmentArchivesToInvalidateForNewSegments() on null in core/CronArchive.php:818`
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreAdminHome/Tasks.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/CoreAdminHome/Tasks.php b/plugins/CoreAdminHome/Tasks.php index eb76a8c6f0..29444de212 100644 --- a/plugins/CoreAdminHome/Tasks.php +++ b/plugins/CoreAdminHome/Tasks.php @@ -115,6 +115,7 @@ class Tasks extends \Piwik\Plugin\Tasks $idSites = Request::processRequest('SitesManager.getAllSitesId'); foreach ($idSites as $idSite) { $cronArchive = new CronArchive(); + $cronArchive->init(); $cronArchive->invalidateArchivedReportsForSitesThatNeedToBeArchivedAgain($idSite); } } |