Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to a member function walkPath() on a non-object ... #3592

Closed
anonymous-matomo-user opened this issue Dec 4, 2012 · 6 comments
Closed
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Milestone

Comments

@anonymous-matomo-user
Copy link

... 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://<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://<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
Copy link
Member

mattab commented Dec 13, 2012

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
Copy link
Author

Hi Matt, I applied the patch as instructed.

Detailled error:
Got invalid response from API request: http://<piwik-url>/index.php?module=API&method=VisitsSummary.getVisits&idSite=449&period=day&date=last52&format=php&token_auth=<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
Copy link
Member

mattab commented Jan 2, 2013

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

@anonymous-matomo-user
Copy link
Author

Please see PM

@mattab
Copy link
Member

mattab commented Mar 11, 2013

@ 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
Copy link
Member

mattab commented Mar 22, 2013

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

@anonymous-matomo-user anonymous-matomo-user added this to the 1.12 - The Great 1.x Backlog milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

2 participants