New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.11 error - Template cannot be used as a trait #3051
Comments
Can you create a template that reproduce this issue (via https://twigfiddle.com/ if possible)? |
FYI I am getting this too after upgrading, this is coming from the symfony 4.2.9 bootstrap_4 form theme template (globally), specifically the base one causes the error. Downgrading to 2.10.0 fixes the issue. Working on making a reproducible example that I can make public. @fabpot one thing I did notice is if I load via a request to my application with no cache, it works fine and the isTraitable is true, but if going from CC it is showing as false. Will report back when I have a way to reproduce, but most likely won't have time to look until later this week. |
I had the issue on one of my projects and upgrading to v2.11.1 and removing the cache did work. |
@fabpot manually removing the cache does indeed seem to work, strange that a cache-clear after composer update didn't resolve this issue |
@fabpot It seems that manually removing the cache or a |
confirmed fixes here too. |
2.11.2 with the fix released |
same error. How to fix this error? |
@lchhieu Updating twig to atleast 2.11.2 should fix this issue. |
After upgrading to twig 2.11.1 (from 2.10.x) the code below throws an error, in previous versions it worked fine.
The error:
The text was updated successfully, but these errors were encountered: