Note that this blog post has been archived. Information may be out of date or incorrect.

Maximum function nesting level of '100' reached

I randomly got this error message while working on a new project. I first thought that this was an error generated by PHP, and therefore I couldn’t figure out why I wasn’t getting it in my staging environment, which had the exact same code and content.

It turns out that this is an error generated by XDebug, which isn’t installed in my staging system, which explains why it wasn’t thrown there. So for some odd reason, Templavoila seems to recurse a lot … Anyhow, you can get rid of this error just by increasing the maximum function nesting in your xdebug.ini (or php.ini, whichever you find first)

xdebug.max_nesting_level = 1000