Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ NotAcceptableHttpException
Show exception properties
Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException {#4061 -statusCode: 406 -headers: [] }
}$viewTemplate = $structure->getView() . '.' . $requestFormat . '.twig';if (!$this->container->get('twig')->getLoader()->exists($viewTemplate)) {throw new NotAcceptableHttpException(\sprintf('Page does not exist in "%s" format.', $requestFormat));}// get attributes to render template$data = $this->getAttributes($attributes, $structure, $preview);
{}public function index(Request $request, StructureInterface $structure, $preview = false, $partial = false): Response{return $this->renderStructure(structure: $structure,attributes: $this->dataBlock->load(structure: $structure, request: $request),preview: $preview,partial: $partial);
in
vendor/symfony/http-kernel/HttpKernel.php
->
index
(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;}}
// When using the HttpCache, you need to call the method in your front controller// instead of relying on the configuration parameter// https://symfony.com/doc/6.4/reference/configuration/framework.html#http-method-overrideRequest::enableHttpMethodParameterOverride();$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 19:51:05 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Localization\Localization::setXDefault" method is deprecated on "Sulu\Component\Localization\Localization" use "setDefault" instead. {
"exception": {}
}
|
| INFO 19:51:05 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Localization\Localization::setXDefault" method is deprecated on "Sulu\Component\Localization\Localization" use "setDefault" instead. {
"exception": {}
}
|
| INFO 19:51:05 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Webspace\Portal::getXDefaultLocalization" method is deprecated on "Sulu\Component\Webspace\Portal" use "getDefaultLocalization" instead. {
"exception": {}
}
|
| INFO 19:51:05 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Webspace\Portal::setXDefaultLocalization" method is deprecated on "Sulu\Component\Webspace\Portal" use "setDefaultLocalization" instead. {
"exception": {}
}
|
| INFO 19:51:05 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "16a35b"
},
"request_uri": "https://dod.oj-consulting.fr/_profiler/16a35b",
"method": "GET"
}
|
Stack Trace
|
NotAcceptableHttpException
|
|---|
Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException:
Page does not exist in "env" format.
at vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Controller/WebsiteController.php:58
at Sulu\Bundle\WebsiteBundle\Controller\WebsiteController->renderStructure()
(src/Controller/Website/DefaultController.php:21)
at App\Controller\Website\DefaultController->index()
(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:182)
at Symfony\Component\HttpKernel\Kernel->handle()
(public/index.php:69)
|