【问题标题】:Error during Magento InstallationMagento 安装期间的错误
【发布时间】:2016-03-04 09:52:20
【问题描述】:

我正在尝试在我的本地主机上安装 Magento 2,但它在准备检查期间给了我以下错误。

PHP Settings Check
Your current setting of xdebug.max_nesting_level=100. Magento 2 requires it to be set to 200 or more. Edit your config, restart web server, and try again.

我在整个 wamp 中搜索了xdebug.max_nesting_level,但没有找到任何这样的短语。打开我的php.ini 文件。最后几行是这些。

[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "d:/wamp/tmp"
xdebug.show_local_vars=0

所以我在它下面添加了额外的一行。

xdebug.max_nesting_level = 200

但安装仍然给我同样的错误。我该怎么办?

【问题讨论】:

    标签: php magento xdebug magento2 magento-2.0


    【解决方案1】:

    您是否重新启动了 apache 服务?

    编辑:

    将“php_value xdebug.max_nesting_level 500”添加到您的 .htaccess

    【讨论】:

    • 我不完全确定,但我注意到 xdebug.remote_enable 和 xdebug.profiler_enable 都是“关闭”的,你试过一次打开它们吗?不完全确定,但可能值得一试:)
    • 尝试添加:'php_value xdebug.max_nesting_level 500'到你的.htaccess
    • 太棒了 :) 没问题 :) 祝你好运!
    猜你喜欢
    • 1970-01-01
    • 2014-10-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多