Exceptions
Exception
Twig\Error\ LoaderError
Show exception properties
Twig\Error\LoaderError {#563 -lineno: -1 -rawMessage: "Unable to find template "admin/login/index.twig" (looked into: /home/needou/www/backoffice-daiko-navi.jp/src/Resource/templates, /home/needou/www/backoffice-daiko-navi.jp/vendor/symfony/twig-bridge/Resources/views/Form)." -source: null -phpFile: "/home/needou/www/backoffice-daiko-navi.jp/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.*
}$error = $authenticationUtils->getLastAuthenticationError();$lastUsername = $authenticationUtils->getLastUsername();return $this->render('admin/login/index.twig', ['last_username' => $lastUsername,'error' => $error,'message' => $message,]);}
in
vendor/symfony/http-kernel/HttpKernel.php
->
login
(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());
require_once('/home/needou/www/backoffice-daiko-navi.jp/vendor/autoload_runtime.php')
in
public/index.php
(line 5)
<?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 |
|---|---|---|
| INFO 19:35:11 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "latest"
},
"request_uri": "https://www.backoffice-daiko-navi.jp/_profiler/latest?ip=117.102.218.5&type=request",
"method": "GET"
}
|
Stack Trace
|
LoaderError
|
|---|
Twig\Error\LoaderError:
Unable to find template "admin/login/index.twig" (looked into: /home/needou/www/backoffice-daiko-navi.jp/src/Resource/templates, /home/needou/www/backoffice-daiko-navi.jp/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/AbstractController.php:467)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRenderView()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:472)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRender()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:284)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render()
(src/Controller/Admin/IndexController.php:45)
at App\Controller\Admin\IndexController->login()
(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:193)
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('/home/needou/www/backoffice-daiko-navi.jp/vendor/autoload_runtime.php')
(public/index.php:5)
|