Exceptions
Exception
Twig\Error\ LoaderError
Show exception properties
Twig\Error\LoaderError {#851 -lineno: -1 -rawMessage: "Unable to find template "auth/register.html.twig" (looked into: /var/www/html/wellfare-system/templates, /var/www/html/wellfare-system/vendor/symfony/twig-bridge/Resources/views/Form)." -source: null -phpFile: "/var/www/html/wellfare-system/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.*
$auth->authenticateUser($user, $formLoginAuthenticator, $request);return $this->redirectToRoute('app_dashboard');}return $this->render('auth/register.html.twig', ['error' => null]);}#[Route(path: '/logout', name: 'app_logout')]
in
vendor/symfony/http-kernel/HttpKernel.php
->
register
(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('/var/www/html/wellfare-system/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 10:50:32 | deprecation |
User Deprecated: Class "Doctrine\ORM\Proxy\Autoloader" is deprecated. Use native lazy objects instead. (Autoloader.php:74 called by DoctrineBundle.php:136, https://github.com/doctrine/orm/pull/12005, package doctrine/orm) {
"exception": {}
}
|
| INFO 10:50:32 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "latest"
},
"request_uri": "https://sims.ohau.co.ke/_profiler/latest?type=request",
"method": "GET"
}
|
| INFO 10:50:32 | deprecation |
User Deprecated: Support for MySQL < 8 is deprecated and will be removed in DBAL 5 (AbstractMySQLDriver.php:75 called by AbstractDriverMiddleware.php:32, https://github.com/doctrine/dbal/pull/6343, package doctrine/dbal) {
"exception": {}
}
|
| INFO 10:50:32 | doctrine |
Connecting with parameters {params} {
"params": {
"use_savepoints": true,
"driver": "pdo_mysql",
"idle_connection_ttl": 600,
"host": "127.0.0.1",
"port": 3306,
"user": "root",
"password": "<redacted>",
"driverOptions": [],
"defaultTableOptions": [],
"dbname": "wellfare_sims",
"serverVersion": "8",
"charset": "utf8mb4"
}
}
|
| DEBUG 10:50:32 | doctrine | Executing statement: SELECT t0.id AS id_1, t0.is_active AS is_active_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.station_id AS station_id_5, t0.user_id AS user_id_6 FROM station_user t0 WHERE t0.user_id IS NULL AND t0.is_active = ? LIMIT 1 (parameters: {params}, types: {types}) |
Stack Trace
|
LoaderError
|
|---|
Twig\Error\LoaderError:
Unable to find template "auth/register.html.twig" (looked into: /var/www/html/wellfare-system/templates, /var/www/html/wellfare-system/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/LoginController.php:86)
at App\Controller\LoginController->register()
(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('/var/www/html/wellfare-system/vendor/autoload_runtime.php')
(public/index.php:5)
|