amteich / kirby-twig

Twig templating support for Kirby CMS
MIT License
48 stars 12 forks source link

Templating doesn't work in production with apache #10

Closed felixhaeberle closed 4 years ago

felixhaeberle commented 4 years ago

Hi, thanks for your help in advance. We have a problem with displaying the twig based templating on a production server that runs Apache with the following error:

Screenshot 2020-02-12 00 30 15

On local the code works fine using Laravel Valet.

We think the problem is related with twig, because when we add a default.php page, the default.php gets rendered properly. It's also strange that this message appears only when we want to access the root / of our website although we specified a custom front page for that 'home' => 'start' in the config file (and therefore kirby should render start.twig and not default.php?). On the other pages it returns 500 Internal server error.

Can you help us with this?

Our template folder:

Screenshot 2020-02-12 00 38 41
seehat commented 4 years ago

Hi felixhaeberle,

whats the name of the contentfile in your start folder?

felixhaeberle commented 4 years ago

We fixed this in the meantime, our deployment in production hadn't have the rights to write in the plugin folder so the plugin doesn't get installed. With installing the plugin properly we fixed this! Thanks for your help 🙏

seehat commented 4 years ago

Ok, good to know that it works now. Sry, that I couldn't help you more.