Symfony Exception

LoaderError

HTTP 500 Internal Server Error

Unable to find template "Partials/menu_32.html.twig" (looked into: /var/www/vhosts/ginvi.nl/httpdocs/templates, /var/www/vhosts/ginvi.nl/httpdocs/vendor/symfony/twig-bridge/Resources/views/Form) in Partials/menu.html.twig at line 1.

Exception

Twig\Error\ LoaderError

  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 (=== strncmp($this->rootPath$path$len)) {
  10.             return substr($path$len);
in vendor/twig/twig/src/Environment.php -> getCacheKey (line 264)
  1.      *
  2.      * @internal
  3.      */
  4.     public function getTemplateClass(string $nameint $index null): string
  5.     {
  6.         $key $this->getLoader()->getCacheKey($name).$this->optionsHash;
  7.         return $this->templateClassPrefix.hash(\PHP_VERSION_ID 80100 'sha256' 'xxh128'$key).(null === $index '' '___'.$index);
  8.     }
  9.     /**
in vendor/twig/twig/src/Template.php -> getTemplateClass (line 319)
  1.                 $class = static::class;
  2.                 if (false !== $pos strrpos($class'___', -1)) {
  3.                     $class substr($class0$pos);
  4.                 }
  5.             } else {
  6.                 $class $this->env->getTemplateClass($template);
  7.             }
  8.             return $this->env->loadTemplate($class$template$index);
  9.         } catch (Error $e) {
  10.             if (!$e->getSourceContext()) {
  1.         $macros $this->macros;
  2.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Partials/menu.html.twig"));
  4.         // line 1
  5.         $this->loadTemplate((("Partials/menu_" $this->env->getFunction('currentLanguage')->getCallable()()) . ".html.twig"), "Partials/menu.html.twig"1)->display($context);
  6.         
  7.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  8.     }
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         echo "\"><img src=\"pics/Ginvi-logo.svg\" alt=\"GINVI logo\"></a>
  2.         </div>
  3.         ";
  4.         // line 7
  5.         $this->loadTemplate("Partials/menu.html.twig""Partials/header_compact.html.twig"7)->display(twig_array_merge($context, ["active" => (isset($context["active"]) || array_key_exists("active"$context) ? $context["active"] : (function () { throw new RuntimeError('Variable "active" does not exist.'7$this->source); })())]));
  6.         // line 8
  7.         echo "
  8.     </header>";
  9.         
  10.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1. \t";
  2.         // line 5
  3.         if (((isset($context["active"]) || array_key_exists("active"$context) ? $context["active"] : (function () { throw new RuntimeError('Variable "active" does not exist.'5$this->source); })()) == "error")) {
  4.             // line 6
  5.             echo "\t\t";
  6.             $this->loadTemplate("Partials/header_compact.html.twig""layout.html.twig"6)->display($context);
  7.             // line 7
  8.             echo "\t";
  9.         } else {
  10.             // line 8
  11.             echo "\t\t";
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         // line 1
  2.         $context["active"] = "error";
  3.         // line 2
  4.         $this->parent $this->loadTemplate("layout.html.twig""Page/notfound.html.twig"2);
  5.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  6.         
  7.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  8.     }
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.     public function display(array $context = [])
  2.     {
  3.         // using func_get_args() allows to not expose the blocks argument
  4.         // as it should only be used by internal code
  5.         $this->template->display($context\func_get_args()[1] ?? []);
  6.     }
  7.     public function hasBlock(string $name, array $context = []): bool
  8.     {
  9.         return $this->template->hasBlock($name$context);
  1.         $macros $this->macros;
  2.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Page/index.html.twig"));
  4.         // line 1
  5.         $this->loadTemplate([(("Page/" . (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'1$this->source); })())) . ".html.twig"), "Page/notfound.html.twig"], "Page/index.html.twig"1)->display($context);
  6.         
  7.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  8.     }
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
in vendor/twig/twig/src/Template.php -> display (line 379)
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.     public function render(array $context = []): string
  2.     {
  3.         // using func_get_args() allows to not expose the blocks argument
  4.         // as it should only be used by internal code
  5.         return $this->template->render($context\func_get_args()[1] ?? []);
  6.     }
  7.     public function display(array $context = [])
  8.     {
  9.         // using func_get_args() allows to not expose the blocks argument
  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 (!$this->container->has('twig')) {
  3.             throw new \LogicException('You cannot use the "renderView" method if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');
  4.         }
  5.         return $this->container->get('twig')->render($view$parameters);
  6.     }
  7.     /**
  8.      * Renders a view.
  9.      */
  1.     /**
  2.      * Renders a view.
  3.      */
  4.     protected function render(string $view, array $parameters = [], Response $response null): Response
  5.     {
  6.         $content $this->renderView($view$parameters);
  7.         if (null === $response) {
  8.             $response = new Response();
  9.         }
AbstractController->render() in src/Bundle/Controller/PageController.php (line 15)
  1. class PageController extends AbstractController
  2. {
  3.     public function indexAction(Request $requeststring $page): Response
  4.     {
  5.         return $this->render('Page/index.html.twig', [
  6.             'page' => $page,
  7.         ]);
  8.     }
  9.     public function errorAction(Request $request): void
  10.     {
in vendor/symfony/http-kernel/HttpKernel.php -> indexAction (line 163)
  1.         $this->dispatcher->dispatch($eventKernelEvents::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);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 35)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/vhosts/ginvi.nl/httpdocs/vendor/autoload_runtime.php') in index.php/ (line 5)
  1. <?php
  2. use Maeve\JuliusCms\Kernel;
  3. require_once 'vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool)$context['APP_DEBUG']);
  6. };

Logs

No log messages

Stack Trace

LoaderError
Twig\Error\LoaderError:
Unable to find template "Partials/menu_32.html.twig" (looked into: /var/www/vhosts/ginvi.nl/httpdocs/templates, /var/www/vhosts/ginvi.nl/httpdocs/vendor/symfony/twig-bridge/Resources/views/Form) in "Partials/menu.html.twig" at line 1.

  at vendor/twig/twig/src/Loader/FilesystemLoader.php:227
  at Twig\Loader\FilesystemLoader->findTemplate()
     (vendor/twig/twig/src/Loader/FilesystemLoader.php:131)
  at Twig\Loader\FilesystemLoader->getCacheKey()
     (vendor/twig/twig/src/Environment.php:264)
  at Twig\Environment->getTemplateClass()
     (vendor/twig/twig/src/Template.php:319)
  at Twig\Template->loadTemplate()
     (var/cache/prd/twig/d1/d122d03246588d80efedb490897b2782.php:40)
  at __TwigTemplate_774fa6e7d0b0459ec54544c31be73986->doDisplay()
     (vendor/twig/twig/src/Template.php:394)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:367)
  at Twig\Template->display()
     (var/cache/prd/twig/0a/0a7c6de84e7ffa630d4f007aac4c3155.php:51)
  at __TwigTemplate_f17bff6f32678f3b60a6bd4021087b98->doDisplay()
     (vendor/twig/twig/src/Template.php:394)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:367)
  at Twig\Template->display()
     (var/cache/prd/twig/ff/ffcc6cfc229a720bb23ea7eda8cacd59.php:54)
  at __TwigTemplate_bb45de633e96bb6d54c164778fd045b0->doDisplay()
     (vendor/twig/twig/src/Template.php:394)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:367)
  at Twig\Template->display()
     (var/cache/prd/twig/64/64a12e53a9db16d76cbd92ee915abac4.php:48)
  at __TwigTemplate_f63e6043d4fa82859c66434a06b10de0->doDisplay()
     (vendor/twig/twig/src/Template.php:394)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:367)
  at Twig\Template->display()
     (vendor/twig/twig/src/TemplateWrapper.php:47)
  at Twig\TemplateWrapper->display()
     (var/cache/prd/twig/fc/fccc245f1045135afec8e2920295db42.php:40)
  at __TwigTemplate_fe9703069f0deadf0f1e9a2a226fb9e2->doDisplay()
     (vendor/twig/twig/src/Template.php:394)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:367)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:379)
  at Twig\Template->render()
     (vendor/twig/twig/src/TemplateWrapper.php:40)
  at Twig\TemplateWrapper->render()
     (vendor/twig/twig/src/Environment.php:280)
  at Twig\Environment->render()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:258)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:266)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render()
     (src/Bundle/Controller/PageController.php:15)
  at Maeve\JuliusCms\Bundle\Controller\PageController->indexAction()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  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:35)
  at require_once('/var/www/vhosts/ginvi.nl/httpdocs/vendor/autoload_runtime.php')
     (index.php/:5)