• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Preventing infinite loop causing "Maximum function nesting level of '100' reached"

#1
[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/58778...controller

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

#2
[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

#3
[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.

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

InsiteFX


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.