Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ NotFoundHttpException
}protected function createResponse(string $path): Response{if (!$this->reader->has($path)) {throw new NotFoundHttpException(\sprintf('File "%s" not found', $path));}$response = new StreamedResponse(function () use ($path): void {$stream = $this->reader->getStream($path);$stream->open(new StreamMode('r'));
in
vendor/stefandoorn/sitemap-plugin/src/Controller/SitemapIndexController.php
->
createResponse
(line 28)
public function showAction(): Response{$path = \sprintf('%s/%s', $this->channelContext->getChannel()->getCode(), 'sitemap_index.xml');return $this->createResponse($path);}}
in
vendor/symfony/http-kernel/HttpKernel.php
->
showAction
(line 153)
$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);$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;}}
Request::setTrustedHosts([$trustedHosts]);}$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:
File "default/sitemap_index.xml" not found
at vendor/stefandoorn/sitemap-plugin/src/Controller/AbstractController.php:25
at SitemapPlugin\Controller\AbstractController->createResponse()
(vendor/stefandoorn/sitemap-plugin/src/Controller/SitemapIndexController.php:28)
at SitemapPlugin\Controller\SitemapIndexController->showAction()
(vendor/symfony/http-kernel/HttpKernel.php:153)
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:30)
|