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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

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

solved

Started by beejay41 7 years ago · 1 replies · 1195 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 Pedro M, 2 months ago
4 192 2 months ago
Themes & Styling · by Ian, 2 months ago
3 89 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 447 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 42 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 122 3 months ago