Exceptions
Exception
Twig\Error\ LoaderError
Show exception properties
Twig\Error\LoaderError {#921 -lineno: -1 -rawMessage: "Unable to find template "home/circuit.html.twig" (looked into: /home/suntrat/www/templates, /home/suntrat/www/vendor/symfony/twig-bridge/Resources/views/Form)." -source: null -phpFile: "/home/suntrat/www/vendor/twig/twig/src/Loader/FilesystemLoader.php" -phpLine: 234 }
in
vendor/twig/twig/src/Loader/FilesystemLoader.php
(line 234)
if (!$throw) {return null;}throw new LoaderError($this->errorCache[$name]);}private function normalizeName(string $name): string{return preg_replace('#/{2,}#', '/', str_replace('\\', '/', $name));
in
vendor/twig/twig/src/Loader/FilesystemLoader.php
->
findTemplate
(line 138)
return new Source(file_get_contents($path), $name, $path);}public function getCacheKey(string $name): string{if (null === $path = $this->findTemplate($name)) {return '';}$len = \strlen($this->rootPath);if (0 === strncmp($this->rootPath, $path, $len)) {return substr($path, $len);
in
vendor/twig/twig/src/Environment.php
->
getCacheKey
(line 317)
** @internal*/public function getTemplateClass(string $name, ?int $index = null): string{$key = ($this->hotCache[$name] ?? $this->getLoader()->getCacheKey($name)).$this->optionsHash;return '__TwigTemplate_'.hash(\PHP_VERSION_ID < 80100 ? 'sha256' : 'xxh128', $key).(null === $index ? '' : '___'.$index);}/**
in
vendor/twig/twig/src/Environment.php
->
getTemplateClass
(line 370)
trigger_deprecation('twig/twig', '3.9', 'Passing a "%s" instance to "%s" is deprecated.', self::class, __METHOD__);return $name;}return new TemplateWrapper($this, $this->loadTemplate($this->getTemplateClass($name), $name));}/*** Loads a template internal representation.*
in
vendor/twig/twig/src/Environment.php
->
load
(line 333)
* @throws SyntaxError When an error occurred during compilation* @throws RuntimeError When an error occurred during rendering*/public function render($name, array $context = []): string{return $this->load($name)->render($context);}/*** Displays a template.*
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
render
(line 467)
if (null !== $block) {return $this->container->get('twig')->load($view)->renderBlock($block, $parameters);}return $this->container->get('twig')->render($view, $parameters);}private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response{$content = $this->doRenderView($view, $block, $parameters, $method);
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
doRenderView
(line 472)
return $this->container->get('twig')->render($view, $parameters);}private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response{$content = $this->doRenderView($view, $block, $parameters, $method);$response ??= new Response();if (200 === $response->getStatusCode()) {foreach ($parameters as $v) {if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
doRender
(line 284)
* If an invalid form is found in the list of parameters, a 422 status code is returned.* Forms found in parameters are auto-cast to form views.*/protected function render(string $view, array $parameters = [], ?Response $response = null): Response{return $this->doRender($view, null, $parameters, $response, __FUNCTION__);}/*** Renders a block in a view.*
AbstractController->render('home/circuit.html.twig', array('equipes' => array(object(Equipe), object(Equipe))))
in
src/Controller/HomeController.php
(line 240)
#[Route('/tout/circuits', name: 'circuit_home')]public function circuit(EquipeRepository $equipeRepository): Response {$equipes = $equipeRepository->findBy([], ['id' => 'ASC'], 4); // Récupère les 4 derniers membres de l'équipe triés par ID décroissantreturn $this->render('home/circuit.html.twig', ['equipes' => $equipes]);}#[Route('/blog/home', name: 'blog_home', requirements: ['page' => '\d+'])]public function blog(BlogRepository $blogRepository, EquipeRepository $equipeRepository, int $page = 1): Response{
in
vendor/symfony/http-kernel/HttpKernel.php
->
circuit
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| DEBUG 11:53:54 | php |
Warning: Zend OPcache API is restricted by "restrict_api" configuration directive {
"exception": {
"severity": 2,
"file": "/home/suntrat/www/vendor/symfony/error-handler/DebugClassLoader.php",
"line": 303,
"trace": [
{
"file": "/home/suntrat/www/vendor/doctrine/doctrine-bundle/src/DoctrineBundle.php",
"line": 136,
"function": "loadClass",
"class": "Symfony\\Component\\ErrorHandler\\DebugClassLoader",
"type": "->"
}
],
"count": 45
}
}
|
| INFO 11:53:54 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "4013bf"
},
"request_uri": "https://suntravelsetservices.net/public/_profiler/4013bf",
"method": "GET"
}
|
Stack Trace
|
LoaderError
|
|---|
Twig\Error\LoaderError:
Unable to find template "home/circuit.html.twig" (looked into: /home/suntrat/www/templates, /home/suntrat/www/vendor/symfony/twig-bridge/Resources/views/Form).
at vendor/twig/twig/src/Loader/FilesystemLoader.php:234
at Twig\Loader\FilesystemLoader->findTemplate('home/circuit.html.twig')
(vendor/twig/twig/src/Loader/FilesystemLoader.php:138)
at Twig\Loader\FilesystemLoader->getCacheKey('home/circuit.html.twig')
(vendor/twig/twig/src/Environment.php:317)
at Twig\Environment->getTemplateClass('home/circuit.html.twig')
(vendor/twig/twig/src/Environment.php:370)
at Twig\Environment->load('home/circuit.html.twig')
(vendor/twig/twig/src/Environment.php:333)
at Twig\Environment->render('home/circuit.html.twig', array('equipes' => array(object(Equipe), object(Equipe))))
(vendor/symfony/framework-bundle/Controller/AbstractController.php:467)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRenderView('home/circuit.html.twig', null, array('equipes' => array(object(Equipe), object(Equipe))), 'render')
(vendor/symfony/framework-bundle/Controller/AbstractController.php:472)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRender('home/circuit.html.twig', null, array('equipes' => array(object(Equipe), object(Equipe))), null, 'render')
(vendor/symfony/framework-bundle/Controller/AbstractController.php:284)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render('home/circuit.html.twig', array('equipes' => array(object(Equipe), object(Equipe))))
(src/Controller/HomeController.php:240)
at App\Controller\HomeController->circuit(object(EquipeRepository))
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:32)
at require_once('/home/suntrat/www/vendor/autoload_runtime.php')
(public/index.php:5)
|