https://dev.salvana.com/navigation/7aa8ee8861b64234908c6d81dcb221c7

Exceptions

Unknown "current_pic_src" function.

  • Exception
  • Logs
  • Stack Trace

Twig\Error\ SyntaxError

  1. {% block element_pic_src %}
  2.     {%  set config = element.fieldConfig.elements %}
  3.     <div class="cms-element-{{ element.type }}">
  4.         {% if config.global.value == true %}
  5.             {% set picSrc = current_pic_src(page) %}
  6.         {% else %}
  7.             {% set picSrc = pic_src() %}
  8.         {% endif %}
  9.         {% if picSrc|length > 0 %}
  10.             <h5 class="h5">{{ config.title.value|raw }}</h5>
in vendor/twig/twig/src/ExpressionParser.php -> getFunctionNodeClass (line 457)
  1.                     return $node;
  2.                 }
  3.                 $args $this->parseArguments(true);
  4.                 $class $this->getFunctionNodeClass($name$line);
  5.                 return new $class($name$args$line);
  6.         }
  7.     }
in vendor/twig/twig/src/ExpressionParser.php -> getFunctionNode (line 235)
  1.                         $node = new ConstantExpression(null$token->getLine());
  2.                         break;
  3.                     default:
  4.                         if ('(' === $this->parser->getCurrentToken()->getValue()) {
  5.                             $node $this->getFunctionNode($token->getValue(), $token->getLine());
  6.                         } else {
  7.                             $node = new NameExpression($token->getValue(), $token->getLine());
  8.                         }
  9.                 }
  10.                 break;
