Maximum function nesting level of '100' reached, aborting!
Posted by: sonchoix (---.dsl.bell.ca)
Date: January 22, 2016 11:22PM

Hello,

I tried to install a Joomla 3 on my local wamp and get this error message:

Maximum function nesting level of '100' reached, aborting!

Whoops\Exception\ErrorException thrown with message "Maximum function nesting level of '100' reached, aborting!"

Stacktrace:
#3 Whoops\Exception\ErrorException in C:\wamp\www\xenon\libraries\gantry5\vendor\twig\twig\lib\Twig\Node.php:143
#2 Whoops\Run:handleError in C:\wamp\www\xenon\libraries\gantry5\classes\Gantry\Component\Whoops\Run.php:118
#1 Gantry\Component\Whoops\Run:handleError in C:\wamp\www\xenon\libraries\gantry5\vendor\filp\whoops\src\Whoops\Run.php:357
#0 Whoops\Run:handleShutdown in <#unknown>:0


Can anyone help to sort it out? Thank you very much.

Options: ReplyQuote
Re: Maximum function nesting level of '100' reached, aborting!
Posted by: sonchoix (---.dsl.bell.ca)
Date: January 22, 2016 11:26PM

There is a theme called xenon from ROcket Theme, their support suggests this error is related to "ThreadStackSize on Windows" and gives a link here: [docs.gantry.org]

The post basically asks to add the following to httpd.conf

<IfModule mpm_winnt_module>
ThreadStackSize 8388608
</IfModule>

No use.

I've also seen people suggesting to increase max_nesting_level in php.ini, however, I don't see themax_nesting_level in php.ini

Any clue is appreciated.

Options: ReplyQuote
Re: Maximum function nesting level of '100' reached, aborting!
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 23, 2016 01:14AM

Hi

This sounds like an XDEBUG parameter to me

Look at the bottom of your php.ini file and you will see this section, use the menus to open the right version of php.ini

; XDEBUG Extension

;
[xdebug]
zend_extension ="C:/wamp/bin/php/php5.6.15/zend_ext/php_xdebug-2.3.3-5.6-vc11.dll"

xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = Off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "C:/wamp/tmp"
xdebug.show_local_vars=0

Your drive and version php version may be different



Add this line

xdebug.max_nesting_level = 350

Depending on your veriosn of PHP and XDEBUG the default was either 100 or more recent versions was 256 so see if 300 is enough and if not add few more

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Maximum function nesting level of '100' reached, aborting!
Posted by: sonchoix (---.dsl.bell.ca)
Date: January 23, 2016 01:54AM

Thank you. Here is my code and not working even after I restart the wamp


; XDEBUG Extension

zend_extension = "c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll"
;
[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
xdebug.show_local_vars=0
xdebug.max_nesting_level = 500



Edited 1 time(s). Last edit at 01/23/2016 01:56AM by sonchoix.

Options: ReplyQuote
Re: Maximum function nesting level of '100' reached, aborting!
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 23, 2016 12:25PM

Can you answer these qustions please [forum.wampserver.com]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Maximum function nesting level of '100' reached, aborting!
Posted by: sonchoix (---.dsl.bell.ca)
Date: January 23, 2016 12:57PM

1 - Windows version used: Windows 7 64 bits
2 - Version WampServer: 2.5
3 - Apache Version: 2.4.9
4 - PHP Version: 5.5.12
5 - MySQL Version: 5.6.17
6 - What color is the WampServer icon (in the notification area of the taskbar) :Green
No finding in the event log for Apache Service and mySQL
7. There is no the file host, but there is a host.bak, the last active line is: 127.0.0.1 localhost

8 - Do you have access to localhost (Homepage WampServer)? Yes
9 - Do you have access to phpMyAdmin? Yes

10 - If you refer to an error message, please include the EXACT wording of the error in your post:

Maximum function nesting level of '100' reached, aborting!

11 - If you use an Antivirus and / or Firewall, please include the names of these: No

12 - What is the full path to the installation of WampServer (eg D:\wamp\)
C:\WAMP


Thank you very much.

Options: ReplyQuote
Re: Maximum function nesting level of '100' reached, aborting!
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 23, 2016 01:15PM

There MUST be a file called `hosts` in this folder `c:\windows\system32\drivers\etc\hosts`

It should contain at least these lines


127.0.0.1  localhost

::1  localhost


However that is probably nothing to do with your issue, but should be fixed


We can find out it XDEBUG is anything to do with your issue by doing this. Comment out the line that loads XDEBUG with a `#` and it will no longer be part of PHP. See if that is the issue

#zend_extension = "c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll"


I have to say that I am working on a Joomla site currently and I have NON of these issues. So this theme you have must be doing some really odd stuff, or more likely generating a Lot of Errors

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-



Edited 4 time(s). Last edit at 01/23/2016 01:17PM by RiggsFolly.

Options: ReplyQuote
Re: Maximum function nesting level of '100' reached, aborting!
Posted by: sonchoix (---.dsl.bell.ca)
Date: January 23, 2016 03:24PM

Thank you very much for your reply:

It turns out the hosts file DOES indeed exist in the folder as a hidden file, and the weird thing is it cannot be updated by me as administrator either through editor tool or in dos (even after I reboot my machine).

The windows explorer doesn't show this file despite I already enable viewing hidden files option but I can use editor to open it directly by indicating the path+filename.

Currently there are three lines open:


127.0.0.1 localhost
127.0.0.1 localhost
127.0.0.1 player.kmpmedia.net

and
# ::1 localhost

where # cannot be removed, the editor (running as administrator) doesn't respond to keyboard Del or Back Space key at all.

I found a tool called Unlocker 1.9.2, which is used to unlock any locked file, however, the tool cannot even see the hosts file.

This is driving me nut, but consider there does have a line of 127.0.0.1 pointing to localhost, maybe it is good to go in my case?

Thank you again for your time and patience, much appreciated for the troubleshooting with me.

Options: ReplyQuote
Re: Maximum function nesting level of '100' reached, aborting!
Posted by: sonchoix (---.dsl.bell.ca)
Date: January 23, 2016 03:30PM

Voala!!!!

Your suggestion to uncomment zend_extension does the magic, the site is up and running now.

But why hosts file cannot be updated, that still remains mystery as you can see some application(kmpmedia) was able to add its line there:

127.0.0.1 player.kmpmedia.net

Options: ReplyQuote
Re: Maximum function nesting level of '100' reached, aborting!
Posted by: Otomatic (Moderator)
Date: January 23, 2016 03:31PM

Hi,

> it cannot be updated by me as administrator either through editor tool
> or in dos (even after I reboot my machine).
See (Note 2) of TROUBLESHOOTING TIPS

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Maximum function nesting level of '100' reached, aborting!
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 24, 2016 01:08AM

Run a command prompt "As Administrator"

CD \windows\system32\driver\etc
attrib -r hosts
notepad hosts


Make the changes

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Maximum function nesting level of '100' reached, aborting!
Posted by: sonchoix (---.dsl.bell.ca)
Date: January 24, 2016 01:44AM

Thank you, I already tried that at the first place, I got the following message:

Not resetting hidden file - C:\Windows\System32\drivers\etc\hosts

I also tried
attrib -h hosts

same message

Options: ReplyQuote
Re: Maximum function nesting level of '100' reached, aborting!
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 24, 2016 02:08AM

AHh,

I bet you are running a Virus Checker that locks that file, or some sort of equivalent security softwar of some kind.
You will have to find the option in you Virus checker or Firewall that allows you to edit this file. Normally there is a switch somewhere in the config.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.