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.
Comment | File | Size | Author |
---|---|---|---|
#8 | commerce_kickstart-n1663314.patch | 752 bytes | DamienMcKenna |
phpinfo_html.txt | 71.15 KB | tedbow | |
kickstart_install_error_log.txt | 29.74 KB | tedbow |
Comments
Comment #1
HazaThanks 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)Comment #2
bojanz CreditAttribution: bojanz commentedDrupal 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.
Comment #3
tedbowGreat 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.
Comment #5
DamienMcKennaI 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.
Comment #6
DamienMcKennaI 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.
Comment #7
HazaAnd they won't have xdebug on their shared hosting, so they won't have this problem.
Comment #8
DamienMcKennaHow about adding a note to the README file like this?
Comment #9
KarinGI ran into this exact same problem. Stuck at:
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?
Comment #10
KarinGI went to
memory_limit = 256MB
and rebooted my server. That solved it. It's quite possible rebooting the server alone would have solved it.Comment #11
bojanz CreditAttribution: bojanz commented150M 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.
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedI 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)
= 256M
in my.ini (if using wamp, select mySQL folder)
Comment #13
vasikei think we have a duplicate #1772096: "Fatal error: Maximum function nesting level of '100' reached, aborting!" for xdebug
Comment #14
rajatparida CreditAttribution: rajatparida commentedAdd below line on - wamp/bin/apache/apache2.4.9/bin - It works for me.
max_input_nesting_level = 250
xdebug.max_nesting_level= 256
Comment #15
hainv100990 CreditAttribution: hainv100990 as a volunteer commentedI 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.
Comment #16
hedel CreditAttribution: hedel as a volunteer commentedI 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:
Comment #17
Shashwat Purav CreditAttribution: Shashwat Purav commented#12 and #14 and restarting wamp server worked for me. :)
Comment #18
prateekS CreditAttribution: prateekS commentedJust 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
Comment #19
rakesh.gectcrJust 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.
Comment #20
jay.lee.bio CreditAttribution: jay.lee.bio commented@hainv100990 (#15), you most likely edited the wrong php.ini file in WAMP: https://www.drupal.org/node/2622310 (#13)
Comment #21
barrypoore CreditAttribution: barrypoore commented#19 worked for me, thank you very much :)
Comment #22
preksha CreditAttribution: preksha commentedAny of the above solutions not working to me. Wherever I set the xdebug.max_nesting_level value error comes with the next updated value.
Comment #23
tropicalman59 CreditAttribution: tropicalman59 commentedpreksha, 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