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
Twig the version 1.38.2, breaks the site in drupal #2898
Comments
Maybe an error message will help, can you provide one? |
I'm experiencing this as well, and I think I've tracked it down to the embed tag. The breaking commit seems to be this one: 4eeaf76 The Drupal Error message in its watchdog log is
|
Exactly the same here... also tracked it down to the
The corresponding template throwing the error has the following code:
|
Which version of Drupal are you using? It might be worth reporting issues in https://www.drupal.org/project/drupal/issues/3039408 |
I use Drupal 8.6.11 and I just created a new issue over there (while also adding a note to the issue linked by @timmillwood): https://www.drupal.org/project/drupal/issues/3040210 |
could it be that you have a cache generated by an older version of Twig ? |
This seems to be a Drupal issue, not a Twig issue. It is however introduced by one of the changes in Twig 1.38. See the related fix for Drupal in https://www.drupal.org/project/drupal/issues/3040210#comment-13022082 |
Currently we have 3 different people indeed confirming the issue is with Drupal. |
As the issue is getting a lot of traction on drupal.org, it seems that it is bug on that side of the code ;) Please see https://www.drupal.org/project/drupal/issues/3040210 for a fix and so this issue may be closed |
So a minor update presumably should not have broken Drupal code, no? Code that hasn't been touched since I think before 8.0.0 broke when we updated to 1.38.2. :) |
Apparently it brokes because Drupal used some Twig internal code. |
Drupal copied some internal code to make its own logic, and this worked only because the logic was the same. |
Twig the version 1.38.2, breaks the site in drupal completely.
The text was updated successfully, but these errors were encountered: