0

我正在尝试在我的本地主机上安装 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

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

4

1 回答 1

1

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

编辑:

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

于 2016-03-04T10:01:07.443 回答