Symfony Exception

RuntimeError

HTTP 500 Internal Server Error

Key "origin1" for array with keys "type, type2, breadcumb, description, destination1, date1, date2, adults, children, infants, originLabel1, destinationLabel1" does not exist.

Exception

Twig\Error\ RuntimeError

  1. <form action ="#" class="search__engine clearfix search-flight js-searchForm js-searchFormFlight">
  2.     {% if cookieLastSearch is defined and cookieLastSearch != null %}
  3.         <div style="display:none">
  4.             <p id="js-cookieLastSearch-origin">{{ cookieLastSearch['origin1'] }}</p>
  5.             <p id="js-cookieLastSearch-destination">{{ cookieLastSearch['destination1'] }}</p>
  6.             <p id="js-cookieLastSearch-originLabel">{{ cookieLastSearch['originLabel1'] }}</p>
  7.             <p id="js-cookieLastSearch-destinationLabel">{{ cookieLastSearch['destinationLabel1'] }}</p>
  8.             <p id="js-cookieLastSearch-date1">{{ cookieLastSearch['date1'] }}</p>
  9.             <p id="js-cookieLastSearch-date2">{% if cookieLastSearch['date2'] is defined %}{{ cookieLastSearch['date2'] }}{% endif %}</p>
  1.         if ((array_key_exists("cookieLastSearch"$context) && ((isset($context["cookieLastSearch"]) || array_key_exists("cookieLastSearch"$context) ? $context["cookieLastSearch"] : (function () { throw new RuntimeError('Variable "cookieLastSearch" does not exist.'2$this->source); })()) != null))) {
  2.             // line 3
  3.             echo "        <div style=\"display:none\">
  4.             <p id=\"js-cookieLastSearch-origin\">";
  5.             // line 4
  6.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["cookieLastSearch"]) || array_key_exists("cookieLastSearch"$context) ? $context["cookieLastSearch"] : (function () { throw new RuntimeError('Variable "cookieLastSearch" does not exist.'4$this->source); })()), "origin1", [], "array"falsefalsefalse4), "html"nulltrue);
  7.             echo "</p>
  8.             <p id=\"js-cookieLastSearch-destination\">";
  9.             // line 5
  10.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["cookieLastSearch"]) || array_key_exists("cookieLastSearch"$context) ? $context["cookieLastSearch"] : (function () { throw new RuntimeError('Variable "cookieLastSearch" does not exist.'5$this->source); })()), "destination1", [], "array"falsefalsefalse5), "html"nulltrue);
  11.             echo "</p>
in vendor/twig/twig/src/Template.php -> doDisplay (line 405)
  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.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 378)
  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 87
  3.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'87$this->source); })()), "session", [], "any"falsefalsefalse87), "has", [=> "notEnableFlightSearch"], "method"falsefalsefalse87) == 0)) {
  4.             // line 88
  5.             echo "                        ";
  6.             $this->loadTemplate($this->extensions['Aviatur\TwigBundle\Twig\Extension\FileExtension']->twigExists((("@AviaturTwig/" twig_get_attribute($this->env$this->source, (isset($context["agency_folder"]) || array_key_exists("agency_folder"$context) ? $context["agency_folder"] : (function () { throw new RuntimeError('Variable "agency_folder" does not exist.'88$this->source); })()), "twigFlux", [], "method"falsefalsefalse88)) . "/Search/Flight/flightSearch_engine.html.twig")), "@AviaturTwig/aviatur/Flux/Content/Content/promo.html.twig"88)->display($context);
  7.             // line 89
  8.             echo "                    ";
  9.         }
  10.         // line 90
  11.         echo "                </div>
in vendor/twig/twig/src/Template.php -> block_search_content (line 182)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.             echo "hidden-palm";
  2.         }
  3.         echo "\">
  4.         ";
  5.         // line 84
  6.         $this->displayBlock('search_content'$context$blocks);
  7.         // line 93
  8.         echo "    </div>
  9. ";
  10.         
  11.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> block_searcher_header (line 182)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.             // line 104
  2.             echo "\t\t\t\t";
  3.         }
  4.         // line 105
  5.         echo "\t\t\t\t";
  6.         $this->displayBlock('searcher_header'$context$blocks);
  7.         // line 106
  8.         echo "
  9. \t\t\t</header>
  10. \t\t";
in vendor/twig/twig/src/Template.php -> block_header (line 182)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         if ( !array_key_exists("pdfGenerator"$context)) {
  2.             // line 39
  3.             echo "\t\t<!--[if (!IE)|(gt IE 8)]><!-->
  4. \t\t";
  5.             // line 40
  6.             $this->displayBlock('header'$context$blocks);
  7.             // line 110
  8.             echo "\t";
  9.         } else {
  10.             // line 111
  11.             echo "\t\t<section></section>
in vendor/twig/twig/src/Template.php -> block_base_content (line 182)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         $this->displayBlock('overlay'$context$blocks);
  2.         // line 693
  3.         echo "
  4.         ";
  5.         // line 694
  6.         $this->displayBlock('base_content'$context$blocks);
  7.         // line 725
  8.         echo "
  9.         ";
  10.         // line 726
  11.         $this->displayBlock('javascripts'$context$blocks);
in vendor/twig/twig/src/Template.php -> doDisplay (line 405)
  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.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 378)
  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.             // line 19
  2.             if ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile()) {
  3.             }
  4.         }
  5.         // line 1
  6.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  9.     }
