I am receiving this error on installing in the error logs

PHP Fatal error: Maximum function nesting level of '100' reached, aborting! in /home/ted/workspace/commerce_kickstart_alpha1/profiles/commerce_kickstart/modules/contrib/pathauto/pathauto.module on line 40, referer: http://localhost/commerce_kickstart_alpha1/install.php?profile=commerce_...
[Wed Jun 27 16:11:25 2012] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/commerce_kickstart_alpha1/install.php?profile=commerce_...
[Wed Jun 27 16:11:25 2012] [error] [client 127.0.0.1] PHP 1. {main}() /home/ted/workspace/commerce_kickstart_alpha1/install.php:0, referer: http://localhost/commerce_kickstart_alpha1/install.php?profile=commerce_...
[Wed Jun 27 16:11:25 2012] [error] [client 127.0.0.1] PHP 2. install_drupal() /home/ted/workspace/commerce_kickstart_alpha1/install.php:26, referer: http://localhost/commerce_kickstart_alpha1/install.php?profile=commerce_...
[Wed Jun 27 16:11:25 2012] [error] [client 127.0.0.1] PHP 3. install_run_tasks() /home/ted/workspace/commerce_kickstart_alpha1/includes/install.core.inc:79, referer: http://localhost/commerce_kickstart_alpha1/install.php?profile=commerce_...
[Wed Jun 27 16:11:25 2012] [error] [client 127.0.0.1] PHP 4. install_run_task() /home/ted/workspace/commerce_kickstart_alpha1/includes/install.core.inc:342, referer: http://localhost/commerce_kickstart_alpha1/install.php?profile=commerce_...
[Wed Jun 27 16:11:25 2012] [error] [client 127.0.0.1] PHP 5. _batch_page() /home/ted/workspace/commerce_kickstart_alpha1/includes/install.core.inc:452, referer: http://localhost/commerce_kickstart_alpha1/install.php?profile=commerce_...
[Wed Jun 27 16:11:25 2012] [error] [client 127.0.0.1] PHP 6. _batch_do() /home/ted/workspace/commerce_kickstart_alpha1/includes/batch.inc:80, referer: http://localhost/commerce_kickstart_alpha1/install.php?profile=commerce_...
[Wed Jun 27 16:11:25 2012] [error] [client 127.0.0.1] PHP 7. _batch_process() /home/ted/workspace/commerce_kickstart_alpha1/includes/batch.inc:161, referer: http://localhost/commerce_kickstart_alpha1/install.php?profile=commerce_...
[Wed Jun 27 16:11:25 2012] [error] [client 127.0.0.1] PHP 8. call_user_func_array() /home/ted/workspace/commerce_kickstart_alpha1/includes/batch.inc:284, referer: http://localhost/commerce_kickstart_alpha1/install.php?profile=commerce_...
[Wed Jun 27 16:11:25 2012] [error] [client 127.0.0.1] PHP 9. _install_module_batch() /home/ted/workspace/commerce_kickstart_alpha1/includes/batch.inc:0, referer: http://localhost/commerce_kickstart_alpha1/install.php?profile=commerce_...
[Wed Jun 27 16:11:25 2012] [error] [client 127.0.0.1] PHP 10. module_enable() /home/ted/workspace/commerce_kickstart_alpha1/includes/install.core.inc:1552, referer: http://localhost/commerce_kickstart_alpha1/install.php?profile=commerce_...
[Wed Jun 27 16:11:25 2012] [error] [client 127.0.0.1] PHP 11. module_invoke() /home/ted/workspace/commerce_kickstart_alpha1/includes/module.inc:457, referer: http://localhost/commerce_kickstart_alpha1/install.php?profile=commerce_...

The install screen stops here:

Completed 105 of 133.
Installed Taxonomy breadcrumb module.

I am running Ubuntu 12.04. php version "PHP Version 5.3.10-1ubuntu3.2"

I have attached a file with the lines from my error.log file
and a text file with the result of phpinfo().

Currently I am trying alpha1 version but had the same issue with dev a few days ago.

thanks for all the hard work on this project. Looking forward to checking it out.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Haza’s picture

Thanks for filling this issue.

Do you have xdebug ? I already saw the same issue with someone using the default conf of xdebug.
Sorry, saw the phpinfo file. Yes, you have xdebug with a max_nesting_level at 100.

Putting a xdebug.max_nesting_level=500 in xdebug's conf solved the issue. (maybe you can try with a lower value, but I didn't tested that)

bojanz’s picture

Drupal loves to nest. I remember having this issue with Rules, and not being able to solve it.

