CodeIgniter Forums
Preventing infinite loop causing "Maximum function nesting level of '100' reached" - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Preventing infinite loop causing "Maximum function nesting level of '100' reached" (/thread-41288.html)



Preventing infinite loop causing "Maximum function nesting level of '100' reached" - El Forum - 05-03-2011

[eluser]Webnet[/eluser]
I'm getting this error on one of my pages and I'm unable to figure out where my loop is... I've played around with debug_backtrace but I don't know how to use it well enough to determine the cause of the issue (it also turns out to be VERY long). Any ideas on how I can improve my debugging of this issue?

Code:
Fatal error: Maximum function nesting level of '100' reached, aborting! in C:\Program Files (x86)\EasyPHP-5.3.6.0\www\site.com\system\core\Common.php on line 328

Check out this post for more details and my solution... http://stackoverflow.com/questions/5877869/determine-problem-in-codeigniter-controller

This brings up the question, why do I need this workaround?


Preventing infinite loop causing "Maximum function nesting level of '100' reached" - El Forum - 05-03-2011

[eluser]InsiteFX[/eluser]
In your controller add this line:
Code:
// Enable Profiler.
$this->output->enable_profiler(TRUE);
You can also trun on logging in application/config/config.php

InsiteFX


Preventing infinite loop causing "Maximum function nesting level of '100' reached" - El Forum - 05-07-2011

[eluser]Webnet[/eluser]
I did have this enabled, but it's a terminating error so I'm not able to see the output of the profiler.


Preventing infinite loop causing "Maximum function nesting level of '100' reached" - El Forum - 05-08-2011

[eluser]InsiteFX[/eluser]
PHP NET - Maximum function nesting error

InsiteFX