Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ NotAcceptableHttpException
Show exception properties
Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException {#2251 -statusCode: 406 -headers: [] }
in
vendor/sulu/sulu/packages/content/src/UserInterface/Controller/Website/ContentController.php
(line 119)
bool $partial,): string {$viewTemplate = $view . '.' . $requestFormat . '.twig';if (!$this->container->get('twig')->getLoader()->exists($viewTemplate)) {throw new NotAcceptableHttpException(\sprintf('Page does not exist in "%s" format.', $requestFormat));}if ($partial) {return $this->renderBlockView($viewTemplate, 'content', $parameters);} elseif ($preview) {
in
vendor/sulu/sulu/packages/content/src/UserInterface/Controller/Website/ContentController.php
->
renderSuluView
(line 78)
if ('json' === $requestFormat) {$parameters = []; // TODO normalize for JSON response here or inside the resolver already, no headless support yet$response = new JsonResponse($parameters);} else {$response = new Response($this->renderSuluView($view, $requestFormat, $parameters, $preview, $partial));}$this->enhanceSuluCacheLifeTime($response);return $response;
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 193)
if (!$this->handlingHttpCache) {$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 12:30:12 | deprecation |
User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead. {
"exception": {}
}
|
| INFO 12:30:12 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "0d9c70"
},
"request_uri": "https://sulu.paco-dev.io/_profiler/0d9c70",
"method": "GET"
}
|
| INFO 12:30:12 | deprecation |
User Deprecated: Using ArrayAccess on Doctrine\ORM\Mapping\FieldMapping is deprecated and will not be possible in Doctrine ORM 4.0. Use the corresponding property instead. (ArrayAccessImplementation.php:18 called by ReferencesOption.php:72, https://github.com/doctrine/orm/pull/11211, package doctrine/orm) {
"exception": {}
}
|
| INFO 12:30:12 | deprecation |
User Deprecated: Specifying the "nullable" attribute for join columns in many-to-many associations (here, Sulu\Bundle\ContactBundle\Entity\Contact::$medias) is a no-op.
The ORM will always set it to false.
Doing so is deprecated and will be an error in 4.0. (ManyToManyOwningSideMapping.php:133 called by ClassMetadata.php:1448, https://github.com/doctrine/orm/pull/12126, package doctrine/orm) {
"exception": {}
}
|
| INFO 12:30:12 | deprecation |
User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead. {
"exception": {}
}
|
| INFO 12:30:12 | deprecation |
User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead. {
"exception": {}
}
|
| INFO 12:30:12 | deprecation |
User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead. {
"exception": {}
}
|
| INFO 12:30:12 | deprecation |
User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead. {
"exception": {}
}
|
Stack Trace
|
NotAcceptableHttpException
|
|---|
Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException:
Page does not exist in "env" format.
at vendor/sulu/sulu/packages/content/src/UserInterface/Controller/Website/ContentController.php:119
at Sulu\Content\UserInterface\Controller\Website\ContentController->renderSuluView()
(vendor/sulu/sulu/packages/content/src/UserInterface/Controller/Website/ContentController.php:78)
at Sulu\Content\UserInterface\Controller\Website\ContentController->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:193)
at Symfony\Component\HttpKernel\Kernel->handle()
(public/index.php:69)
|