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...

7
  • 1
    Answered here: stackoverflow.com/questions/4293775/… Commented May 3, 2011 at 2: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. Commented May 3, 2011 at 2:40
  • Better answer than mine! Commented May 3, 2011 at 2:40
  • That only tells me how to increase it, I don't want to increase it, I want to find the loop Commented May 3, 2011 at 2: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. Commented May 3, 2011 at 2:42

2 Answers 2

2

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

http://www.xdebug.org/

Sign up to request clarification or add additional context in comments.

Comments

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.

1 Comment

welcome to SO! Notice its a 10 years old question. Make sure the answer still relevent nowadays.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.