Symfony Exception Symfony Docs Symfony Support MissingMandatoryParametersException HTTP 500 Internal Server Error Some mandatory parameters are missing ("id") to generate a URL for route "actu_details". Exception Logs Stack Trace Symfony\Component\Routing\Exception\ MissingMandatoryParametersException in vendor/symfony/symfony/src/Symfony/Component/Routing/Generator/UrlGenerator.php (line 136) UrlGenerator->doGenerate(array('_locale' => 0, 'id' => 1), array('_controller' => 'AppBundle\\Controller\\DefaultController::actu_detailsAction'), array('_locale' => 'en|fr'), array(array('variable', '/', '[^/]++', 'id'), array('text', '/actu_details'), array('variable', '/', 'en|fr', '_locale')), array('slug' => 'nouvelle-ligne-de-groupage-au-depart-du-veneto'), 'actu_details', 0, array(), array()) in var/cache/prod/appProdDebugProjectContainerUrlGenerator.php (line 103) appProdDebugProjectContainerUrlGenerator->generate('actu_details', array('slug' => 'nouvelle-ligne-de-groupage-au-depart-du-veneto'), 0) in vendor/symfony/symfony/src/Symfony/Component/Routing/Router.php (line 240) Router->generate('actu_details', array('slug' => 'nouvelle-ligne-de-groupage-au-depart-du-veneto'), 0) in src/AppBundle/Service/Sitemap.php (line 35) case 'actu_details': $entities = $newsRepository->findAll(); /** @var News $entity */ foreach ($entities as $entity) { if (!$entity->isDeleted()) { $formatedRoute['loc'] = $this->router->generate($routeName, array('slug' => $entity->translate($locale)->getSlug()), UrlGeneratorInterface::ABSOLUTE_URL); $formatedRoute['priority'] = $route->getOption('priority') ? $route->getOption('priority') : 0.5; $formatedRoute['lastmod'] = $entity->getUpdatedAt() ? $entity->getUpdatedAt()->format('Y/m/d') : $now->format('Y/m/d'); $formatedRoute['changefreq'] = $route->getOption('changefreq') ? $route->getOption('changefreq') : "monthly"; } } Sitemap->generate('actu_details', object(Route), 'fr') in src/AppBundle/Controller/DefaultController.php (line 214) DefaultController->sitemapAction(object(Request)) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151) HttpKernel->handleRaw(object(Request), 1) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68) HttpKernel->handle(object(Request), 1, true) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200) Kernel->handle(object(Request)) in web/app.php (line 19)