Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

[Solved] Template "modular/hero.txt.twig" is not defined

solved

Started by beejay41 7 years ago · 1 replies · 1589 views
7 years ago

I've created a new theme inherited from Grav, my modular landing page fails with:
[code]An exception has been thrown during the rendering of a template ("Template "modular/hero.txt.twig" is not defined.").[/code]
Why on earth is it looking for ".txt" while processing modular.html.twig???
This only seems to happen in IE11, all other browsers give the correct page.

Any suggestions where to start looking?

Thanks.

7 years ago

Solved: for some reason the order of page types in system.yaml turned out to be important, possibly just for modular pages and IE11 as client. The install puts "txt" first, moving this (and "xml") below "htm/html" solved the problem.

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by FrViPofm, 1 month ago
4 556 4 weeks ago
Themes & Styling · by johan thomas, 5 years ago
1 871 1 month ago
Themes & Styling · by stuart young, 3 months ago
3 731 2 months ago
Themes & Styling · by Sebadamus, 3 months ago
5 751 3 months ago
Themes & Styling · by martynfoster735, 3 months ago
1 701 3 months ago