Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Form - Fatal Exception Maximum function nesting level of '100' reached - 2.2.0-RC2 #7112
Using latest Standard Symfony 2.2.0 RC2.
The page I display is a simple form created from an abstract type containing a collection of another abstract type which contains only a date entry in a choice widget:
When displaying this form I get the following exception:
The stack looks like this (just top part of it ..it's very long)
This goes on an on for -I suppose- a total of 100 method calls.
It looks like the nesting level here is exactly 100 because if I set this in my app_dev.php:
Then the form is rendered correctly. Setting this value to 100 (its default apparently) brings this exception.
I only get that problem for a date within a collection. If I remove the date form element and put something else the exception doesn't arise.
It's a pitty that one has to remind people to use the search before posting something. It's the fundamental thing of the web. And it's not like this issue is hard to find. And then they even complain that the one who gives them the tipp to use Github search or even the new, secret thing called Google, doesn't do the work for them.
Ok, I didn't find the similar issue #6866 , blame it on me.
Now, back to this issue, which really actually was #6864 , it was supposed to be fixed fifteen days ago and merged into 2.2.
referenced this issue
Feb 19, 2013
This issue is also reflected in the Form chapter as a note. It was me the
2013/2/20 Fabien Potencier firstname.lastname@example.org
Sorry, it in the Form collections cookbook. Is right above this link: http://symfony.com/doc/current/cookbook/form/form_collections.html#allowing-new-tags-with-the-prototype
referenced this issue
Oct 1, 2015
Since a few days, i'm having troubles with my project, i'm having the same problem as mentioned before:
I've tried with everything and i can't solve the problem.
I set the option "xdebug.max_nesting_level" between 200 and 1200 in my php.ini and nothing happened, i'm getting the same error message.
What anything more can i try?, this problem it's taking a long time for me and i need to solve this as soon as possible.
I tried to clear cache via console and manually and again the same error appear. When i use the command "php app/console cache:clear" the output show me the same error:
If exist anything else that i can try, i will being very thankful with you.
Once again, thank you and waiting for some tips or ideas.
By the way, i'm using symfony 2.7.6 and PHP 5.5.12 (Wampserver 2.5 x64)
P.S. Sorry for my bad english. =)
Thanks for your time!
The error is the same but with the same value as the php.ini, if i set the value to 1000 the message will display 1000, so i've edited the correct php.ini. It's like a infinite loop or something like.
Hoping some more tips or ideas.