Exceptions

Unable to generate a URL for the named route "cx_119" as such route does not exist.

  • Exception
  • Logs
  • Stack Trace

Symfony\Component\Routing\Exception\ RouteNotFoundException

  1.                 }
  2.             } while (false !== $locale strstr($locale'_'true));
  3.         }
  4.         if (!isset($this->compiledRoutes[$name])) {
  5.             throw new RouteNotFoundException(sprintf('Unable to generate a URL for the named route "%s" as such route does not exist.'$name));
  6.         }
  7.         [$variables$defaults$requirements$tokens$hostTokens$requiredSchemes$deprecations] = $this->compiledRoutes[$name] + [=> []];
  8.         foreach ($deprecations as $deprecation) {
in vendor/symfony/routing/Router.php -> generate (line 235)
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function generate(string $name, array $parameters = [], int $referenceType self::ABSOLUTE_PATH)
  5.     {
  6.         return $this->getGenerator()->generate($name$parameters$referenceType);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.      *
  2.      * @see UrlGeneratorInterface
  3.      */
  4.     protected function generateUrl(string $route, array $parameters = [], int $referenceType UrlGeneratorInterface::ABSOLUTE_PATH): string
  5.     {
  6.         return $this->container->get('router')->generate($route$parameters$referenceType);
  7.     }
  8.     /**
  9.      * Forwards the request to another controller.
  10.      *
  1.     /**
  2.      * Returns a RedirectResponse to the given route with the given parameters.
  3.      */
  4.     protected function redirectToRoute(string $route, array $parameters = [], int $status 302): RedirectResponse
  5.     {
  6.         return $this->redirect($this->generateUrl($route$parameters), $status);
  7.     }
  8.     /**
  9.      * Returns a JsonResponse that uses the serializer component if enabled, or json_encode.
  10.      */
AbstractController->redirectToRoute('cx_119') in src/Controller/BaseController.php (line 389)
  1.         } else {
  2.             if ($url) {
  3.                 $redirect $url;
  4.             }
  5.             return $this->redirectToRoute($redirect);
  6.         }
  7.     }
  8.     /**
  9.      * @Route("/sitemap.xml", name="sitemap", defaults={"_locale" = "cs"})
in vendor/symfony/http-kernel/HttpKernel.php -> estatePriceAction (line 163)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in public/index.php (line 42)
  1. if ($trustedHosts $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false) {
  2.     Request::setTrustedHosts([$trustedHosts]);
  3. }
  4. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  5. $request Request::createFromGlobals();
  6. $response $kernel->handle($request);
  7. $response->send();
  8. $kernel->terminate($request$response);