Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ NotFoundHttpException
in
src/Controller/SiteCollectionController.php
(line 145)
throw new NotFoundHttpException("Cette collection n'existe pas.");
}
$isAdmin = intval($request->query->get('admin'));
if ($collection->getEnabled() == false && $isAdmin == 0) {
throw new NotFoundHttpException("Cette collection est désactivée");
}
if(isset($this::CATEGORIESREVERT[$localeContext->getLocaleCode()][$slugCategory])){
$slugBase = $this::CATEGORIESREVERT[$localeContext->getLocaleCode()][$slugCategory];
}else{
in
vendor/symfony/http-kernel/HttpKernel.php
->
pageCollectionAction
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$_SERVER['HTTPS'] = 'on';
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
Logs
No log messages
Stack Trace
NotFoundHttpException
|
---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException: Cette collection est désactivée at src/Controller/SiteCollectionController.php:145 at App\Controller\SiteCollectionController->pageCollectionAction() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:31) |