• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

达到最大函数嵌套级别“100",升级到 Laravel 5.1 后止

用户头像
it1352
帮助3

问题说明

升级到 Laravel 5.1 后,我在 Laravel 应用程序中收到此错误消息.

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!

此问题出现在我应用的某些 URL 上.我已经做了几十个 composer update 但问题仍然存在.任何建议都将不胜感激

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

正确答案

#1

问题是由默认xdebug.max_nesting_level 100 引起的.

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

现在的解决方法是将 xdebug.max_nesting_level 增加到某个级别,比如 200 或 300 或 400

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

我通过将 xdebug.max_nesting_level 增加到 120 来修复我的问题,将下面的行添加到 Laravel 5.1 中的 bootstrap/autoload.php

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

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tangibkgf
系列文章
更多 icon
同类精品
更多 icon
继续加载