Mr. Developer Mr. Developer - 1 year ago 264
PHP Question

How to fix laravel 5.2 this error "Maximum function nesting level of '100' reached, aborting!"?

I'm trying to reset password from laravel auto generated login/register authentication module. When i click on reset button it give me this error

FatalErrorException in ClassLoader.php line 344:
Maximum function nesting level of '100' reached, aborting!

I searched about it and find an accepted answer, but this answer does not work on my side i have followed the instruction. Can any one guide me it is laravel error or wamp ? and how can fix it. I would like to appreciate.

Answer Source

Issue is caused by default xdebug.max_nesting_level which is 100.

The workaround for now is to increase xdebug.max_nesting_level to a certain level say 200 or 300 or 400.

I fixed mine by increasing xdebug.max_nesting_level to 120, by adding the line below to bootstrap/autoload.php in the Laravel 5.1

ini_set('xdebug.max_nesting_level', 120);


define('LARAVEL_START', microtime(true));
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download