Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drupal installation: Set xdebug.max_nesting_level=256 in your PHP configuration

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 :

  1. files
  2. default.services.yml
  3. default.settings.php
  4. settings.php

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?

enter image description here

like image 528
paul Avatar asked Dec 23 '15 09:12

paul


1 Answers

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:

  1. Open notepad or any text editor and save it as phpinfo.php with content

    <?
    php phpinfo();
    ?>
    
  2. Put this file in directory which you renamed in the given youtube tutorial i.e. drupal installation directory

  3. Start your wampserver and goto this directory using any browser. Info like this would appear.enter image description here

  4. You now have the correct php.ini in which you need to make the xdebug changes

  5. Find the xdebug and at the end add this line.Like this enter image description here

  6. Save the file and restart wamp server.

enter image description here

  1. Now go to the Requirements problems page and you won't see this problem.
like image 104
paul Avatar answered Sep 22 '22 02:09

paul