1

I'm getting the above error, is there any built in support for a stack trade in code igniter? I have an infinite loop somewhere I'm trying to figure out where it is...

Ben
  • 60,438
  • 111
  • 314
  • 488
  • 1
    Answered here: http://stackoverflow.com/questions/4293775/increasing-nesting-functions-calls-limit – lucifurious May 03 '11 at 02:39
  • 1
    If CI replaces the default error handler and slurps up line number and filename, then reinstantiate a workaround with `set_error_handler("var_dump");` early in your script. Otherwise use the xdebug profiler. – mario May 03 '11 at 02:40
  • Better answer than mine! – Michael B May 03 '11 at 02:40
  • That only tells me how to increase it, I don't want to increase it, I want to find the loop – Ben May 03 '11 at 02:40
  • Sorry. The problem is you're probably using var_export() somewhere. It doesn't stop on infinite nested objects (which is common in some frameworks). Try using var_dump() or print_r() instead. – lucifurious May 03 '11 at 02:42
  • I'm not using var_dump, print_r or var_export anywhere – Ben May 03 '11 at 02:43
  • Have you tried my suggestion below? – Michael B May 03 '11 at 17:08

2 Answers2

2

Try using the xDebug plugin for PHP for the functionality you seek:

http://www.xdebug.org/

Michael B
  • 1,743
  • 4
  • 21
  • 35
0

If you use hmvc, check if you have not loaded something in the wrong way, i.e, $this->load->module() instead of $this->load->model(). I faced the same issue and that was the cause of that message.

anfern
  • 1