We'll look into this at one point, but for now it's best to simply set xdebug to be less strict.

tedbow’s picture

Status: Active » Fixed

Great that fixed it for me. System looks great, glad to be able to check it out!

FYI I know this probably a problem with Drupal Core's Batch API(not kickstart) but there was nothing on the screen that would have told me there was an error. I just figured that step was taking too long. Had to check the logs to see there was an error.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

DamienMcKenna’s picture

Status: Closed (fixed) » Active

I wouldn't count this as fixed, because it shouldn't be hitting 100+ levels of recursion. Lets leave this open for further research, but note the work-around above that Haza posted.

DamienMcKenna’s picture

I can verify that setting the xdebug.max_nesting_level setting to 500 in my php.ini on PHP 5.3.2 does indeed make this work.

As mentioned in comment #5, this should not constitute a fix - we're not going to want to tell users "you have to change your php.ini file in order for this to install" as this distribution should work for shared hosts where site builders don't have access to modify that file.

Haza’s picture

Status: Active » Closed (fixed)

this distribution should work for shared hosts where site builders don't have access to modify that file.

And they won't have xdebug on their shared hosting, so they won't have this problem.

DamienMcKenna’s picture

Status: Closed (fixed) » Needs review
FileSize
752 bytes

How about adding a note to the README file like this?

KarinG’s picture

I ran into this exact same problem. Stuck at:

Completed 105 of 133.
Installed Taxonomy breadcrumb module.

Adding xdebug.max_nesting_level=500 to the php.ini indeed helped get the installer passed this point, but then I'm seeing a white screen when it gets to the end: http://kickstart-sandbox.local/install.php?profile=commerce_kickstart&lo...

Message in log:
[14-Jul-2012 15:46:48] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 122880 bytes) in /Applications/MAMP/htdocs/Local/commerce_kickstart-7.x-2.x-dev/profiles/commerce_kickstart/modules/contrib/views/theme/theme.inc on line 539

How much will I need?

KarinG’s picture

I went to memory_limit = 256MB and rebooted my server. That solved it. It's quite possible rebooting the server alone would have solved it.

bojanz’s picture

150M seems to be the safe value right now. Hoping to get that under control in time for beta.

Holding off committing the README patch because the README will need to be rewritten anyway, and we might fix the nesting problems before then.

Anonymous’s picture

I combined several suggestions, one at a time, and finally met with success installing alpha 3 on my Windows 7 system.

in php.ini (if using wamp, select php folder)

  • set max_input_nesting_level = 200
  • add xdebug.max_nesting_level=500
  • set memory_limit

= 256M

in my.ini (if using wamp, select mySQL folder)

  • tse max_allowed_packet = 16M
vasike’s picture

Status: Needs review » Closed (duplicate)
rajatparida’s picture

Add below line on - wamp/bin/apache/apache2.4.9/bin - It works for me.

max_input_nesting_level = 250
xdebug.max_nesting_level= 256

hainv100990’s picture

I get error the same :
Fatal error: Maximum function nesting level of '100' reached, aborting! in C:\wamp\www\drupal8\vendor\composer\ClassLoader.php on line
I have add xdebug.max_nesting_level= 256 in file php.ini . it still error.
Please Help Me.
Thank you.

hedel’s picture

I know it's a old thread but how there I didn't see a concretely answer, I want add something for the future readers/askers:

Drupal 8 check for this requirement during the installation:

Xdebug settings
xdebug.max_nesting_level is set to 250. Set xdebug.max_nesting_level=256 in your PHP configuration as some pages in your Drupal site will not work when this setting is too low.

Shashwat Purav’s picture

#12 and #14 and restarting wamp server worked for me. :)

prateekS’s picture

Just add below line on 'htaccess' file just after 'php_value always_populate_raw_post_data -1' and which worked fine for us.

php_value xdebug.max_nesting_level 500

rakesh.gectcr’s picture

Just add below line on 'htaccess' file just after 'php_value always_populate_raw_post_data -1' and which worked fine for us.

php_value xdebug.max_nesting_level 500

Works for me.

jay.lee.bio’s picture

@hainv100990 (#15), you most likely edited the wrong php.ini file in WAMP: https://www.drupal.org/node/2622310 (#13)

barrypoore’s picture

#19 worked for me, thank you very much :)

preksha’s picture

Any of the above solutions not working to me. Wherever I set the xdebug.max_nesting_level value error comes with the next updated value.

tropicalman59’s picture

preksha, did you solve the problem? I have tried everything above, but keep getting the error with whatever value is set in xdebug.max_nesting_level