Error 500 Internal Server Error

GET https://route-expert.voidcrypt.fr/

Forwarded to ErrorController (ef5de1)

Exceptions

An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "app_register" as such route does not exist.") in landing/index.html.twig at line 35.

Exceptions 2

Twig\Error\ RuntimeError

Show exception properties
Twig\Error\RuntimeError {#5201
  -lineno: 35
  -rawMessage: "An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "app_register" as such route does not exist.")."
  -source: Twig\Source {#5291
    -code: """
      {# templates/landing/index.html.twig #}\n
      {% extends 'base.html.twig' %}\n
      \n
      {% block title %}Route Expert - Maîtrisez vos fiches écrites du Permis C{% endblock %}\n
      \n
      {% block stylesheets %}\n
          {{ parent() }}\n
          <link rel="preconnect" href="https://fonts.googleapis.com">\n
          <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n
          <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;900&family=Sora:wght@300;400;600;800&display=swap" rel="stylesheet">\n
          <link rel="stylesheet" href="{{ asset('css/landing.css') }}">\n
      {% endblock %}\n
      \n
      {% block body %}\n
          {# Navigation #}\n
          <nav>\n
              <div class="nav-container">\n
                  <div class="logo">\n
                      <div class="logo-icon">C</div>\n
                      <span class="logo-text">Route Expert</span>\n
                  </div>\n
                  <ul class="nav-links">\n
                      <li><a href="#fonctionnalites">Fonctionnalités</a></li>\n
                      <li><a href="#processus">Comment ça marche</a></li>\n
                      <li><a href="#tarifs">Tarifs</a></li>\n
                  </ul>\n
      \n
                  {# Mobile Menu Toggle #}\n
                  <button class="mobile-menu-toggle" aria-label="Menu">\n
                      <span></span>\n
                      <span></span>\n
                      <span></span>\n
                  </button>\n
      \n
                  <a href="{{ path('app_register') }}" class="nav-cta">Commencer</a>\n
              </div>\n
      \n
              {# Mobile Menu #}\n
              <div class="mobile-menu">\n
                  <ul>\n
                      <li><a href="#fonctionnalites">Fonctionnalités</a></li>\n
                      <li><a href="#processus">Comment ça marche</a></li>\n
                      <li><a href="#tarifs">Tarifs</a></li>\n
                      <li><a href="{{ path('app_register') }}">Commencer</a></li>\n
                  </ul>\n
              </div>\n
          </nav>\n
      \n
          {# Hero Section #}\n
          <section class="hero">\n
              <div class="hero-container">\n
                  <div class="hero-content">\n
                      <h1>\n
                          Maîtrisez votre\n
                          <span class="highlight">Permis C</span>\n
                          en toute confiance\n
                      </h1>\n
                      <p>\n
                          La plateforme d'entraînement intelligente qui vous prépare efficacement aux épreuves écrites. Apprenez, mémorisez, progressez à votre rythme.\n
                      </p>\n
                      <div class="hero-buttons">\n
                          <a href="{{ path('app_register') }}" class="btn-hero-primary">🚀 Démarrer gratuitement</a>\n
                          <a href="#processus" class="btn-hero-secondary">Découvrir</a>\n
                      </div>\n
                  </div>\n
      \n
                  <div class="hero-card">\n
                      <div class="hero-card-header">\n
                          <div class="hero-card-title">📋 Fiche d'entraînement</div>\n
                          <span class="badge">Catégorie C</span>\n
                      </div>\n
                      <div class="question-preview">\n
                          <div class="q-number">Question 2</div>\n
                          <p>En France, à partir de quelle quantité d'alcool pur par litre de sang un conducteur de camion titulaire du permis de conduire depuis plus de trois ans encourt-il une sanction ?</p>\n
                      </div>\n
                      <div class="question-preview">\n
                          <div class="q-number">Question 7</div>\n
                          <p>Vous conduisez un camion neuf de 26 t de PTAC. À quelle vitesse êtes-vous limité sur autoroute ?</p>\n
                      </div>\n
                  </div>\n
              </div>\n
          </section>\n
      \n
          {# Stats Section #}\n
          <section class="stats">\n
              <div class="stats-container">\n
                  <div class="stat-card">\n
                      <div class="stat-number">500+</div>\n
                      <div class="stat-label">Fiches d'entraînement</div>\n
                  </div>\n
                  <div class="stat-card">\n
                      <div class="stat-number">95%</div>\n
                      <div class="stat-label">Taux de réussite</div>\n
                  </div>\n
                  <div class="stat-card">\n
                      <div class="stat-number">10K+</div>\n
                      <div class="stat-label">Candidats formés</div>\n
                  </div>\n
                  <div class="stat-card">\n
                      <div class="stat-number">24/7</div>\n
                      <div class="stat-label">Disponibilité</div>\n
                  </div>\n
              </div>\n
          </section>\n
      \n
          {# Features Section #}\n
          <section id="fonctionnalites" class="features">\n
              <div class="section-header">\n
                  <span class="section-badge">Fonctionnalités</span>\n
                  <h2 class="section-title">Tout pour réussir votre examen</h2>\n
                  <p class="section-subtitle">Des outils pensés pour votre progression et votre réussite</p>\n
              </div>\n
              <div class="features-grid">\n
                  <div class="feature-card">\n
                      <div class="feature-icon">📚</div>\n
                      <h3>Fiches complètes</h3>\n
                      <p>Accédez à toutes les fiches officielles du permis C, organisées par catégories et thématiques. Contenu actualisé selon la réglementation en vigueur.</p>\n
                  </div>\n
                  <div class="feature-card">\n
                      <div class="feature-icon">🎯</div>\n
                      <h3>Entraînement ciblé</h3>\n
                      <p>Créez vos sessions d'entraînement par thématique. Le système identifie vos catégories faibles et vous permet de réviser efficacement.</p>\n
                  </div>\n
                  <div class="feature-card">\n
                      <div class="feature-icon">💾</div>\n
                      <h3>Historique détaillé</h3>\n
                      <p>Consultez l'historique complet de toutes vos sessions d'entraînement avec statistiques détaillées, taux de réussite et évolution dans le temps.</p>\n
                  </div>\n
                  <div class="feature-card">\n
                      <div class="feature-icon">🔄</div>\n
                      <h3>Révision intelligente</h3>\n
                      <p>Consultez toutes vos sessions passées, identifiez vos erreurs récurrentes et refaites les questions qui posent problème.</p>\n
                  </div>\n
                  <div class="feature-card">\n
                      <div class="feature-icon">📊</div>\n
                      <h3>Statistiques avancées</h3>\n
                      <p>Suivez votre progression en temps réel avec des graphiques détaillés par catégorie, taux de réussite et temps de réponse moyen.</p>\n
                  </div>\n
                  <div class="feature-card">\n
                      <div class="feature-icon">🏆</div>\n
                      <h3>Mode examen</h3>\n
                      <p>Simulez les conditions réelles de l'examen avec des sessions chronométrées comprenant 10 questions aléatoires sur toutes les catégories.</p>\n
                  </div>\n
              </div>\n
          </section>\n
      \n
          {# Process Section #}\n
          <section id="processus" class="process">\n
              <div class="section-header">\n
                  <span class="section-badge">Processus</span>\n
                  <h2 class="section-title">Comment ça marche ?</h2>\n
                  <p class="section-subtitle">4 étapes simples pour réussir</p>\n
              </div>\n
              <div class="process-container">\n
                  <div class="process-step">\n
                      <div class="step-number">1</div>\n
                      <div class="step-content">\n
                          <h3>Créez votre compte</h3>\n
                          <p>Inscription rapide et gratuite. Commencez immédiatement avec un accès complet à toutes les fiches d'entraînement du permis C.</p>\n
                      </div>\n
                  </div>\n
      \n
                  <div class="process-step">\n
                      <div class="step-number">2</div>\n
                      <div class="step-content">\n
                          <h3>Entraînez-vous régulièrement</h3>\n
                          <p>Répondez aux questions des fiches, validez vos réponses et apprenez de vos erreurs. Chaque session est automatiquement sauvegardée.</p>\n
                      </div>\n
                  </div>\n
      \n
                  <div class="process-step">\n
                      <div class="step-number">3</div>\n
                      <div class="step-content">\n
                          <h3>Suivez votre progression</h3>\n
                          <p>Consultez vos statistiques, identifiez vos points faibles et concentrez vos efforts sur les domaines à améliorer grâce à notre tableau de bord intelligent.</p>\n
                      </div>\n
                  </div>\n
      \n
                  <div class="process-step">\n
                      <div class="step-number">4</div>\n
                      <div class="step-content">\n
                          <h3>Passez l'examen sereinement</h3>\n
                          <p>Une fois prêt, testez-vous en conditions réelles avec le mode examen. Vous êtes désormais prêt à décrocher votre permis C !</p>\n
                      </div>\n
                  </div>\n
              </div>\n
          </section>\n
      \n
          {# CTA Section #}\n
          <section class="cta-section">\n
              <div class="cta-content">\n
                  <h2>Prêt à démarrer votre formation ?</h2>\n
                  <p>\n
                      Rejoignez des milliers de candidats qui ont réussi leur permis C grâce à Route Expert.\n
                      Commencez votre entraînement dès aujourd'hui, gratuitement.\n
                  </p>\n
                  <a href="{{ path('app_register') }}" class="btn-cta-large">Créer mon compte gratuitement</a>\n
              </div>\n
          </section>\n
      \n
          {# Footer #}\n
          <footer>\n
              <div class="footer-container">\n
                  <div class="footer-brand">\n
                      <h3>Route Expert</h3>\n
                      <p>La plateforme de référence pour la préparation au permis poids lourd. Entraînez-vous efficacement et réussissez votre examen du premier coup.</p>\n
                  </div>\n
                  <div class="footer-links">\n
                      <h4>Produit</h4>\n
                      <ul>\n
                          <li><a href="#fonctionnalites">Fonctionnalités</a></li>\n
                          <li><a href="#tarifs">Tarifs</a></li>\n
                          <li><a href="{{ path('app_faq') }}">FAQ</a></li>\n
                          <li><a href="#">Témoignages</a></li>\n
                      </ul>\n
                  </div>\n
                  <div class="footer-links">\n
                      <h4>Entreprise</h4>\n
                      <ul>\n
                          <li><a href="#">À propos</a></li>\n
                          <li><a href="#">Blog</a></li>\n
                          <li><a href="#">Carrières</a></li>\n
                          <li><a href="{{ path('app_contact') }}">Contact</a></li>\n
                      </ul>\n
                  </div>\n
                  <div class="footer-links">\n
                      <h4>Légal</h4>\n
                      <ul>\n
                          <li><a href="{{ path('app_mentions_legales') }}">Mentions légales</a></li>\n
                          <li><a href="{{ path('app_cgu') }}">CGU</a></li>\n
                          <li><a href="{{ path('app_confidentialite') }}">Confidentialité</a></li>\n
                          <li><a href="#">Cookies</a></li>\n
                      </ul>\n
                  </div>\n
              </div>\n
              <div class="footer-bottom">\n
                  <p>&copy; {{ "now"|date("Y") }} Route Expert. Tous droits réservés.</p>\n
              </div>\n
          </footer>\n
      {% endblock %}\n
      \n
      {% block javascripts %}\n
          {{ parent() }}\n
          <script src="{{ asset('js/landing.js') }}"></script>\n
      {% endblock %}\n
      \n
      """
    -name: "landing/index.html.twig"
    -path: "/app/templates/landing/index.html.twig"
  }
  -phpFile: "/app/vendor/twig/twig/src/Template.php"
  -phpLine: 460
}
  1. {# Mobile Menu Toggle #}
  2. <button class="mobile-menu-toggle" aria-label="Menu" aria-expanded="false">
  3. <span></span>
  4. <span></span>
  5. <span></span>
  6. </button>
  7. </div>
  8. {# Mobile Menu #}
  9. <div class="mobile-menu">
  10. <ul>
  1. yield from $this->unwrap()->yieldBlock('javascripts', $context, $blocks);
  2. // line 14
  3. yield " </head>
  4. <body>
  5. ";
  6. // line 16
  7. yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
  8. // line 17
  9. yield " </body>
  10. </html>
  11. ";
in vendor/twig/twig/src/Template.php -> doDisplay (line 402)
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "landing/index.html.twig"));
  3. $this->parent = $this->load("base.html.twig", 2);
  4. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  5. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  6. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 402)
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. return $this->blocks;
  2. }
  3. public function display(array $context, array $blocks = []): void
  4. {
  5. foreach ($this->yield($context, $blocks) as $data) {
  6. echo $data;
  7. }
  8. }
  9. public function render(array $context): string
