You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was getting tired of Twig failing silently when I accidently used an undefined function in my code (e.g. if I forgot to import it), as it made it harder to debug. So I changed system.twig.undefined_functions to false, which had the intended effect of crashing the site with an error with the undefined function in the template instead of just printing nothing.
However, this also seems to cause the Admin plugin to crash on various occasions. I was able to reproduce it in a fresh install by saving at configuration (so that the variable option appears in my user/config/system.yaml) switching the variable there, clearing the cache from the admin plugin, and then going to the Configuration page, where I get this:
Or, if I try to go to my admin user page, I get this:
Is the Admin plugin not supposed to be able to work with this variable set to false? If so are there any suggestions for making debugging Twig templates easier besides setting undefined_functions to false?
I'm on Grav v1.7.14 - Admin v1.10.14.
The text was updated successfully, but these errors were encountered:
I was getting tired of Twig failing silently when I accidently used an undefined function in my code (e.g. if I forgot to import it), as it made it harder to debug. So I changed
system.twig.undefined_functions
tofalse
, which had the intended effect of crashing the site with an error with the undefined function in the template instead of just printing nothing.However, this also seems to cause the Admin plugin to crash on various occasions. I was able to reproduce it in a fresh install by saving at configuration (so that the variable option appears in my
user/config/system.yaml
) switching the variable there, clearing the cache from the admin plugin, and then going to the Configuration page, where I get this:Or, if I try to go to my admin user page, I get this:
Is the Admin plugin not supposed to be able to work with this variable set to false? If so are there any suggestions for making debugging Twig templates easier besides setting undefined_functions to false?
I'm on Grav v1.7.14 - Admin v1.10.14.
The text was updated successfully, but these errors were encountered: