Symfony Exception

RuntimeError

HTTP 500 Internal Server Error

Variable "url_clean" does not exist.

Exception

Twig\Error\ RuntimeError

  1. <div class="tc-block-body">
  2.     <form method="post" action="/annonces/{{ url_clean }}/" id="filtre">
  3.         {% if formAsideSearch.area is defined and formAsideSearch.area %}
  4.         <label for="">Par rĂ©gion</label>
  5.             {{ form_widget(formAsideSearch.area) }}
  6.         {% endif %}
  7.         {% if formAsideSearch.cp is defined and formAsideSearch.cp %}
  1.         // line 1
  2.         echo "<div class=\"tc-block-body\">
  3.     <form method=\"post\" action=\"/annonces/";
  4.         // line 2
  5.         echo twig_escape_filter($this->env, (isset($context["url_clean"]) || array_key_exists("url_clean"$context) ? $context["url_clean"] : (function () { throw new RuntimeError('Variable "url_clean" does not exist.'2$this->source); })()), "html"nulltrue);
  6.         echo "/\" id=\"filtre\">
  7.         ";
  8.         // line 3
  9.         if ((twig_get_attribute($this->env$this->source, ($context["formAsideSearch"] ?? null), "area", [], "any"truetruefalse3) && twig_get_attribute($this->env$this->source, (isset($context["formAsideSearch"]) || array_key_exists("formAsideSearch"$context) ? $context["formAsideSearch"] : (function () { throw new RuntimeError('Variable "formAsideSearch" does not exist.'3$this->source); })()), "area", [], "any"falsefalsefalse3))) {
  10.             // line 4
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $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 = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.                 ";
  2.                     // line 55
  3.                     if ((twig_get_attribute($this->env$this->source$context["aside_content"], "html", [], "any"falsefalsefalse55) != "error")) {
  4.                         // line 56
  5.                         echo "                    ";
  6.                         $this->loadTemplate((("" twig_get_attribute($this->env$this->source$context["aside_content"], "html", [], "any"falsefalsefalse56)) . ".twig"), "includes/aside/aside_basic.inc.html.twig"56)->display($context);
  7.                         // line 57
  8.                         echo "                ";
  9.                     } else {
  10.                         // line 58
  11.                         echo "                    -- erreur lors du chargement ! -- ";
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $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 = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         if ((array_key_exists("aside"$context) && (isset($context["aside"]) || array_key_exists("aside"$context) ? $context["aside"] : (function () { throw new RuntimeError('Variable "aside" does not exist.'1$this->source); })()))) {
  2.             // line 2
  3.             echo "    <aside id=\"tc-aside\" class=\"tc-desktop-1_3 tc-phone-1_1\">
  4.         ";
  5.             // line 3
  6.             $this->loadTemplate("/includes/aside/aside_basic.inc.html.twig""includes/footer.inc.html.twig"3)->display($context);
  7.             // line 4
  8.             echo "    </aside>
  9. ";
  10.         }
  11.         // line 6
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $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 = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         ";
  2.         // line 114
  3.         if (( !array_key_exists("iframe_style"$context) ||  !(isset($context["iframe_style"]) || array_key_exists("iframe_style"$context) ? $context["iframe_style"] : (function () { throw new RuntimeError('Variable "iframe_style" does not exist.'114$this->source); })()))) {
  4.             // line 115
  5.             echo "            ";
  6.             $this->loadTemplate("/includes/footer.inc.html.twig""templates.html.twig"115)->display($context);
  7.             // line 116
  8.             echo "        ";
  9.         }
  10.         // line 117
  11.         echo "
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $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 = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""annonces/annonce_normal.inc.html.twig"));
  3.         $this->parent $this->loadTemplate("templates.html.twig""annonces/annonce_normal.inc.html.twig"1);
  4.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $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 = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""annonces/annonce.html.twig"));
  3.         // line 1
  4.         $this->loadTemplate((("annonces/annonce_" . (isset($context["typeaffichage"]) || array_key_exists("typeaffichage"$context) ? $context["typeaffichage"] : (function () { throw new RuntimeError('Variable "typeaffichage" does not exist.'1$this->source); })())) . ".inc.html.twig"), "annonces/annonce.html.twig"1)->display($context);
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $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 = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  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.      */
  2.     public function render(array $context = []): string
  3.     {
  4.         // using func_get_args() allows to not expose the blocks argument
  5.         // as it should only be used by internal code
  6.         return $this->template->render($context, \func_get_args()[1] ?? []);
  7.     }
  8.     /**
  9.      * Displays the template.
  10.      *
  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 = [])
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.     {
  2.         if (!$this->container->has('twig')) {
  3.             throw new \LogicException('You cannot use the "renderView" method if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');
  4.         }
  5.         return $this->container->get('twig')->render($view$parameters);
  6.     }
  7.     /**
  8.      * Renders a view.
  9.      */
  1.     /**
  2.      * Renders a view.
  3.      */
  4.     protected function render(string $view, array $parameters = [], Response $response null): Response
  5.     {
  6.         $content $this->renderView($view$parameters);
  7.         if (null === $response) {
  8.             $response = new Response();
  9.         }
  1.             }
  2.             return true;
  3.         }
  4.         return $this->render($template,
  5.             $view
  6.         );
  7.     }
  1.         // style css et js
  2.         $this->view->style_more[] = 'annonces';
  3.         $this->view->js_more[] = 'jquery.qtip.min.js';
  4.         return $this->view('annonces/annonce.html.twig');
  5.     }
  6.     /**
  7.      * @Route("/annonces/outils/recherche", name="annonces_outils_recherche")
  8.      */
  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.     Debug::enable();
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Stack Trace