in vendor/twig/twig/src/Template.php -> display (line 373)
  1. ob_start();
  2. } else {
  3. ob_start(function () { return ''; });
  4. }
  5. try {
  6. $this->display($context);
  7. } catch (\Throwable $e) {
  8. while (ob_get_level() > $level) {
  9. ob_end_clean();
  10. }
  1. yield from $this->template->yieldBlock($name, $context);
  2. }
  3. public function render(array $context = []): string
  4. {
  5. return $this->template->render($context);
  6. }
  7. /**
  8. * @return void
  9. */
  1. * @throws SyntaxError When an error occurred during compilation
  2. * @throws RuntimeError When an error occurred during rendering
  3. */
  4. public function render($name, array $context = []): string
  5. {
  6. return $this->load($name)->render($context);
  7. }
  8. /**
  9. * Displays a template.
  10. *
  1. if (null !== $block) {
  2. return $this->container->get('twig')->load($view)->renderBlock($block, $parameters);
  3. }
  4. return $this->container->get('twig')->render($view, $parameters);
  5. }
  6. private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
  7. {
  8. $content = $this->doRenderView($view, $block, $parameters, $method);
  1. return $this->container->get('twig')->render($view, $parameters);
  2. }
  3. private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
  4. {
  5. $content = $this->doRenderView($view, $block, $parameters, $method);
  6. $response ??= new Response();
  7. if (200 === $response->getStatusCode()) {
  8. foreach ($parameters as $v) {
  9. if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
  1. * If an invalid form is found in the list of parameters, a 422 status code is returned.
  2. * Forms found in parameters are auto-cast to form views.
  3. */
  4. protected function render(string $view, array $parameters = [], ?Response $response = null): Response
  5. {
  6. return $this->doRender($view, null, $parameters, $response, __FUNCTION__);
  7. }
  8. /**
  9. * Renders a block in a view.
  10. *
AbstractController->render('landing/index.html.twig', array('controller_name' => 'LandingController')) in src/Controller/LandingController.php (line 14)
  1. final class LandingController extends AbstractController
  2. {
  3. #[Route('/', name: 'app_landing')]
  4. public function index(): Response
  5. {
  6. return $this->render('landing/index.html.twig', [
  7. 'controller_name' => 'LandingController',
  8. ]);
  9. }
  10. }
  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('/app/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. };

Symfony\Component\Routing\Exception\ RouteNotFoundException

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

  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. }
  3. public function getPath(string $name, array $parameters = [], bool $relative = false): string
  4. {
  5. return $this->generator->generate($name, $parameters, $relative ? UrlGeneratorInterface::RELATIVE_PATH : UrlGeneratorInterface::ABSOLUTE_PATH);
  6. }
  7. public function getUrl(string $name, array $parameters = [], bool $schemeRelative = false): string
  8. {
  9. return $this->generator->generate($name, $parameters, $schemeRelative ? UrlGeneratorInterface::NETWORK_PATH : UrlGeneratorInterface::ABSOLUTE_URL);
  1. <span></span>
  2. <span></span>
  3. <span></span>
  4. </button>
  5. </div>
  6. ";
  7. // line 39
  8. yield " <div class=\"mobile-menu\">
  9. <ul>
  10. <li><a href=\"#fonctionnalites\">Fonctionnalités</a></li>
in vendor/twig/twig/src/Template.php -> block_body (line 446)
  1. throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2. }
  3. if (null !== $template) {
  4. try {
  5. yield from $template->$block($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($template->getSourceContext());
  9. }
  1. yield from $this->unwrap()->yieldBlock('javascripts', $context, $blocks);
  2. // line 14
  3. yield " </head>
  4. <body>
  5. ";
  6. // line 16
  7. yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
  8. // line 17
  9. yield " </body>
  10. </html>
  11. ";
in vendor/twig/twig/src/Template.php -> doDisplay (line 402)
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "landing/index.html.twig"));
  3. $this->parent = $this->load("base.html.twig", 2);
  4. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  5. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  6. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 402)
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. return $this->blocks;
  2. }
  3. public function display(array $context, array $blocks = []): void
  4. {
  5. foreach ($this->yield($context, $blocks) as $data) {
  6. echo $data;
  7. }
  8. }
  9. public function render(array $context): string
in vendor/twig/twig/src/Template.php -> display (line 373)
  1. ob_start();
  2. } else {
  3. ob_start(function () { return ''; });
  4. }
  5. try {
  6. $this->display($context);
  7. } catch (\Throwable $e) {
  8. while (ob_get_level() > $level) {
  9. ob_end_clean();
  10. }
  1. yield from $this->template->yieldBlock($name, $context);
  2. }
  3. public function render(array $context = []): string
  4. {
  5. return $this->template->render($context);
  6. }
  7. /**
  8. * @return void
  9. */
  1. * @throws SyntaxError When an error occurred during compilation
  2. * @throws RuntimeError When an error occurred during rendering
  3. */
  4. public function render($name, array $context = []): string
  5. {
  6. return $this->load($name)->render($context);
  7. }
  8. /**
  9. * Displays a template.
  10. *
  1. if (null !== $block) {
  2. return $this->container->get('twig')->load($view)->renderBlock($block, $parameters);
  3. }
  4. return $this->container->get('twig')->render($view, $parameters);
  5. }
  6. private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
  7. {
  8. $content = $this->doRenderView($view, $block, $parameters, $method);
  1. return $this->container->get('twig')->render($view, $parameters);
  2. }
  3. private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
  4. {
  5. $content = $this->doRenderView($view, $block, $parameters, $method);
  6. $response ??= new Response();
  7. if (200 === $response->getStatusCode()) {
  8. foreach ($parameters as $v) {
  9. if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
  1. * If an invalid form is found in the list of parameters, a 422 status code is returned.
  2. * Forms found in parameters are auto-cast to form views.
  3. */
  4. protected function render(string $view, array $parameters = [], ?Response $response = null): Response
  5. {
  6. return $this->doRender($view, null, $parameters, $response, __FUNCTION__);
  7. }
  8. /**
  9. * Renders a block in a view.
  10. *
AbstractController->render('landing/index.html.twig', array('controller_name' => 'LandingController')) in src/Controller/LandingController.php (line 14)
  1. final class LandingController extends AbstractController
  2. {
  3. #[Route('/', name: 'app_landing')]
  4. public function index(): Response
  5. {
  6. return $this->render('landing/index.html.twig', [
  7. 'controller_name' => 'LandingController',
  8. ]);
  9. }
  10. }
  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('/app/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 02:24:27 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "cd8fa4"
    },
    "request_uri": "https://route-expert.voidcrypt.fr/_profiler/cd8fa4?panel=exception&type=request",
    "method": "GET"
}

Stack Traces 2

[2/2] RuntimeError
Twig\Error\RuntimeError:
An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "app_register" as such route does not exist.") in "landing/index.html.twig" at line 35.

  at templates/landing/index.html.twig:35
  at Twig\Template->yieldBlock('body', array('controller_name' => 'LandingController', 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_javascripts'), 'importmap' => array(object(__TwigTemplate_a0b03e6a59b31ec6a293125080a11a42), 'block_importmap'), 'body' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_body')))
     (var/cache/dev/twig/99/99710694ee357395a9ef0116555a7a13.php:75)
  at __TwigTemplate_a0b03e6a59b31ec6a293125080a11a42->doDisplay(array('controller_name' => 'LandingController', 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_javascripts'), 'importmap' => array(object(__TwigTemplate_a0b03e6a59b31ec6a293125080a11a42), 'block_importmap'), 'body' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_body')))
     (vendor/twig/twig/src/Template.php:402)
  at Twig\Template->yield(array('controller_name' => 'LandingController', 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_javascripts'), 'importmap' => array(object(__TwigTemplate_a0b03e6a59b31ec6a293125080a11a42), 'block_importmap'), 'body' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_body')))
     (var/cache/dev/twig/30/30bedbc7de6776fefb59b6e4b1ad922c.php:56)
  at __TwigTemplate_536427d40967b3dfea41425bd73be3b7->doDisplay(array('controller_name' => 'LandingController', 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_body'), 'javascripts' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_javascripts')))
     (vendor/twig/twig/src/Template.php:402)
  at Twig\Template->yield(array('controller_name' => 'LandingController', 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_body'), 'javascripts' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_javascripts')))
     (vendor/twig/twig/src/Template.php:358)
  at Twig\Template->display(array('controller_name' => 'LandingController'))
     (vendor/twig/twig/src/Template.php:373)
  at Twig\Template->render(array('controller_name' => 'LandingController'))
     (vendor/twig/twig/src/TemplateWrapper.php:51)
  at Twig\TemplateWrapper->render(array('controller_name' => 'LandingController'))
     (vendor/twig/twig/src/Environment.php:333)
  at Twig\Environment->render('landing/index.html.twig', array('controller_name' => 'LandingController'))
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:462)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRenderView('landing/index.html.twig', null, array('controller_name' => 'LandingController'), 'render')
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:467)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRender('landing/index.html.twig', null, array('controller_name' => 'LandingController'), null, 'render')
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:279)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render('landing/index.html.twig', array('controller_name' => 'LandingController'))
     (src/Controller/LandingController.php:14)
  at App\Controller\LandingController->index()
     (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:191)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/app/vendor/autoload_runtime.php')
     (public/index.php:5)                
[1/2] RouteNotFoundException
Symfony\Component\Routing\Exception\RouteNotFoundException:
Unable to generate a URL for the named route "app_register" as such route does not exist.

  at vendor/symfony/routing/Generator/CompiledUrlGenerator.php:52
  at Symfony\Component\Routing\Generator\CompiledUrlGenerator->generate('app_register', array(), 1)
     (vendor/symfony/routing/Router.php:172)
  at Symfony\Component\Routing\Router->generate('app_register', array(), 1)
     (vendor/symfony/twig-bridge/Extension/RoutingExtension.php:43)
  at Symfony\Bridge\Twig\Extension\RoutingExtension->getPath('app_register')
     (var/cache/dev/twig/30/30bedbc7de6776fefb59b6e4b1ad922c.php:160)
  at __TwigTemplate_536427d40967b3dfea41425bd73be3b7->block_body(array('controller_name' => 'LandingController', 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_javascripts'), 'importmap' => array(object(__TwigTemplate_a0b03e6a59b31ec6a293125080a11a42), 'block_importmap'), 'body' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_body')))
     (vendor/twig/twig/src/Template.php:446)
  at Twig\Template->yieldBlock('body', array('controller_name' => 'LandingController', 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_javascripts'), 'importmap' => array(object(__TwigTemplate_a0b03e6a59b31ec6a293125080a11a42), 'block_importmap'), 'body' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_body')))
     (var/cache/dev/twig/99/99710694ee357395a9ef0116555a7a13.php:75)
  at __TwigTemplate_a0b03e6a59b31ec6a293125080a11a42->doDisplay(array('controller_name' => 'LandingController', 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_javascripts'), 'importmap' => array(object(__TwigTemplate_a0b03e6a59b31ec6a293125080a11a42), 'block_importmap'), 'body' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_body')))
     (vendor/twig/twig/src/Template.php:402)
  at Twig\Template->yield(array('controller_name' => 'LandingController', 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_javascripts'), 'importmap' => array(object(__TwigTemplate_a0b03e6a59b31ec6a293125080a11a42), 'block_importmap'), 'body' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_body')))
     (var/cache/dev/twig/30/30bedbc7de6776fefb59b6e4b1ad922c.php:56)
  at __TwigTemplate_536427d40967b3dfea41425bd73be3b7->doDisplay(array('controller_name' => 'LandingController', 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_body'), 'javascripts' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_javascripts')))
     (vendor/twig/twig/src/Template.php:402)
  at Twig\Template->yield(array('controller_name' => 'LandingController', 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_body'), 'javascripts' => array(object(__TwigTemplate_536427d40967b3dfea41425bd73be3b7), 'block_javascripts')))
     (vendor/twig/twig/src/Template.php:358)
  at Twig\Template->display(array('controller_name' => 'LandingController'))
     (vendor/twig/twig/src/Template.php:373)
  at Twig\Template->render(array('controller_name' => 'LandingController'))
     (vendor/twig/twig/src/TemplateWrapper.php:51)
  at Twig\TemplateWrapper->render(array('controller_name' => 'LandingController'))
     (vendor/twig/twig/src/Environment.php:333)
  at Twig\Environment->render('landing/index.html.twig', array('controller_name' => 'LandingController'))
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:462)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRenderView('landing/index.html.twig', null, array('controller_name' => 'LandingController'), 'render')
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:467)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRender('landing/index.html.twig', null, array('controller_name' => 'LandingController'), null, 'render')
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:279)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render('landing/index.html.twig', array('controller_name' => 'LandingController'))
     (src/Controller/LandingController.php:14)
  at App\Controller\LandingController->index()
     (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:191)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/app/vendor/autoload_runtime.php')
     (public/index.php:5)