Symfony Exception

NotFoundHttpException

HTTP 404 Not Found

This article does not exist

Exception

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

  1.      *
  2.      * @return NotFoundHttpException
  3.      */
  4.     protected function createNotFoundException($message 'Not Found', \Exception $previous null)
  5.     {
  6.         return new NotFoundHttpException($message$previous);
  7.     }
  8.     /**
  9.      * Returns an AccessDeniedException.
  10.      *
Controller->createNotFoundException('This article does not exist') in src/AppBundle/Controller/FrontController.php (line 103)
  1.         if (!$document
  2.             || $document->isDraft()
  3.             || $document->getDatePublication() > new \DateTime('NOW')
  4.             || ($document->getType()->getCode() === DocumentType::PLATFORM_TYPECODE && !$document->isValidatedPlatform())
  5.         ) {
  6.             throw $this->createNotFoundException('This article does not exist');
  7.         }
  8.         return $this->renderDocument($document);
  9.     }
FrontController->documentShowAction('les-groupes-de-travail-aif', 'normalisation-a-linternational') in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151)
  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/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68)
  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/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 169)
  1.     {
  2.         if (false === $this->booted) {
  3.             $this->boot();
  4.         }
  5.         return $this->getHttpKernel()->handle($request$type$catch);
  6.     }
  7.     /**
  8.      * Gets a HTTP kernel from the container.
  9.      *
Kernel->handle(object(Request)) in web/index.php (line 9)
  1. require_once __DIR__ '/boot.php';
  2. (function () {
  3.     global $kernel;
  4.     $request Request::createFromGlobals();
  5.     $response $kernel->handle($request);
  6.     if ($response instanceof \EasyWordpressBundle\Wordpress\WordpressResponse) {
  7.         $response->headers->remove('Content-Type');
  8.     }
{closure}() in web/index.php (line 17)
  1.         $response->headers->remove('Content-Type');
  2.     }
  3.     $response->send();
  4.     $kernel->terminate($request$response);
  5. })();

Logs

No log messages

Stack Trace

NotFoundHttpException

Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
This article does not exist

  at vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php:300
  at Symfony\Bundle\FrameworkBundle\Controller\Controller->createNotFoundException('This article does not exist')
     (src/AppBundle/Controller/FrontController.php:103)
  at AppBundle\Controller\FrontController->documentShowAction('les-groupes-de-travail-aif', 'normalisation-a-linternational')
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:169)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (web/index.php:9)
  at {closure}()
     (web/index.php:17)