RuntimeError
Twig\Error\RuntimeError:
Variable "url_clean" does not exist.

  at /home/web/theatre-contemporain.net/dev/templates/includes/aside/annonces/annonce_categorie.html.twig:2
  at __TwigTemplate_ce72f0c4d7f157a57b530d76146dd9dc9f7d2080670d89135e9bdacdcebb002a->{closure}()
     (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/cf/cf5a788e1f336062be181f6952c90182f7e86ddba2c6b2d2224546e134a6f46f.php:46)
  at __TwigTemplate_ce72f0c4d7f157a57b530d76146dd9dc9f7d2080670d89135e9bdacdcebb002a->doDisplay()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/8c/8c6c4e4aad20c775638bf881a6a587dcbde8ef9677be08ce1a5999a1d6f2f0e7.php:200)
  at __TwigTemplate_94a629ed9c671204fc09b022066031ba83e84d6b69fbda2cba7af5c1f05f06d3->doDisplay()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/c2/c27a54ca83fbd239d0847eff3e657561bed2168eed821b11786d7a1c96a654a5.php:48)
  at __TwigTemplate_4099258c2396c4b6b7922b4c0d2a47d7f4a5fa3472d746abf0e9cc53a0b1ebe4->doDisplay()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/c6/c6034497f4006f9dc070865116804ccb36d383666ed093d23104118f27db7edc.php:185)
  at __TwigTemplate_1590eee5e6149969fcf2209e20425a07e3f8fecba8db09552f1020e0ada36dc0->doDisplay()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/3d/3de98b6f56103a662183a53d21f5f0e70b8878b073e70a970328baecad3f320e.php:49)
  at __TwigTemplate_5943fc72675f879157a2566c5335cff1dbc400eb8ee07debf95545f4d8d58b9b->doDisplay()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/7c/7c15742a6a2e91893d87639ff999b325ca6a8b934313e6c466397afdcf2e5224.php:43)
  at __TwigTemplate_ddc5ce47df52ccc0dec7d2f63d5cf768cbc6dd14e47d326996807be32a870e21->doDisplay()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/TemplateWrapper.php:45)
  at Twig\TemplateWrapper->render()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render()
     (/home/web/theatre-contemporain.net/dev/vendor/symfony/framework-bundle/Controller/AbstractController.php:258)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView()
     (/home/web/theatre-contemporain.net/dev/vendor/symfony/framework-bundle/Controller/AbstractController.php:266)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render()
     (/home/web/theatre-contemporain.net/dev/src/ClassTheatre/TheatreController.php:229)
  at App\ClassTheatre\TheatreController->view()
     (/home/web/theatre-contemporain.net/dev/src/Controller/AnnoncesController.php:1624)
  at App\Controller\AnnoncesController->annonce()
     (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/home/web/theatre-contemporain.net/dev/public/index.php:20)