【问题标题】:Maximum function nesting level of '256' reached, aborting! at Magento save config已达到“256”的最大函数嵌套级别,正在中止!在 Magento 保存配置
【发布时间】:2017-11-14 00:13:47
【问题描述】:

所以当我尝试从 System->Configuration->Save Config 保存我的配置时,我收到一条错误消息:

Maximum function nesting level of '256' reached, aborting!
In Mage.php on line 412.
And in lib\Varien\Autoload.php on line 125.

Mage.php 第 412 行:

public static function getConfig()
{
    return self::$_config;
}

Autoload.php 第 125 行:

public function destroy()
{
    if ($this->_collectClasses) {
        $this->_saveCollectedStat();
    }
}

我做了一些研究,但找不到太多。

有什么想法吗?

【问题讨论】:

标签: php magento mage


【解决方案1】:

你应该添加你的 bootsrap.php

ini_set('xdebug.max_nesting_level', 500);

或者,如果您有权访问您的 php.ini,请添加您的 php.ini 文件

xdebug.max_nesting_level=500

[500] 不是必需的,您也可以设置 200、300 等。

【讨论】:

    猜你喜欢
    • 2019-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-23
    • 2012-04-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多