问题描述
升级到Laravel 5.1后,我在Laravel应用程序中收到此错误消息.
FatalErrorException in Dispatcher.php line 200:
Maximum function nesting level of '100' reached, aborting!
此问题出现在我的应用程序的某些URL上.我已经做了很多composer update
,但是问题仍然存在.任何建议都将不胜感激
问题由默认的xdebug.max_nesting_level
引起.为100.
目前的解决方法是将xdebug.max_nesting_level
增加到一定水平,例如200或300或400
我通过将以下代码添加到Laravel 5.1中的bootstrap/autoload.php
中,将xdebug.max_nesting_level增加到120来修复了我的问题.
ini_set('xdebug.max_nesting_level', 120);
.........
define('LARAVEL_START', microtime(true));
I'm getting this error message in my Laravel application after I upgraded to Laravel 5.1.
FatalErrorException in Dispatcher.php line 200:
Maximum function nesting level of '100' reached, aborting!
This issue occurs on some URLs of my app. I have done dozens of composer update
but issue still persist. Any suggestion at all will be appreciated
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));
这篇关于达到最大功能嵌套级别"100",在升级到Laravel 5.1后中止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!