Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ NotAcceptableHttpException
Show exception properties
Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException {#2682 -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);
in
vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Controller/DefaultController.php
->
renderStructure
(line 33)
** @return Response*/public function indexAction(StructureInterface $structure, $preview = false, $partial = false){$response = $this->renderStructure($structure,[],$preview,$partial);
in
vendor/symfony/http-kernel/HttpKernel.php
->
indexAction
(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 04:53:31 | 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 04:53:31 | 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 04:53:31 | 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 04:53:31 | 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 04:53:31 | 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 04:53:31 | 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 04:53:31 | 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 04:53:31 | 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 04:53:31 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "4a95ce"
},
"request_uri": "https://www.sulu.ougc.network/_profiler/4a95ce",
"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()
(vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Controller/DefaultController.php:33)
at Sulu\Bundle\WebsiteBundle\Controller\DefaultController->indexAction()
(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:77)
|