-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Upgraded to version 1.26.0. Now templates aren't rendering #2165
Comments
I've problems also. I've done composer update and symfony was updated to 2.8.12 and twig to 1.26.1. It throws this error:
Symfony 2.8.12 requires twig 1.26, thus I've to downgrade symfony to 2.8.11 for use twig 1.25. |
@Tersoal, any chance you could handle this? I'm afraid I have never used Symfony |
I'll do ASAP, perhaps on monday, sorry. But I have done composer update El 7 oct. 2016 8:50 p. m., "Christian Flothmann" [email protected]
|
Did you both the clear the Cache? As in Twig 1.26.0 the extension loading changed a little, and old caches are not compatible (shouldn't be a problem, but still 😄 ). |
Yes. I cleared caché by command and manually with rm. El 8 oct. 2016 16:10, "Sebastiaan Stok" [email protected] escribió:
|
Same problem here, downgrading Twig from 1.26.0 to 1.25.0 (and automatically Symfony from 2.8.12 to 2.8.11) solves the problem. I've tried to clear cache in all possible ways. |
Can you list the bundles you are using that interact with Twig. I can see Assetic in the stack trace. Any other ones? It probably comes from a bundle, not Twig or Symfony. |
Here my composer.json:
|
That issue occure after upgrading Twig to 1.26.0 - NavigationTwigExtension extension is not enabled
|
I've seen/heard the following problems:
$env = new Twig_Environment(new Twig_Loader_Filesystem(__DIR__));
$env->addExtension(
new class extends \Twig_Extension_Core {
}
); (Note. this also triggers a deprecation note about registering an extension with the same name |
Aw, still not solved? |
@makoru-hikage Were still not sure if there is something to fix, but more importantly, where. Is probably comes from a bundle. Can you list your deps to see which ones are in common with the other reporters? |
For the record, in Bolt we've had to lock the version at 1.25 too, as all Bolt extensions that would add Twig functions or filters would break. More information here: bolt/bolt#5868 |
@bobdenotter Thanks for the link. This is indeed a BC break. I will see how to mitigate this issue. Out of curiosity, why do you create extensions on the fly vs registering the filters/functions directly on the Twig environment? |
@fabpot We do it to keep a BC going ourselves … we plan to remove that for Bolt v4 (which should be Silex 2 & SF 3.x as well) |
Can you have a look at #2200 and confirm it solves the issue? |
Now i can't replicate error. There are many commits after the error. I need El 22 oct. 2016 12:30, "Bob den Otter" [email protected] escribió:
|
For reference; I also encountered problems when extendings extensions. Not directly related to Twig itself, but more to the twig-bridge. Until 1.24, it was possible to extend an Extension and use the same name. This worked fine when the nodes etc just referenced then name (eg. |
Every time I try to render a template in version 1.26.0 I keep getting an exception with the message "The "Twig_Extension_Sandbox" extension is not enabled in "Email/Reminder.twig" at line 1."
I've double and triple checked that I HAVE loaded the sandbox extension, yet for some reason, upon rendering it seems positive that it doesn't have it. My code works fine in version 1.25.0.
Does anyone have any ideas as to what might have started causing this hiccup in the new version?
The text was updated successfully, but these errors were encountered: