Skip to content
Grav 2.0 is officially stable. Read the announcement →
Themes & Styling

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

solved

Started by beejay41 7 years ago · 1 replies · 1385 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 stuart young, 2 weeks ago
3 251 2 weeks ago
Themes & Styling · by Sebadamus, 3 weeks ago
5 317 2 weeks ago
Themes & Styling · by martynfoster735, 4 weeks ago
1 310 4 weeks ago
Themes & Styling · by Justin Young, 1 month ago
1 348 1 month ago
Themes & Styling · by Slebeig, 2 months ago
4 474 2 months ago