Drupal installation: Set xdebug.max_nesting_level=256 in your PHP configuration
You need to add this line xdebug.max_nesting_level = 256
in correct php.ini
file instead of settings.php
To it correctly follow below steps:
-
Open notepad or any text editor and save it as
phpinfo.php
with content<? php phpinfo(); ?>
Put this file in directory which you renamed in the given youtube tutorial i.e.
drupal
installation directoryStart your wampserver and goto this directory using any browser. Info like this would appear.
You now have the correct
php.ini
in which you need to make the xdebug changesSave the file and restart wamp server.
- Now go to the Requirements problems page and you won't see this problem.
paul
Updated on June 13, 2022Comments
-
paul almost 2 years
I am following a tutorial here https://www.youtube.com/watch?v=h5i6emqdOgg
In between the installation I get this page, where it shows that there are some requirements missing. One of them says
Set xdebug.max_nesting_level=256 in your PHP configuration
I went to
C:\wamp\www\sampleWebSite\sites\default
which has :- files
- default.services.yml
- default.settings.php
- settings.php
I opened
settings.php
to seexdebug
settings but it was missing there. So I added a line therexdebug.max_nesting_level=256
and then refreshed the page and page gave me error, so I went to samesettings.php
file again and changed it$settings['xdebug.max_nesting_level'] = 256;
there is no error now but page still shows thatxdebug
setting is not set to 256.How to fix it?
-
paul over 8 yearsI added above line at the end of
php.ini
at this locationC:\wamp\bin\php\php5.5.12\php.ini
but no change error is still there. -
greg606 over 8 yearsdid you restart the server? is it the correct php.ini that is actually being used?
-
greg606 over 8 yearsalso please, upgrade your php/wamp - we already have php 7 but you should use at least 5.6
-
greg606 over 8 yearsif you confirm the php.ini is correct and server restarted, one more thing which seems possible that this setting could be overwritten somewhere -> then you should use text search to find where
-
paul over 8 yearsthis php came with latest wamp from wampserver.com. And Yes, I started the server after editing php.ini. I am not sure this is the correct php.ini I am new to drupal.
-
greg606 over 8 yearsdid you try to use phpinfo() to locate php.ini or here /admin/reports/status/php - to locate the correct php.ini
-
Hamad over 5 yearsThank You i have put the code in .htaccess file of the drupal site and it works