@anonymous-matomo-user opened this Issue on December 4th 2012

... in <piwikpath>\plugins\Actions\ArchivingHelper.php on line 254
during archive script processing.

Piwik 1.9.2 / Windows / PHP 5.4.9

Affects just two sites out of >600:

Output archive-Script:

[]
06:40:26 [Archived website id = 446, today = 8 visits, 1 API requests, Time elapsed: 0.312s 149/626 done
06:40:27 [2a564c37] Archived website id = 447, period = day, Time elapsed: 0.297s
06:40:27 [Archived website id = 447, today = 4 visits, 1 API requests, Time elapsed: 0.297s 150/626 done
06:40:27 [2a564c37] Archived website id = 448, period = day, Time elapsed: 0.299s
06:40:27 [Archived website id = 448, today = 4 visits, 1 API requests, Time elapsed: 0.299s 151/626 done
06:40:27 [2a564c37] ERROR: Got invalid response from API request: http://&lt;piwikurl>/index.php?module=API&method=VisitsSummary.getVisits&idSite=449&period=day&date=last52&format=php&token_auth=47c7bfb7ced6bb49772b8f1d0c723f54&trigger=archivephp. The response was empty. This usually means a server error. This solution to this error is generally to increase the value of 'memory_limit' in your php.ini file. Please check your Web server Error Log file for more details.
06:40:27 [2a564c37] WARNING: Empty or invalid response '' for website id 449, Time elapsed: 0.347s, skipping
06:40:28 [2a564c37] Archived website id = 450, period = day, Time elapsed: 0.321s
06:40:28 [Archived website id = 450, today = 7 visits, 1 API requests, Time elapsed: 0.322s 153/626 done
06:40:28 [2a564c37] ERROR: Got invalid response from API request: http://&lt;piwikurl>/index.php?module=API&method=VisitsSummary.getVisits&idSite=451&period=day&date=last52&format=php&token_auth=47c7bfb7ced6bb49772b8f1d0c723f54&trigger=archivephp. The response was empty. This usually means a server error. This solution to this error is generally to increase the value of 'memory_limit' in your php.ini file. Please check your Web server Error Log file for more details.
06:40:28 [2a564c37] WARNING: Empty or invalid response '' for website id 451, Time elapsed: 0.301s, skipping
06:40:28 [2a564c37] Archived website id = 452, period = day, Time elapsed: 0.309s
06:40:28 [Archived website id = 452, today = 2 visits, 1 API requests, Time elapsed: 0.309s 155/626 done
[]

Entries in PHP errorlog:

04-Dec-2012 06:40:27 UTC] PHP Fatal error: Call to a member function walkPath() on a non-object in <piwikdir>\plugins\Actions\ArchivingHelper.php on line 254
06:40:28 UTC PHP Fatal error: Call to a member function walkPath() on a non-object in <piwikdir>\plugins\Actions\ArchivingHelper.php on line 254

Keywords: error walkPath archiving

@mattab commented on December 13th 2012 Member

do you use any particular plugin?

can you apply the following patch:

--- plugins/Actions/ArchivingHelper.php (revision 7593)
+++ plugins/Actions/ArchivingHelper.php (revision )
@@ -251,6 +251,10 @@

    // go to the level of the subcategory
    $actionExplodedNames = self::getActionExplodedNames($actionName, $actionType, $urlPrefix);
  • if(!($currentTable instanceof Piwik_DataTable)) {
  • debug_print_backtrace();
  • throw new Exception ("invalid table: " . $currentTable );
  • }

It will give more info about the bug

@anonymous-matomo-user commented on December 19th 2012

Hi Matt, I applied the patch as instructed.

Detailled error:
Got invalid response from API request: http://&lt;piwik-url>/index.php?module=API&method=VisitsSummary.getVisits&idSite=449&period=day&date=last52&format=php&token_auth=&lt;auth-token>&trigger=archivephp. Response was '#0 Piwik_Actions_ArchivingHelper::getActionRow(HWS:281454613, 5, , Array ([=> Piwik_DataTable Object ( => Array (),[=> , => 35,[=> 0, = in <piwik-path>\misc\cron\archive.php on line 561

@mattab commented on January 2nd 2013 Member

can you open the "piwik URL" in your browser and send to matt@piwik the full error output ? thx

@anonymous-matomo-user commented on January 4th 2013

Please see PM

@mattab commented on March 11th 2013 Member

@ sang_service sorry I missed your PM. Can you just post here with removing the hostname (or send to matt@piwik with link to this ticket) thx!

@mattab commented on March 22nd 2013 Member

If you see this error happening again on a new day, please reopen and we will investigate, it will be easier to reproduce then.

This Issue was closed on March 22nd 2013
Powered by GitHub Issue Mirror