Reputation: 33
I am currently working on Symfony
, Rest API
. I am new to this framework
. I have installed Symfony
correctly. and now I have installed FriendsOfSymfony
bundle, every thing is going fine but when I am clicking on logout
then I am getting following error
Fatal error: Maximum function nesting level of '100' reached, aborting! in C:\xampp\htdocs\Symfony\vendor\twig\lib\Twig\Loader\Filesystem.php on line 6010
After some searching I found a solution to set xdebug
in php.ini
, to set set limit 200 instead of 100, then I am getting the following Error,
Fatal error: Maximum function nesting level of '200' reached, aborting! in C:\xampp\htdocs\Symfony\vendor\twig\lib\Twig\Loader\Filesystem.php on line 6010
Totally I am unable to see a demo of symfony also. Please guys tell me how Can I come out of this problem ?
Upvotes: 0
Views: 10133
Reputation: 1494
In my case, it was related to composer. Some vendors were updated in the composer.json file, but I forgot to run the commands composer update nor composer install. The system generated a cascade of errros, which was causing this 'maximum nested level'.
After executing those commands, the problem was fixed
Upvotes: 0
Reputation: 81
Try to check the call stack. Maybe you have an ifinite loop. Deactivate xDebug or set the maximum nesting level in the php.ini higher:
xdebug.max_nesting_level=500
This is a normal behavior. try something like:
$traceStack = debug_backtrace();
var_dump($traceStack);
$i=0;
foreach($traceStack as $n) {
/* do what you want here */
/*
* $n is an array of:
* 'file' => ..
* 'line' => ...
* 'function' ...
* 'class' => ...
* 'object' => ...
* 'type' => ...
* 'args' => ...
*/
}
Important: Don't forget to restart apache (or FPM)!
Upvotes: 3