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

core:archive can fail with 'Fatal error: Maximum function nesting level of '100' reached' #7770

Closed
mattab opened this issue Apr 27, 2015 · 4 comments
Labels
answered For when a question was asked and we referred to forum or answered it. Bug For errors / faults / flaws / inconsistencies etc.

Comments

@mattab
Copy link
Member

mattab commented Apr 27, 2015

Hopefully it's not a regression of 2.13.0 but archiving locally I got this error:

ERROR [2015-04-27 04:08:54] Got invalid response from API request: http://localhost/index.php?module=API&method=API.get&idSite=1&period=year&date=last6&format=php&token_auth=removed&segment=pageUrl%21%3Dxx&trigger=archivephp. Response was ' Fatal error: Maximum function nesting level of '100' reached, aborting! in /home/matt/dev/piwik-master/core/DataTable/Manager.php on line 31  Call Stack:     0.0002     238296   
1. {main}() /home/matt/dev/piwik-master/console:0     0.0267    2443088   
2. Symfony\Component\Console\Application->run() /home/matt/dev/piwik-master/console:27     0.0297    2778912   
3. Piwik\Console->doRun() /home/matt/dev/piwik-master/vendor/symfony/console/Symfony/Component/Console/Application.php:126     0.1317   14388040   
4. Piwik\Access::doAsSuperUser() /home/matt/dev/piwik-master/core/Console.php:74     0.1321   14389544   
5. Piwik\Console->Piwik\{closure}() /home/matt/dev/piwik-master/core/Access.php:466     0.1321   14390032   
6. call_user_func() /home/matt/dev/piwik-master/core/Console.php:73     0.1321   14390320   
7. Symfony\Component\Console\Application->doRun() /home/matt/dev/piwik-master/core/Console.php:73     0.1323   14391240   
8. Symfony\Component\Console\Application->doRunCommand() /home/matt/dev/piwik-master/vendor/symfony/console/Symfony/Component/Console/Application.php:195     0.1324   14391712   
9. Symfony\Component\Console\Command\Command->run() /home/matt/dev/piwik-master/vendor/symfony/console/Symfony/Component/Console/Application.php:874     0.1328   14397488  
10. Piwik\CliMulti\RequestCommand->execute() /home/matt/dev/piwik-master/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:253     0.1639   14662360  
11. require_once('/home/matt/dev/piwik-master/index.php') /home/matt/dev/piwik-master/core/CliMulti/RequestCommand.php:66     0.1640   14669592  
12. require_once('/home/matt/dev/piwik-master/core/dispatch.php') /home/matt/dev/piwik-master/index.php:27     0.2538   20537416  
13. Piwik\FrontController->dispatch() /home/matt/dev/piwik-master/core/dispatch.php:31     0.2542   20565216  
14. Piwik\FrontController->doDispatch() /home/matt/dev/piwik-master/core/FrontController.php:97     0.2631   21359008  
15. call_user_func_array() /home/matt/dev/piwik-master/core/FrontController.php:531     0.2631   21359288 
16. Piwik\Plugins\API\Controller->index() /home/matt/dev/piwik-master/core/FrontController.php:531     0.2634   21364240  
17. Piwik\API\Request->process() /home/matt/dev/piwik-master/plugins/API/Controller.php:37     0.2693   21735096  
18. Piwik\API\Proxy->call() /home/matt/dev/piwik-master/core/API/Request.php:231     0.2705   21766792  
19. call_user_func_array() /home/matt/dev/piwik-master/core/API/Proxy.php:211     0.2705   21767744  
20. Piwik\Plugins\API\API->get() /home/matt/dev/piwik-master/core/API/Proxy.php:211    19.8464   47971408  
21. Piwik\API\Proxy->call() /home/matt/dev/piwik-master/plugins/API/API.php:410    19.8478   47991936 
22. call_user_func_array() /home/matt/dev/piwik-master/core/API/Proxy.php:211    19.8478   47992808  
23. Piwik\Plugins\Bandwidth\API->get() /home/matt/dev/piwik-master/core/API/Proxy.php:211    19.8675   48095728  
24. Piwik\Archive->getDataTableFromNumeric() /home/matt/dev/piwik-master/plugins/Bandwidth/API.php:33    19.8675   48095808  
25. Piwik\Archive->get() /home/matt/dev/piwik-master/core/Archive.php:355    19.8906   48300648  
26. Piwik\Archive->getArchiveIds() /home/matt/dev/piwik-master/core/Archive.php:629    19.8909   48301736  
27. Piwik\Archive->cacheArchiveIdsAfterLaunching() /home/matt/dev/piwik-master/core/Archive.php:691    19.8967   48342024  
28. Piwik\Archive->prepareArchive() /home/matt/dev/piwik-master/core/Archive.php:739    19.8969   48342800  
29. Piwik\ArchiveProcessor\Loader->prepareArchive() /home/matt/dev/piwik-master/core/Archive.php:925    19.8986   48352208 
30. Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive() /home/matt/dev/piwik-master/core/ArchiveProcessor/Loader.php:72    19.8999   48355136  
31. Piwik\ArchiveProcessor\PluginsArchiver->callAggregateCoreMetrics() /home/matt/dev/piwik-master/core/ArchiveProcessor/Loader.php:116    19.8999   48355136 
32. Piwik\ArchiveProcessor\PluginsArchiver->aggregateMultipleVisitsMetrics() /home/matt/dev/piwik-master/core/ArchiveProcessor/PluginsArchiver.php:64    19.8999   48356056  
33. Piwik\ArchiveProcessor->aggregateNumericMetrics() /home/matt/dev/piwik-master/core/ArchiveProcessor/PluginsArchiver.php:212    19.8999   48356104  
34. Piwik\ArchiveProcessor->getAggregatedNumericMetrics() /home/matt/dev/piwik-master/core/ArchiveProcessor.php:259    19.9001   48358512 
35. Piwik\Archive->getDataTableFromNumeric() /home/matt/dev/piwik-master/core/ArchiveProcessor.php:552    19.9001   48358600 
36. Piwik\Archive->get() /home/matt/dev/piwik-master/core/Archive.php:355    19.9221   48515648  
37. Piwik\Archive->getArchiveIds() /home/matt/dev/piwik-master/core/Archive.php:629    19.9226   48516936  
38. Piwik\Archive->cacheArchiveIdsAfterLaunching() /home/matt/dev/piwik-master/core/Archive.php:691    19.9268   48521424  
39. Piwik\Archive->prepareArchive() /home/matt/dev/piwik-master/core/Archive.php:739    19.9269   48522200  
40. Piwik\ArchiveProcessor\Loader->prepareArchive() /home/matt/dev/piwik-master/core/Archive.php:925    19.9280   48522440  
41. Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive() /home/matt/dev/piwik-master/core/ArchiveProcessor/Loader.php:72    19.9293   48525376  
42. Piwik\ArchiveProcessor\PluginsArchiver->callAggregateCoreMetrics() /home/matt/dev/piwik-master/core/ArchiveProcessor/Loader.php:116    19.9293   48525376  
43. Piwik\ArchiveProcessor\PluginsArchiver->aggregateMultipleVisitsMetrics() /home/matt/dev/piwik-master/core/ArchiveProcessor/PluginsArchiver.php:64    19.9293   48526296  
44. Piwik\ArchiveProcessor->aggregateNumericMetrics() /home/matt/dev/piwik-master/core/ArchiveProcessor/PluginsArchiver.php:212    19.9293   48526344  
45. Piwik\ArchiveProcessor->getAggregatedNumericMetrics() 

Questions:

  • Note: I restarted the script and then the exact same API request was working. Maybe it was only a temporary issue, but how could it even occur temporarily?
  • Is this a bug? How do we prevent it?
@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Apr 27, 2015
@diosmosis
Copy link
Member

This should be due to xdebug, I experience it when it's enabled.

@tsteur
Copy link
Member

tsteur commented Apr 28, 2015

Same as @diosmosis Only experience such issues due to xdebug usually.

@mattab
Copy link
Member Author

mattab commented Apr 28, 2015

Thanks for the tip. Added a new FAQ to spread this knowledge: How do I fix the error ‘Fatal error: Maximum function nesting level of ‘100’ reached, aborting!’?

@mattab mattab closed this as completed Apr 28, 2015
@mattab
Copy link
Member Author

mattab commented Apr 28, 2015

btw you don't need to disable Xdebug completely but can also set:
xdebug.max_nesting_level=500 to not limit the stack to 100 but to 500 instead

@mattab mattab modified the milestone: Short term Sep 23, 2015
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Oct 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it. Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants