Error 500 Internal Server Error

GET https://land.n46.net/en

Forwarded to ErrorController (30e851)

Exceptions

Unable to find template "default/homepage.html.twig" (looked into: /var/www/vhosts/1007/domains/n46.net/land/templatesV1, /var/www/vhosts/1007/domains/n46.net/land/vendor/symfony/twig-bridge/Resources/views/Form).

Exception

Twig\Error\ LoaderError

Show exception properties
Twig\Error\LoaderError {#784
  -lineno: -1
  -rawMessage: "Unable to find template "default/homepage.html.twig" (looked into: /var/www/vhosts/1007/domains/n46.net/land/templatesV1, /var/www/vhosts/1007/domains/n46.net/land/vendor/symfony/twig-bridge/Resources/views/Form)."
  -source: null
  -phpFile: "/var/www/vhosts/1007/domains/n46.net/land/vendor/twig/twig/src/Loader/FilesystemLoader.php"
  -phpLine: 234
}
  1. if (!$throw) {
  2. return null;
  3. }
  4. throw new LoaderError($this->errorCache[$name]);
  5. }
  6. private function normalizeName(string $name): string
  7. {
  8. return preg_replace('#/{2,}#', '/', str_replace('\\', '/', $name));
  1. return new Source(file_get_contents($path), $name, $path);
  2. }
  3. public function getCacheKey(string $name): string
  4. {
  5. if (null === $path = $this->findTemplate($name)) {
  6. return '';
  7. }
  8. $len = \strlen($this->rootPath);
  9. if (0 === strncmp($this->rootPath, $path, $len)) {
  10. return substr($path, $len);
in vendor/twig/twig/src/Environment.php -> getCacheKey (line 317)
  1. *
  2. * @internal
  3. */
  4. public function getTemplateClass(string $name, ?int $index = null): string
  5. {
  6. $key = ($this->hotCache[$name] ?? $this->getLoader()->getCacheKey($name)).$this->optionsHash;
  7. return '__TwigTemplate_'.hash(\PHP_VERSION_ID < 80100 ? 'sha256' : 'xxh128', $key).(null === $index ? '' : '___'.$index);
  8. }
  9. /**
in vendor/twig/twig/src/Environment.php -> getTemplateClass (line 370)
  1. trigger_deprecation('twig/twig', '3.9', 'Passing a "%s" instance to "%s" is deprecated.', self::class, __METHOD__);
  2. return $name;
  3. }
  4. return new TemplateWrapper($this, $this->loadTemplate($this->getTemplateClass($name), $name));
  5. }
  6. /**
  7. * Loads a template internal representation.
  8. *
  1. * @throws SyntaxError When an error occurred during compilation
  2. * @throws RuntimeError When an error occurred during rendering
  3. */
  4. public function render($name, array $context = []): string
  5. {
  6. return $this->load($name)->render($context);
  7. }
  8. /**
  9. * Displays a template.
  10. *
  1. {
  2. if (null === $this->twig) {
  3. throw new \LogicException('You cannot use the TemplateController if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');
  4. }
  5. $response = new Response($this->twig->render($template, $context), $statusCode);
  6. if ($maxAge) {
  7. $response->setMaxAge($maxAge);
  8. }
in vendor/symfony/http-kernel/HttpKernel.php -> templateAction (line 183)
  1. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2. $controller = $event->getController();
  3. $arguments = $event->getArguments();
  4. // call controller
  5. $response = $controller(...$arguments);
  6. // view
  7. if (!$response instanceof Response) {
  8. $event = new ViewEvent($this, $request, $type, $response, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/www/vhosts/1007/domains/n46.net/land/vendor/autoload_runtime.php') in public_html/index.php (line 5)
  1. <?php declare(strict_types=1);
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
INFO 07:15:30 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "49cfe5"
    },
    "request_uri": "https://land.n46.net/_profiler/49cfe5?panel=exception&type=request",
    "method": "GET"
}

Stack Trace

LoaderError
Twig\Error\LoaderError:
Unable to find template "default/homepage.html.twig" (looked into: /var/www/vhosts/1007/domains/n46.net/land/templatesV1, /var/www/vhosts/1007/domains/n46.net/land/vendor/symfony/twig-bridge/Resources/views/Form).

  at vendor/twig/twig/src/Loader/FilesystemLoader.php:234
  at Twig\Loader\FilesystemLoader->findTemplate()
     (vendor/twig/twig/src/Loader/FilesystemLoader.php:138)
  at Twig\Loader\FilesystemLoader->getCacheKey()
     (vendor/twig/twig/src/Environment.php:317)
  at Twig\Environment->getTemplateClass()
     (vendor/twig/twig/src/Environment.php:370)
  at Twig\Environment->load()
     (vendor/twig/twig/src/Environment.php:333)
  at Twig\Environment->render()
     (vendor/symfony/framework-bundle/Controller/TemplateController.php:48)
  at Symfony\Bundle\FrameworkBundle\Controller\TemplateController->templateAction()
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:191)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/var/www/vhosts/1007/domains/n46.net/land/vendor/autoload_runtime.php')
     (public_html/index.php:5)