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
Converting Nsarray -> JSON -> Nsdata -> PHP Server ->JSON Representation
Selenium2 Firefox: Use the Default Profile
Regex to Conditionally Replace Twitter Hashtags with Hyperlinks
Wordpress Paginate_Links - How to Use It
Rounding Up to the Second Decimal Place
How to Generate a Round Robin Tournament in PHP and MySQL
Add a Custom Checkbox in Woocommerce Checkout Which Value Shows in Admin Edit Order
PHP Character Encoding Problems
Laravel Customized Session.Lifetime at User Level
Pdo_Sqlite Driver Not Present.. What to Do
How to Avoid Request Entity Too Large 413 Error
Png Transparency Resize with Simpleimage.PHP Class
Programmatically Create Image from Web-Page or a Single Div
Using PHP & Curl to Login to My Websites Form
Check If Two PHP Datetime Objects Are Set to the Same Date ( Ignoring Time )
When Do/Should I Use _Construct(), _Get(), _Set(), and _Call() in PHP
Calling a Stored Procedure from Codeigniter's Active Record Class