in vendor/twig/twig/src/ExpressionParser.php -> parsePrimaryExpression (line 175)
  1.             $this->parser->getStream()->expect(/* Token::PUNCTUATION_TYPE */ 9')''An opened parenthesis is not properly closed');
  2.             return $this->parsePostfixExpression($expr);
  3.         }
  4.         return $this->parsePrimaryExpression();
  5.     }
  6.     private function parseConditionalExpression($expr): AbstractExpression
  7.     {
  8.         while ($this->parser->getStream()->nextIf(/* Token::PUNCTUATION_TYPE */ 9'?')) {
  1.     {
  2.         if ($allowArrow && $arrow $this->parseArrow()) {
  3.             return $arrow;
  4.         }
  5.         $expr $this->getPrimary();
  6.         $token $this->parser->getCurrentToken();
  7.         while ($this->isBinary($token) && $this->binaryOperators[$token->getValue()]['precedence'] >= $precedence) {
  8.             $op $this->binaryOperators[$token->getValue()];
  9.             $this->parser->getStream()->next();
in vendor/twig/twig/src/ExpressionParser.php -> parseExpression (line 674)
  1.     public function parseMultitargetExpression()
  2.     {
  3.         $targets = [];
  4.         while (true) {
  5.             $targets[] = $this->parseExpression();
  6.             if (!$this->parser->getStream()->nextIf(/* Token::PUNCTUATION_TYPE */ 9',')) {
  7.                 break;
  8.             }
  9.         }
in vendor/twig/twig/src/TokenParser/SetTokenParser.php -> parseMultitargetExpression (line 41)
  1.         $stream $this->parser->getStream();
  2.         $names $this->parser->getExpressionParser()->parseAssignmentExpression();
  3.         $capture false;
  4.         if ($stream->nextIf(/* Token::OPERATOR_TYPE */ 8'=')) {
  5.             $values $this->parser->getExpressionParser()->parseMultitargetExpression();
  6.             $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
  7.             if (\count($names) !== \count($values)) {
  8.                 throw new SyntaxError('When using set, you must have the same number of variables and assignments.'$stream->getCurrent()->getLine(), $stream->getSourceContext());
in vendor/twig/twig/src/Parser.php -> parse (line 170)
  1.                     }
  2.                     $this->stream->next();
  3.                     $subparser->setParser($this);
  4.                     $node $subparser->parse($token);
  5.                     if (null !== $node) {
  6.                         $rv[] = $node;
  7.                     }
  8.                     break;
  1.     {
  2.         $lineno $token->getLine();
  3.         $expr $this->parser->getExpressionParser()->parseExpression();
  4.         $stream $this->parser->getStream();
  5.         $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
  6.         $body $this->parser->subparse([$this'decideIfFork']);
  7.         $tests = [$expr$body];
  8.         $else null;
  9.         $end false;
  10.         while (!$end) {
in vendor/twig/twig/src/Parser.php -> parse (line 170)
  1.                     }
  2.                     $this->stream->next();
  3.                     $subparser->setParser($this);
  4.                     $node $subparser->parse($token);
  5.                     if (null !== $node) {
  6.                         $rv[] = $node;
  7.                     }
  8.                     break;
  1.         $this->parser->setBlock($name$block = new BlockNode($name, new Node([]), $lineno));
  2.         $this->parser->pushLocalScope();
  3.         $this->parser->pushBlockStack($name);
  4.         if ($stream->nextIf(/* Token::BLOCK_END_TYPE */ 3)) {
  5.             $body $this->parser->subparse([$this'decideBlockEnd'], true);
  6.             if ($token $stream->nextIf(/* Token::NAME_TYPE */ 5)) {
  7.                 $value $token->getValue();
  8.                 if ($value != $name) {
  9.                     throw new SyntaxError(sprintf('Expected endblock for block "%s" (but "%s" given).'$name$value), $stream->getCurrent()->getLine(), $stream->getSourceContext());
in vendor/twig/twig/src/Parser.php -> parse (line 170)
  1.                     }
  2.                     $this->stream->next();
  3.                     $subparser->setParser($this);
  4.                     $node $subparser->parse($token);
  5.                     if (null !== $node) {
  6.                         $rv[] = $node;
  7.                     }
  8.                     break;
in vendor/twig/twig/src/Parser.php -> subparse (line 83)
  1.         $this->blockStack = [];
  2.         $this->importedSymbols = [[]];
  3.         $this->embeddedTemplates = [];
  4.         try {
  5.             $body $this->subparse($test$dropNeedle);
  6.             if (null !== $this->parent && null === $body $this->filterBodyNodes($body)) {
  7.                 $body = new Node();
  8.             }
  9.         } catch (SyntaxError $e) {
  1.     {
  2.         if (null === $this->parser) {
  3.             $this->parser = new Parser($this);
  4.         }
  5.         return $this->parser->parse($stream);
  6.     }
  7.     public function setCompiler(Compiler $compiler)
  8.     {
  9.         $this->compiler $compiler;
  1.      * @throws SyntaxError When there was an error during tokenizing, parsing or compiling
  2.      */
  3.     public function compileSource(Source $source): string
  4.     {
  5.         try {
  6.             return $this->compile($this->parse($this->tokenize($source)));
  7.         } catch (Error $e) {
  8.             $e->setSourceContext($source);
  9.             throw $e;
  10.         } catch (\Exception $e) {
  11.             throw new SyntaxError(sprintf('An exception has been thrown during the compilation of a template ("%s").'$e->getMessage()), -1$source$e);
in vendor/twig/twig/src/Environment.php -> compileSource (line 348)
  1.             }
  2.             $source null;
  3.             if (!class_exists($clsfalse)) {
  4.                 $source $this->getLoader()->getSourceContext($name);
  5.                 $content $this->compileSource($source);
  6.                 $this->cache->write($key$content);
  7.                 $this->cache->load($key);
  8.                 if (!class_exists($mainClsfalse)) {
  9.                     /* Last line of defense if either $this->bcWriteCacheFile was used,
in vendor/twig/twig/src/Template.php -> loadTemplate (line 322)
  1.                 }
  2.             } else {
  3.                 $class $this->env->getTemplateClass($template);
  4.             }
  5.             return $this->env->loadTemplate($class$template$index);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($templateName ? new Source(''$templateName) : $this->getSourceContext());
  9.             }
  1.             $__internal_compile_0 =             ((function () use ($context$blocks) {
  2.                 $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  3.                 $includeTemplate $finder->find((("@Storefront/storefront/element/cms-element-" sw_get_attribute($this->env$this->source, ($context["element"] ?? null), "type", [], "any"falsefalsefalse7)) . ".html.twig"));
  4.                 return $this->loadTemplate($includeTemplate ?? null"@Storefront/storefront/block/cms-block-text.html.twig"7);
  5.             })());
  6.         } catch (LoaderError $e) {
  7.             // ignore missing template
  8.         }
  9.         if ($__internal_compile_0) {
  1.                 $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  2.                 $includeTemplate $finder->find((("@Storefront/storefront/element/cms-element-" sw_get_attribute($this->env$this->source, ($context["element"] ?? null), "type", [], "any"falsefalsefalse7)) . ".html.twig"));
  3.                 return $this->loadTemplate($includeTemplate ?? null"@Storefront/storefront/block/cms-block-text.html.twig"7);
  4.             })());
  5.         } catch (LoaderError $e) {
  6.             // ignore missing template
  7.         }
  8.         if ($__internal_compile_0) {
  9.             $__internal_compile_0->display($context);
in vendor/twig/twig/src/Template.php -> block_block_text_inner (line 171)
  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 5
  2.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["element"] ?? null), "id", [], "any"falsefalsefalse5), "html"nulltrue);
  3.         echo "\">
  4.         ";
  5.         // line 6
  6.         $this->displayBlock('block_text_inner'$context$blocks);
  7.         // line 9
  8.         echo "    </div>
  9. ";
  10.         
  11.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> block_block_text (line 171)
  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.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/block/cms-block-text.html.twig"));
  3.         // line 1
  4.         $this->displayBlock('block_text'$context$blocks);
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  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 367)
  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.         } catch (LoaderError $e) {
  3.             // ignore missing template
  4.         }
  5.         if ($__internal_compile_0) {
  6.             $__internal_compile_0->display($context);
  7.         }
  8.         // line 72
  9.         echo "                    </div>
  10.                 ";
  11.         
in vendor/twig/twig/src/Template.php -> block_section_content_block_row (line 171)
  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.         }
  2.         echo "\">
  3.                 ";
  4.         // line 69
  5.         $this->displayBlock('section_content_block_row'$context$blocks);
  6.         // line 74
  7.         echo "            </div>
  8.         ";
  9.         
  10.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> block_section_content_block_container (line 171)
  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('section_content_block_background_image'$context$blocks);
  2.         // line 64
  3.         echo "
  4.         ";
  5.         // line 65
  6.         $this->displayBlock('section_content_block_container'$context$blocks);
  7.         // line 76
  8.         echo "    </div>
  9. ";
  10.         
  11.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> block_section_content_block (line 171)
  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.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/section/cms-section-block-container.html.twig"));
  3.         // line 1
  4.         $this->displayBlock('section_content_block'$context$blocks);
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  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 367)
  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(), "block""section_default_content_block"));
  3.         // line 12
  4.         echo "                ";
  5.         $this->loadTemplate("@Storefront/storefront/section/cms-section-block-container.html.twig""@SalvanaPferde2022/storefront/section/cms-section-default.html.twig"12)->display($context);
  6.         // line 13
  7.         echo "            ";
  8.         
  9.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> block_section_default_content_block (line 171)
  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.         foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  2.             // line 10
  3.             echo "
  4.             ";
  5.             // line 11
  6.             $this->displayBlock('section_default_content_block'$context$blocks);
  7.             // line 14
  8.             echo "        ";
  9.             ++$context['loop']['index0'];
  10.             ++$context['loop']['index'];
  11.             $context['loop']['first'] = false;
in vendor/twig/twig/src/Template.php -> block_page_content_section_default (line 171)
  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.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SalvanaPferde2022/storefront/section/cms-section-default.html.twig"));
  3.         // line 1
  4.         $this->displayBlock('page_content_section_default'$context$blocks);
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  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 367)
  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.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  2.             $includeTemplate $finder->find((("@Storefront/storefront/section/cms-section-" sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "type", [], "any"falsefalsefalse24)) . ".html.twig"));
  3.             return $this->loadTemplate($includeTemplate ?? null"@SalvanaPferde2022/storefront/page/content/detail.html.twig"24);
  4.         })())->display($context);
  5.         // line 25
  6.         echo "        </div>
  7.       ";
  8.         
  9.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> block_page_content_section (line 171)
  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.             }
  2.             // line 19
  3.             echo "
  4.       ";
  5.             // line 20
  6.             $this->displayBlock('page_content_section'$context$blocks);
  7.             // line 27
  8.             echo "    ";
  9.             ++$context['loop']['index0'];
  10.             ++$context['loop']['index'];
  11.             $context['loop']['first'] = false;
in vendor/twig/twig/src/Template.php -> block_page_content_sections_inner (line 171)
  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.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/page/content/detail.html.twig"));
  3.         // line 3
  4.         $this->displayBlock('page_content_sections_inner'$context$blocks);
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  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 367)
  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""@SalvanaPferde2022/storefront/page/content/detail.html.twig"));
  3.         $this->parent $this->loadTemplate("@Storefront/storefront/page/content/detail.html.twig""@SalvanaPferde2022/storefront/page/content/detail.html.twig"2);
  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);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  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 367)
  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(), "block""page_content_blocks"));
  3.         // line 43
  4.         echo "      ";
  5.         $this->loadTemplate("@SalvanaPferde2022/storefront/page/content/detail.html.twig""@SalvanaPferde2022/storefront/page/content/index.html.twig"43)->display(twig_array_merge($context, ["cmsPage" => sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cmsPage", [], "any"falsefalsefalse43)]));
  6.         // line 44
  7.         echo "    ";
  8.         
  9.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> block_page_content_blocks (line 171)
  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 40
  2.         echo "
  3.   <div class=\"cms-page\">
  4.     ";
  5.         // line 42
  6.         $this->displayBlock('page_content_blocks'$context$blocks);
  7.         // line 45
  8.         echo "  </div>
  9. ";
  10.         
  11.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> block_page_content (line 171)
  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 5
  2.         echo "    <div class=\"container-main\">
  3.         ";
  4.         // line 6
  5.         $this->displayBlock('page_content'$context$blocks);
  6.         // line 33
  7.         echo "    </div>
  8. ";
  9.         
  10.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> block_base_main_inner (line 171)
  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('base_flashbags'$context$blocks);
  2.         // line 68
  3.         echo "
  4.                 ";
  5.         // line 69
  6.         $this->displayBlock('base_main_inner'$context$blocks);
  7.         // line 86
  8.         echo "            </main>
  9.         ";
  10.         
  11.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> block_base_main (line 171)
  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('base_offcanvas_navigation'$context$blocks);
  2.         // line 58
  3.         echo "
  4.         ";
  5.         // line 59
  6.         $this->displayBlock('base_main'$context$blocks);
  7.         // line 88
  8.         echo "
  9.         ";
  10.         // line 89
  11.         $this->displayBlock('base_footer'$context$blocks);
in vendor/twig/twig/src/Template.php -> block_base_body_inner (line 171)
  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('base_body_classes'$context$blocks);
  2.         echo "\">
  3.     ";
  4.         // line 21
  5.         $this->displayBlock('base_body_inner'$context$blocks);
  6.         // line 97
  7.         echo "
  8.     ";
  9.         // line 98
  10.         $this->displayBlock('base_scroll_up'$context$blocks);
in vendor/twig/twig/src/Template.php -> block_base_body (line 171)
  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('base_head'$context$blocks);
  2.         // line 17
  3.         echo "
  4. ";
  5.         // line 18
  6.         $this->displayBlock('base_body'$context$blocks);
  7.         // line 207
  8.         echo "</html>
  9. ";
  10.         
  11.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  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 367)
  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""@Storefront/storefront/page/content/index.html.twig"));
  3.         $this->parent $this->loadTemplate("@SalvanaPferde2022/storefront/base.html.twig""@Storefront/storefront/page/content/index.html.twig"2);
  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);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  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 367)
  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""@SalvanaPferde2022/storefront/page/content/index.html.twig"));
  3.         $this->parent $this->loadTemplate("@Storefront/storefront/page/content/index.html.twig""@SalvanaPferde2022/storefront/page/content/index.html.twig"2);
  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);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  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 367)
  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 379)
  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.     public function render(array $context = []): string
  2.     {
  3.         // using func_get_args() allows to not expose the blocks argument
  4.         // as it should only be used by internal code
  5.         return $this->template->render($context, \func_get_args()[1] ?? []);
  6.     }
  7.     public function display(array $context = [])
  8.     {
  9.         // using func_get_args() allows to not expose the blocks argument
  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.     protected function renderView(string $view, array $parameters = []): string
  2.     {
  3.         $view $this->getTemplateFinder()->find($view);
  4.         if (isset($this->twig)) {
  5.             return $this->twig->render($view$parameters);
  6.         }
  7.         Feature::triggerDeprecationOrThrow(
  8.             'v6.5.0.0',
  9.             sprintf('Class %s does not have twig injected. Add to your service definition a method call to setTwig with the twig instance', static::class)
  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.         if ($iconCacheEnabled || (Feature::isActive('v6.5.0.0') && $iconCacheEnabled === null)) {
  2.             IconCacheTwigFilter::enable();
  3.         }
  4.         $response Profiler::trace('twig-rendering', function () use ($view$event) {
  5.             return $this->render($view$event->getParameters(), new StorefrontResponse());
  6.         });
  7.         /** @deprecated tag:v6.5.0 - icon cache will be true by default. */
  8.         if ($iconCacheEnabled || (Feature::isActive('v6.5.0.0') && $iconCacheEnabled === null)) {
  9.             IconCacheTwigFilter::disable();
in vendor/shopware/core/Profiling/Profiler.php -> Shopware\Storefront\Controller\{closure} (line 59)
  1.         try {
  2.             foreach (self::$profilers as $profiler) {
  3.                 $profiler->start($name$category$tags);
  4.             }
  5.             $result $closure();
  6.         } finally {
  7.             foreach (self::$profilers as $profiler) {
  8.                 $profiler->stop($name);
  9.             }
  10.         }
  1.             IconCacheTwigFilter::enable();
  2.         }
  3.         $response Profiler::trace('twig-rendering', function () use ($view$event) {
  4.             return $this->render($view$event->getParameters(), new StorefrontResponse());
  5.         });
  6.         /** @deprecated tag:v6.5.0 - icon cache will be true by default. */
  7.         if ($iconCacheEnabled || (Feature::isActive('v6.5.0.0') && $iconCacheEnabled === null)) {
  8.             IconCacheTwigFilter::disable();
  9.         }
  1.     {
  2.         $page $this->navigationPageLoader->load($request$context);
  3.         $this->hook(new NavigationPageLoadedHook($page$context));
  4.         return $this->renderStorefront('@Storefront/storefront/page/content/index.html.twig', ['page' => $page]);
  5.     }
  6.     /**
  7.      * @Since("6.0.0.0")
  8.      * @HttpCache()
  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.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.         if ($this->surrogate) {
  2.             $this->surrogate->addSurrogateCapability($request);
  3.         }
  4.         // always a "master" request (as the real master request can be in cache)
  5.         $response SubRequestHandler::handle($this->kernel$requestHttpKernelInterface::MAIN_REQUEST$catch);
  6.         /*
  7.          * Support stale-if-error given on Responses or as a config option.
  8.          * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
  9.          * Cache-Control directives) that
  1.         // avoid that the backend sends no content
  2.         $subRequest->headers->remove('If-Modified-Since');
  3.         $subRequest->headers->remove('If-None-Match');
  4.         $response $this->forward($subRequest$catch);
  5.         if ($response->isCacheable()) {
  6.             $this->store($request$response);
  7.         }
  1.         }
  2.         if (null === $entry) {
  3.             $this->record($request'miss');
  4.             return $this->fetch($request$catch);
  5.         }
  6.         if (!$this->isFreshEnough($request$entry)) {
  7.             $this->record($request'stale');
  1.                 reload the cache by fetching a fresh response and caching it (if possible).
  2.             */
  3.             $this->record($request'reload');
  4.             $response $this->fetch($request$catch);
  5.         } else {
  6.             $response $this->lookup($request$catch);
  7.         }
  8.         $this->restoreResponseBody($request$response);
  9.         if (HttpKernelInterface::MAIN_REQUEST === $type) {
  1.             && $container->getParameter('shopware.http.cache.enabled');
  2.         if ($enabled && $container->has(CacheStore::class)) {
  3.             $kernel = new static::$httpCacheClass($kernel$container->get(CacheStore::class), null, ['debug' => $this->debug]);
  4.         }
  5.         $response $kernel->handle($transformed$type$catch);
  6.         // fire event to trigger runtime events like seo url headers
  7.         $event = new BeforeSendResponseEvent($transformed$response);
  8.         $container->get('event_dispatcher')->dispatch($event);
in vendor/shopware/core/HttpKernel.php -> doHandle (line 81)
  1.         if (!\is_bool($catch)) {
  2.             Feature::triggerDeprecationOrThrow('v6.5.0.0''The third parameter `$catch` of `HttpKernel->handle()` will be typed to `bool`');
  3.         }
  4.         try {
  5.             return $this->doHandle($request, (int) $type, (bool) $catch);
  6.         } catch (Exception $e) {
  7.             /** @var Params|array{url?: string} $connectionParams */
  8.             $connectionParams self::getConnection()->getParams();
  9.             $message str_replace([$connectionParams['url'] ?? null$connectionParams['password'] ?? null$connectionParams['user'] ?? null], '******'$e->getMessage());
HttpKernel->handle(object(Request)) in public/index.php (line 85)
  1.     }
  2. } else {
  3.     $kernel = new InstallerKernel($appEnv$debug);
  4. }
  5. $result $kernel->handle($request);
  6. if ($result instanceof Response) {
  7.     $result->send();
  8.     $kernel->terminate($request$result);
  9. } else {