Error 500 Internal Server Error

GET https://pruebas.penalara.com/es/cambiaIdioma/en/home&amp&amp&amp

Forwarded to ErrorController (2b1659)

Exceptions

Unable to generate a URL for the named route "home&amp&amp&amp" 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);
  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. * @param int $status The HTTP status code (302 "Found" by default)
  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() in src/Controller/SeccionPublicaController.php (line 1343)
  1. // Establecemos el idioma nuevo en el query especial
  2. $request->query->set('_locale', $idioma);
  3. //COOKIE PARA AREA PRIVADA ANTIGUA, como lo gestionamos? simplemente no hace falta, verdad?
  4. $cookieIdioma = new Cookie('cIdioma', $idioma, '+1 year', '/');
  5. $response = $this->redirectToRoute($ruta, $request->query->all());
  6. $response->headers->setCookie($cookieIdioma);
  7. return $response;
  8. }
in vendor/symfony/http-kernel/HttpKernel.php -> cambiarIdioma (line 183)
  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. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/www/pruebas.penalara.com/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
INFO 20:23:00 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "latest"
    },
    "request_uri": "https://pruebas.penalara.com/index.php/_profiler/latest?ip=52.7.13.143&type=request",
    "method": "GET"
}
INFO 20:23:00 deprecation Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated
{
    "exception": {}
}
INFO 20:23:00 doctrine Connecting with parameters {params}
{
    "params": {
        "use_savepoints": true,
        "driver": "pdo_mysql",
        "idle_connection_ttl": 600,
        "host": "127.0.0.1",
        "port": 3306,
        "user": "pruebalara",
        "password": "<redacted>",
        "driverOptions": [],
        "defaultTableOptions": {
            "collation": "utf8mb4_unicode_ci"
        },
        "dbname": "pruebasGHC",
        "serverVersion": "8.0.29",
        "charset": "utf8mb4"
    }
}

Stack Trace

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

  at vendor/symfony/routing/Generator/CompiledUrlGenerator.php:52
  at Symfony\Component\Routing\Generator\CompiledUrlGenerator->generate()
     (vendor/symfony/routing/Router.php:172)
  at Symfony\Component\Routing\Router->generate()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:108)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->generateUrl()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:142)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->redirectToRoute()
     (src/Controller/SeccionPublicaController.php:1343)
  at App\Controller\SeccionPublicaController->cambiarIdioma()
     (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()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/var/www/pruebas.penalara.com/vendor/autoload_runtime.php')
     (public/index.php:5)