Symfony Exception

NotFoundHttpException

HTTP 404 Not Found

A keresett oldal nem található!

Exception

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

  1.      *
  2.      * @final
  3.      */
  4.     protected function createNotFoundException(string $message 'Not Found', \Exception $previous null): NotFoundHttpException
  5.     {
  6.         return new NotFoundHttpException($message$previous);
  7.     }
  8.     /**
  9.      * Returns an AccessDeniedException.
  10.      *
Controller->createNotFoundException('A keresett oldal nem található!') in src/Controller/Pages/PagesController.php (line 158)
  1.                 'p_url_name' => $url_name,
  2.             ]);
  3.             
  4.             if ( !$page ) {
  5.                 
  6.                 throw $this->createNotFoundException('A keresett oldal nem található!');
  7.             }
  8.             $project_style  $this->getDoctrine()->getRepository(ExtraContents::class)->findOneBy([
  9.                 'id' => "1",
  10.             ]);
  11.             $pages             $this->getDoctrine()->getRepository(Pages::class)->findAll();
PagesController->get_page('expressz-szallitas.html') in vendor/symfony/http-kernel/HttpKernel.php (line 149)
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response = \call_user_func_array($controller$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
HttpKernel->handleRaw(object(Request), 1) in vendor/symfony/http-kernel/HttpKernel.php (line 66)
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  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) {
HttpKernel->handle(object(Request), 1, true) in vendor/symfony/http-kernel/Kernel.php (line 190)
  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.     }
Kernel->handle(object(Request)) in public/index.php (line 37)
  1.     Request::setTrustedHosts(explode(','$trustedHosts));
  2. }
  3. $kernel = new Kernel($env$debug);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Stack Trace

NotFoundHttpException

Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
A keresett oldal nem található!

  at vendor/symfony/framework-bundle/Controller/ControllerTrait.php:282
  at Symfony\Bundle\FrameworkBundle\Controller\Controller->createNotFoundException('A keresett oldal nem található!')
     (src/Controller/Pages/PagesController.php:158)
  at App\Controller\Pages\PagesController->get_page('expressz-szallitas.html')
     (vendor/symfony/http-kernel/HttpKernel.php:149)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:66)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:190)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:37)