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

The "Grav/Common/Twig/TwigExtension" extension is not enabled. #3317

Closed
rodrigogiraoserrao opened this issue Apr 16, 2021 · 5 comments
Closed
Assignees

Comments

@rodrigogiraoserrao
Copy link

rodrigogiraoserrao commented Apr 16, 2021

Today I updated grav to 1.7.12 from something like 1.7.6 (or above) plus a couple of plugins.

Suddenly, some pages of my website broke, showing a runtime error saying

The "Grav/Common/Twig/TwigExtension" extension is not enabled.

These seemed to be pointing at my usages of the markdown twig tag, which had been working flawlessly up until that point.

Anyone know what might be happening?

The error seems to say I need to enable something, so did the update disable something I don't even remember turning on in the first place?

@NotBlind57
Copy link

NotBlind57 commented Apr 17, 2021

I'm having a similar problem, updated from 1.7.11, alongside with Admin panel and Problems plugins. And "Languages" settings in site configuration are behaving like I haven't changed them to suit my needs, preventing me from changing the website language with the Language Selector plugin.

@rodrigogiraoserrao
Copy link
Author

Currently the error I am getting can be seen by taking a look at mathspp.com/test3317.

I created a basic twig template that makes use of the {% markdown %} tag here; in particular, take a look at lines 32-34.

And I used it to create a basic page with a single line of content: github.com/mathspp/mathspp/blob/master/pages/test3317/test.en.md

I also tried moving that template to the base Quark theme but it didn't change the error.

mahagr added a commit that referenced this issue Apr 19, 2021
@mahagr
Copy link
Member

mahagr commented Apr 19, 2021

This line needs to be changed to fix the issue: 5efe447#diff-39b977d3fadf2937b839a5283945310caf210ea4042c968507f0a53d427e578cR50

@rodrigogiraoserrao
Copy link
Author

This line needs to be changed to fix the issue: 5efe447#diff-39b977d3fadf2937b839a5283945310caf210ea4042c968507f0a53d427e578cR50

Thanks for the prompt fix. Just to be sure, to fix this issue now, I just need to do the change on the highlighted line, not the whole diff?

@mahagr
Copy link
Member

mahagr commented Apr 20, 2021

Just the highlighted line. Everything else was just comments or tests.

@mahagr mahagr closed this as completed Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants