php - Symfony clear cache and Maximum function nesting level of '100' reached -
this question has answer here:
hello trying run following console command
console cache:clear --env=prod
but got following error
fatal error: maximum function nesting level of '100' reached, aborting! in vendor\symfony\symfony\src\symfony\bundle\twigbundle\loader\filesystemloader.php on line 66
executing --no-debug throw same error, when run following command
console cache:clear --env=prod --no-optional-warmers
the cache cleared , generated fine, twig templates not generated , generated on runtime when user navigate site, causing user wait longer usual.
what can cause error?, seems error when generating views, why , how fix this?, thanks
i have symfony 2.6 , php 5.5
this due xdebug.max_nesting_level
php setting, defaults 100.
this directive limits recursion 100 calls may not enough rendering form in template if render whole form @ once (e.g form_widget(form)
). fix can set directive higher value (either via php.ini
file or via ini_set()
, example in app/autoload.php
) or render each form field hand using form_row
.
Comments
Post a Comment