in vendor/twig/twig/src/Template.php -> doDisplay (line 405)
  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.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 378)
  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.                 // line 19
  2.                 $context["dataImage"] = $this->extensions['Aviatur\TwigBundle\Twig\Extension\JsonDecode']->jsonDecode((isset($context["imageArticle"]) || array_key_exists("imageArticle"$context) ? $context["imageArticle"] : (function () { throw new RuntimeError('Variable "imageArticle" does not exist.'19$this->source); })()), true);
  3.             }
  4.         }
  5.         // line 1
  6.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  9.     }
in vendor/twig/twig/src/Template.php -> doDisplay (line 405)
  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.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 378)
  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();
in vendor/twig/twig/src/Template.php -> display (line 390)
  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.         }
AbstractController->render() in src/Aviatur/ContentBundle/Controller/ContentController.php (line 1613)
  1.                                 $ticketsPromos = [];
  2.                             }
  3.                             $promoType 'vuelos-destinos';
  4.                         }
  5.                         return $this->render($twigFolder->twigExists('@AviaturTwig/'.$agencyFolder.'/Content/Content/promo.html.twig'), ['articulo' => $articulo[0], 'cookieLastSearch' => $cookieArray'flightPromos' => $ticketsPromos'flightPromosTitle' => $ticketsPromosTitle'flightPromosSubtitle' => $ticketsPromosSubtitle'promoType' => $promoType]);
  6.                     } else {
  7.                         // eg: {"type":"nuevo|general|revista-horizontes|informacion-aviatur","column":"si|no","description":"texto"}
  8.                         $cookieArray = [];
  9.                         foreach ($description as $key => $value) {
  10.                             $cookieArray[$key] = $value;
  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.     }
Kernel->handle() in web/index.php (line 24)
  1.     Request::setTrustedHosts([$trustedHosts]);
  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);

Logs

No log messages

Stack Trace

RuntimeError
Twig\Error\RuntimeError:
Key "origin1" for array with keys "type, type2, breadcumb, description, destination1, date1, date2, adults, children, infants, originLabel1, destinationLabel1" does not exist.

  at src/Aviatur/TwigBundle/Resources/views/aviatur/Flux/Search/Flight/flightSearch_engine.html.twig:4
  at twig_get_attribute()
     (var/cache/prod/twig/c6/c629410259bc57773ff3d4e7fafbf1f27c1cf500e5eae8ff9bf8a33c59326f4d.php:50)
  at __TwigTemplate_f2d1a8e1d5e4dbb1cbe1fe9294884a5cbbd8fa5d5550ca6bcc1205a17ed012de->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/d7/d74210cf2c452a35f5cae2f65449e4d6ba74a33a67df25b6d3c439b0e6637937.php:365)
  at __TwigTemplate_0889399e2b9b2c8f8898f5a43915d14ad7b7f29d2ad1b9fba75b4a15f4c91367->block_search_content()
     (vendor/twig/twig/src/Template.php:182)
  at Twig\Template->displayBlock()
     (var/cache/prod/twig/d7/d74210cf2c452a35f5cae2f65449e4d6ba74a33a67df25b6d3c439b0e6637937.php:337)
  at __TwigTemplate_0889399e2b9b2c8f8898f5a43915d14ad7b7f29d2ad1b9fba75b4a15f4c91367->block_searcher_header()
     (vendor/twig/twig/src/Template.php:182)
  at Twig\Template->displayBlock()
     (var/cache/prod/twig/b7/b71fa889d3aadcb0b298b107d1949a48616715a84212eca7f7f134e84fa76e54.php:1028)
  at __TwigTemplate_2316833c99a978109ad7176d55156d40173c2ac3de936d8ae36612f42015da36->block_header()
     (vendor/twig/twig/src/Template.php:182)
  at Twig\Template->displayBlock()
     (var/cache/prod/twig/b7/b71fa889d3aadcb0b298b107d1949a48616715a84212eca7f7f134e84fa76e54.php:188)
  at __TwigTemplate_2316833c99a978109ad7176d55156d40173c2ac3de936d8ae36612f42015da36->block_base_content()
     (vendor/twig/twig/src/Template.php:182)
  at Twig\Template->displayBlock()
     (var/cache/prod/twig/a9/a913b5e5bee73232b12cb4964b2470ce872a6c818f06f1486f846655a1c0ac77.php:835)
  at __TwigTemplate_084ed6ba10b7017b5682857e1babd70e194be24d8061b69f2e5be539c1eb6e1a->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/b7/b71fa889d3aadcb0b298b107d1949a48616715a84212eca7f7f134e84fa76e54.php:62)
  at __TwigTemplate_2316833c99a978109ad7176d55156d40173c2ac3de936d8ae36612f42015da36->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/d7/d74210cf2c452a35f5cae2f65449e4d6ba74a33a67df25b6d3c439b0e6637937.php:90)
  at __TwigTemplate_0889399e2b9b2c8f8898f5a43915d14ad7b7f29d2ad1b9fba75b4a15f4c91367->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render()
     (vendor/twig/twig/src/TemplateWrapper.php:45)
  at Twig\TemplateWrapper->render()
     (vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:258)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:266)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render()
     (src/Aviatur/ContentBundle/Controller/ContentController.php:1613)
  at Aviatur\ContentBundle\Controller\ContentController->viewAction()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (web/index.php:24)