达到最大功能嵌套级别"100",在升级到Laravel 5.1后中止 [英] Maximum function nesting level of '100' reached, aborting after upgrading to Laravel 5.1

查看:64
本文介绍了达到最大功能嵌套级别"100",在升级到Laravel 5.1后中止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到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后中止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