Maximum Function Nesting Level of '100' Reached, Aborting After Upgrading to Laravel 5.1

Maximum function nesting level of '100' reached, aborting after upgrading to Laravel 5.1

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 Laravel 5.1

ini_set('xdebug.max_nesting_level', 120);

.........

define('LARAVEL_START', microtime(true));

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

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));

How to solve Laravel 5 nesting level of '100' reached aborting

first open your xdebug conf file from here /etc/php5/mods-available/xdebug.ini

then set your xdebug nesting level more than 100 as you want xdebug.max_nesting_level=500

Maximum function nesting level of '100' reached, aborting

Assuming you're using xdebug, you can set your own limit with

ini_set('xdebug.max_nesting_level', $limit)

Increasing nesting function calls limit

This error message comes specifically from the XDebug extension. PHP itself does not have a function nesting limit. Change the setting in your php.ini:

xdebug.max_nesting_level = 200

or in your PHP code:

ini_set('xdebug.max_nesting_level', 200);

As for if you really need to change it (i.e.: if there's a alternative solution to a recursive function), I can't tell without the code.



Related Topics



Leave a reply



Submit