https://deamonerp.fr/cpi2/public/changer-locale/fr?p=changer-locale%2Ffr

Exceptions

Some mandatory parameters are missing ("locale") to generate a URL for route "app_industrialisation".

  • Exception
  • Logs
  • Stack Trace

Symfony\Component\Routing\Exception\ MissingMandatoryParametersException

  1.         $variables array_flip($variables);
  2.         $mergedParams array_replace($defaults$this->context->getParameters(), $parameters);
  3.         // all params must be given
  4.         if ($diff array_diff_key($variables$mergedParams)) {
  5.             throw new MissingMandatoryParametersException(sprintf('Some mandatory parameters are missing ("%s") to generate a URL for route "%s".'implode('", "'array_keys($diff)), $name));
  6.         }
  7.         $url '';
  8.         $optional true;
  9.         $message 'Parameter "{parameter}" for route "{route}" must match "{expected}" ("{given}" given) to generate a corresponding URL.';
  1.             } elseif (!isset($parameters['_locale'])) {
  2.                 $parameters['_locale'] = $defaults['_locale'];
  3.             }
  4.         }
  5.         return $this->doGenerate($variables$defaults$requirements$tokens$parameters$name$referenceType$hostTokens$requiredSchemes);
  6.     }
  7. }
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.      *
AbstractController->generateUrl() in src/Controller/AdminController.php (line 79)
  1.             {
  2.                 return $this->redirect($temp);
  3.             }
  4.             else
  5.             {
  6.                 return $this->redirect($this->generateUrl('app_industrialisation'));
  7.             }
  8.        
  9.     }
in vendor/symfony/http-kernel/HttpKernel.php -> changerLocale (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.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 35)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/vhosts/deamonerp.fr/httpdocs/cpi2/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. if($_SERVER['REMOTE_ADDR'] == '90.63.222.84')
  5. {
  6.     return function (array $context) {
  7.         return new Kernel($context['APP_DEV'], (bool) $context['APP_DEBUG']);
  8.     };