1

今天突然发现这个问题,不知道是什么原因造成的,也不知道如何解决。

Fatal error: Maximum function nesting level of '100' reached, aborting! in /var/www/apps/vitals-app/releases/20120127155310/libraries/lithium/util/Collection.php on line 110

Call Stack:
    0.0077     634440   1. {main}() /var/www/apps/vitals-app/releases/20120127155310/app/webroot/index.php:0
    0.4413    6223432   2. lithium\action\Dispatcher::run() /var/www/apps/vitals-app/releases/20120127155310/app/webroot/index.php:41
    0.4413    6225544   3. lithium\core\StaticObject::_filter() /var/www/apps/vitals-app/releases/20120127155310/libraries/lithium/action/Dispatcher.php:123
    0.4413    6228576   4. lithium\util\collection\Filters::run() /var/www/apps/vitals-app/releases/20120127155310/libraries/lithium/core/StaticObject.php:126

此处的完整跟踪:http: //pastium.org/view/73b48fb1848e65b61607a33de4f49b55

4

2 回答 2

1

检查您是否安装了 XDebug。如果你这样做,你可以在你的 php.ini 中提高限制

xdebug.max_nesting_level = 200

除此之外,看起来某处有一个递归函数需要重写以防止达到该限制。

于 2012-02-08T22:41:04.147 回答
1

这看起来与您的 mongo 文档有很长的嵌套子文档树有关。通常这不是问题,但如果您安装了 xdebug,它会限制 100 个嵌套调用。更改 php.ini 中的限制将解决您的问题。

xdebug.max_nesting_level = 200
于 2012-02-09T16:15:55.540 回答