已达到“256”的最大函数嵌套级别,正在中止!at Magento保存config

eni9jsuy  于 2022-11-12  发布在  其他
关注(0)|答案(1)|浏览(98)

因此,当我尝试从系统-〉配置-〉保存配置中保存配置时,我收到一个错误消息:

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

第412章:我的天

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

第125行:

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

我做了一些调查,但没找到多少。
有什么想法吗?

cngwdvgl

cngwdvgl1#

您应该在bootsrap.php中添加

ini_set('xdebug.max_nesting_level', 500);

或者,如果您可以访问您的php.ini,请在您的php.ini文件中添加

xdebug.max_nesting_level=500

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

相关问题