Forwarded to ErrorController (fccbb3)

Exceptions

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

Exception

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] + [6 => []];
  8. foreach ($deprecations as $deprecation) {
in vendor/symfony/routing/Router.php -> generate (line 172)
  1. $this->configCacheFactory = $configCacheFactory;
  2. }
  3. public function generate(string $name, array $parameters = [], int $referenceType = self::ABSOLUTE_PATH): string
  4. {
  5. return $this->getGenerator()->generate($name, $parameters, $referenceType);
  6. }
  7. public function match(string $pathinfo): array
  8. {
  9. return $this->getMatcher()->match($pathinfo);
Router->generate('', array('_locale' => 'en')) in src/Controller/LocaleController.php (line 41)
  1. }
  2. $request->setLocale($locale);
  3. $this->requestStack->getSession()->set('_locale', $locale);
  4. return $this->redirect($this->urlGenerator->generate((string) $request->query->get('route', ''), [
  5. ...$request->query->all('params'),
  6. ...$request->query->all('query'),
  7. ...['_locale' => $locale],
  8. ]));
  9. }
  1. $this->dispatcher->dispatch($event, KernelEvents::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, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
  1. // Merge the environment variables coming from DotEnv with the ones tied to the current request
  2. $_SERVER += $server;
  3. $sfRequest = Request::createFromGlobals();
  4. $sfResponse = $this->kernel->handle($sfRequest);
  5. $sfResponse->send();
  6. };
  7. $loops = 0;
FrankenPhpWorkerRunner->{closure:Symfony\Component\Runtime\Runner\FrankenPhpWorkerRunner::run():40}()
in vendor/symfony/runtime/Runner/FrankenPhpWorkerRunner.php frankenphp_handle_request (line 57)
  1. $sfResponse->send();
  2. };
  3. $loops = 0;
  4. do {
  5. $ret = frankenphp_handle_request($handler);
  6. if ($this->kernel instanceof TerminableInterface && $sfRequest && $sfResponse) {
  7. $this->kernel->terminate($sfRequest, $sfResponse);
  8. }
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/app/vendor/autoload_runtime.php') in public/index.php (line 7)
  1. declare(strict_types=1);
  2. use App\Kernel;
  3. require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
  4. return static function (array $context) {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
INFO 18:16:55 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "4399f9"
    },
    "request_uri": "https://mgilbert.org/_profiler/4399f9",
    "method": "GET"
}

Stack Trace

RouteNotFoundException
Symfony\Component\Routing\Exception\RouteNotFoundException:
Unable to generate a URL for the named route "" as such route does not exist.

  at vendor/symfony/routing/Generator/CompiledUrlGenerator.php:52
  at Symfony\Component\Routing\Generator\CompiledUrlGenerator->generate('', array('_locale' => 'en'), 1)
     (vendor/symfony/routing/Router.php:172)
  at Symfony\Component\Routing\Router->generate('', array('_locale' => 'en'))
     (src/Controller/LocaleController.php:41)
  at App\Controller\LocaleController->__invoke(object(Request))
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:193)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/FrankenPhpWorkerRunner.php:50)
  at Symfony\Component\Runtime\Runner\FrankenPhpWorkerRunner->{closure:Symfony\Component\Runtime\Runner\FrankenPhpWorkerRunner::run():40}()
  at frankenphp_handle_request(object(Closure))
     (vendor/symfony/runtime/Runner/FrankenPhpWorkerRunner.php:57)
  at Symfony\Component\Runtime\Runner\FrankenPhpWorkerRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/app/vendor/autoload_runtime.php')
     (public/index.php:7)