Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ NotFoundHttpException
Show exception properties
Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#744 -statusCode: 404 -headers: [] }
** throw $this->createNotFoundException('Page not found!');*/protected function createNotFoundException(string $message = 'Not Found', ?\Throwable $previous = null): NotFoundHttpException{return new NotFoundHttpException($message, $previous);}/*** Returns an AccessDeniedException.*
Request $request,string $secret,): Response{if ($secret !== $_ENV['ADMIN_SECRET_KEY']) {throw $this->createNotFoundException();}$this->denyAccessUnlessGranted('ROLE_ADMIN');$users = $entityManager->getRepository(User::class)->findAll();return $this->render(self::ADMIN_TEMPLATE, ['user' => $this->getUser(),
in
vendor/symfony/http-kernel/HttpKernel.php
->
admin_panel
(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 182)
$this->boot();++$this->requestStackSize;$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 29)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
require_once('/home/clients/e31e49303d657e6c37a733c0775f0523/sites/dev.on-me.fr/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 21:43:47 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "af1810"
},
"request_uri": "https://dev.on-me.fr/_profiler/af1810",
"method": "GET"
}
|
Stack Trace
|
NotFoundHttpException
|
|---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
Not Found
at vendor/symfony/framework-bundle/Controller/AbstractController.php:329
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->createNotFoundException()
(src/Controller/AdminController.php:87)
at App\Controller\AdminController->admin_panel(object(EntityManager), object(Request), 'privacy')
(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:182)
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:29)
at require_once('/home/clients/e31e49303d657e6c37a733c0775f0523/sites/dev.on-me.fr/vendor/autoload_runtime.php')
(public/index.php:5)
|