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 :
I opened settings.php to see xdebug settings but it was missing there. So I added a line there xdebug.max_nesting_level=256 and then refreshed the page and page gave me error, so I went to same settings.php file again and changed it $settings['xdebug.max_nesting_level'] = 256; there is no error now but page still shows that xdebug setting is not set to 256.
How to fix it?

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 directory
Start 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 changes
Find the xdebug and at the end add this line.Like this 
Save the file and restart wamp server.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With