Skip to content
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

Multiples Twig_Error_Syntax for symfony 3 twig templates #32

Closed
Bindeo opened this issue Feb 18, 2016 · 1 comment
Closed

Multiples Twig_Error_Syntax for symfony 3 twig templates #32

Bindeo opened this issue Feb 18, 2016 · 1 comment

Comments

@Bindeo
Copy link

Bindeo commented Feb 18, 2016

I've got several errors like this with some filters. The templates are correct and they work:

PHP Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unknown "format_file_from_text" filter in "/var/www/html/project/front/app/Resources/TwigBundle/views/Exception/exception.html.twig" at line 12.' in phar:///usr/local/bin/twig-gettext-extractor/vendor/twig/twig/lib/Twig/ExpressionParser.php:601

@umpirsky
Copy link
Owner

@Bindeo You need to register Symfony\Bridge\Twig\Extension\CodeExtension extension. See https://github.com/umpirsky/Twig-Gettext-Extractor#custom-extensions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants