Template or Index.php not working as expected on Hetzner server

Hey,

I have an issue with a Kirby hosting on hetzner.com. First, it works quite fine locally.
The page is not loading the index and the grand children. Meaning, the template is not rendered at all. It is a blank page with empty head and body.
The panel and children, however, get rendered fine.

I am using this Public folder structure:

<?php

include __DIR__ . "/../vendor/autoload.php";

$kirby = new Kirby\Cms\App([
"roots" => [
"index" => __DIR__,
"base" => ($base = dirname(__DIR__)),
"content" => $base . "/content",
"site" => $base . "/site",
"storage" => ($storage = $base . "/storage"),
"accounts" => $storage . "/accounts",
"cache" => $storage . "/cache",
"sessions" => $storage . "/sessions",
  ],
]);

echo $kirby->render();

kirby 3.9.6.1
PHP 8.0.30 (But 8.1.24 is also not working)
Plugins:
arnoson/kirby-vite
fabianmichael/meta
moritzebeling/kirby-panel-button
sylvainjule/color-palette

What I tried:

  • Loading another page with similar structure on the same server. = same issue.
  • Loading a page without public structure = here it works fine.
  • checking the DIR = it points to the “public” folder as expected.
  • checking $base = it is pointing to the parent folder of “public”
  • change PHP version
  • logs are not showing any mistakes.
  • Hetzner Support said: serverwise is all good, it has to be something with the CMS

I am clueless.
Any idea in which other direction I could investigate?

One step forward:

  • Starterkid works on the same Server and also with this public Structure.

I pined the issue down to the controllers. Any template with a controller is not getting rendered.
Even if I move all the declined var and functions in the template and leave the controller empty.

However, the template gets rendered when I remove the controller. :face_with_monocle:

For now, it is kind of a solution but, I don’t understand this behavior…