<form action ="#" class="search__engine clearfix search-flight js-searchForm js-searchFormFlight">
{% if cookieLastSearch is defined and cookieLastSearch != null %}
<div style="display:none">
<p id="js-cookieLastSearch-origin">{{ cookieLastSearch['origin1'] }}</p>
<p id="js-cookieLastSearch-destination">{{ cookieLastSearch['destination1'] }}</p>
<p id="js-cookieLastSearch-originLabel">{{ cookieLastSearch['originLabel1'] }}</p>
<p id="js-cookieLastSearch-destinationLabel">{{ cookieLastSearch['destinationLabel1'] }}</p>
<p id="js-cookieLastSearch-date1">{{ cookieLastSearch['date1'] }}</p>
<p id="js-cookieLastSearch-date2">{% if cookieLastSearch['date2'] is defined %}{{ cookieLastSearch['date2'] }}{% endif %}</p>
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))) {
// line 3
echo " <div style=\"display:none\">
<p id=\"js-cookieLastSearch-origin\">";
// line 4
echo twig_escape_filter($this->env, twig_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", false, false, false, 4), "html", null, true);
echo "</p>
<p id=\"js-cookieLastSearch-destination\">";
// line 5
echo twig_escape_filter($this->env, twig_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", false, false, false, 5), "html", null, true);
echo "</p>
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
";
// line 87
if ((twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 87), "has", [0 => "notEnableFlightSearch"], "method", false, false, false, 87) == 0)) {
// line 88
echo " ";
$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", false, false, false, 88)) . "/Search/Flight/flightSearch_engine.html.twig")), "@AviaturTwig/aviatur/Flux/Content/Content/promo.html.twig", 88)->display($context);
// line 89
echo " ";
}
// line 90
echo " </div>
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
$template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
echo "hidden-palm";
}
echo "\">
";
// line 84
$this->displayBlock('search_content', $context, $blocks);
// line 93
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
$template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
// line 104
echo "\t\t\t\t";
}
// line 105
echo "\t\t\t\t";
$this->displayBlock('searcher_header', $context, $blocks);
// line 106
echo "
\t\t\t</header>
\t\t";
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
$template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
if ( !array_key_exists("pdfGenerator", $context)) {
// line 39
echo "\t\t<!--[if (!IE)|(gt IE 8)]><!-->
\t\t";
// line 40
$this->displayBlock('header', $context, $blocks);
// line 110
echo "\t";
} else {
// line 111
echo "\t\t<section></section>
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
$template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
$this->displayBlock('overlay', $context, $blocks);
// line 693
echo "
";
// line 694
$this->displayBlock('base_content', $context, $blocks);
// line 725
echo "
";
// line 726
$this->displayBlock('javascripts', $context, $blocks);
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
// line 19
if ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile()) {
}
}
// line 1
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
// line 19
$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);
}
}
// line 1
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
*/
public function render(array $context = []): string
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
return $this->template->render($context, \func_get_args()[1] ?? []);
}
/**
* Displays the template.
*
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function render($name, array $context = [])
{
return $this->load($name)->render($context);
}
/**
* Displays a template.
*
{
if (!$this->container->has('twig')) {
throw new \LogicException('You cannot use the "renderView" method if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');
}
return $this->container->get('twig')->render($view, $parameters);
}
/**
* Renders a view.
*/
/**
* Renders a view.
*/
protected function render(string $view, array $parameters = [], Response $response = null): Response
{
$content = $this->renderView($view, $parameters);
if (null === $response) {
$response = new Response();
}
$ticketsPromos = [];
}
$promoType = 'vuelos-destinos';
}
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]);
} else {
// eg: {"type":"nuevo|general|revista-horizontes|informacion-aviatur","column":"si|no","description":"texto"}
$cookieArray = [];
foreach ($description as $key => $value) {
$cookieArray[$key] = $value;
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
{
$request = $this->container->get('request_stack')->getCurrentRequest();
$path['_controller'] = $controller;
$subRequest = $request->duplicate($query, null, $path);
return $this->container->get('http_kernel')->handle($subRequest, HttpKernelInterface::SUB_REQUEST);
}
/**
* Returns a RedirectResponse to the given URL.
*/
if ('_' !== \substr($param, 0, 1)) {
$route['_route_params'][$param] = $val;
}
}
return $this->forward($route['_controller'], $route);
} else {
throw $this->createNotFoundException('La página que solicitaste no existe o se ha movido permanentemente');
}
} else {
throw $this->createNotFoundException('La página que solicitaste no existe o se ha movido permanentemente');
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Request::setTrustedHosts([$trustedHosts]);
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
No log messages
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/framework-bundle/Controller/AbstractController.php:156) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->forward() (src/Aviatur/FlightBundle/Controller/FlightAvailabilityController.php:2891) at Aviatur\FlightBundle\Controller\FlightAvailabilityController->availabilitySeoAction() (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) |