| exception |
Sylius\TwigHooks\Hookable\Renderer\Exception\HookRenderException {#7664
#message: "An error occurred during rendering the "products" hook in the "sylius_shop.product.index.content.body.main" hookable. An exception has been thrown during the rendering of a template ("Product variant S (Quantum_Pulse_T_Shirt-variant-0) has no price defined for channel Fashion Web Store") in "@SyliusShop/product/index/content/body/main/products.html.twig" at line 8 in "@SyliusShop/product/index/content/body/main/products.html.twig" at line 8."
#code: 0
#file: "/var/www/html/vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/templates/product/index/content/body/main/products.html.twig"
#line: 8
-previous: Twig\Error\RuntimeError {#7793 …}
-lineno: 8
-rawMessage: "An error occurred during rendering the "products" hook in the "sylius_shop.product.index.content.body.main" hookable. An exception has been thrown during the rendering of a template ("Product variant S (Quantum_Pulse_T_Shirt-variant-0) has no price defined for channel Fashion Web Store") in "@SyliusShop/product/index/content/body/main/products.html.twig" at line 8."
-source: Twig\Source {#7758 …}
-phpFile: "/var/www/html/vendor/sylius/twig-hooks/src/Hookable/Renderer/HookableTemplateRenderer.php"
-phpLine: 54
trace: {
/var/www/html/vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/templates/product/index/content/body/main/products.html.twig:8 {
Sylius\TwigHooks\Hookable\Renderer\HookableTemplateRenderer->render(AbstractHookable $hookable, HookableMetadata $metadata): string …
› {% for product in resources.data %}
› {{ component('sylius_shop:product:card', { product: product, template: hookable_metadata.configuration.product_template|default('@SyliusShop/product/common/card.html.twig'), hookableMetadata: hookable_metadata }) }}
› {% endfor %}
}
/var/www/html/vendor/sylius/twig-hooks/src/Hookable/Renderer/CompositeHookableRenderer.php:45 {
Sylius\TwigHooks\Hookable\Renderer\CompositeHookableRenderer->render(AbstractHookable $hookable, HookableMetadata $metadata): string …
› if ($renderer->supports($hookable)) {
› return $renderer->render($hookable, $metadata);
› }
arguments: {
$hookable: Sylius\TwigHooks\Hookable\HookableTemplate {#6537 …}
$metadata: Sylius\TwigHooks\Hookable\Metadata\HookableMetadata {#6963 …}
}
}
/var/www/html/vendor/sylius/twig-hooks/src/Hook/Renderer/HookRenderer.php:58 {
Sylius\TwigHooks\Hook\Renderer\HookRenderer->render(array $hookNames, array $hookContext = []): string …
›
› $renderedHookables[] = $this->compositeHookableRenderer->render($hookable, $hookableMetadata);
› }
arguments: {
$hookable: Sylius\TwigHooks\Hookable\HookableTemplate {#6537 …}
$metadata: Sylius\TwigHooks\Hookable\Metadata\HookableMetadata {#6961 …}
}
}
/var/www/html/vendor/sylius/twig-hooks/src/Twig/Runtime/HooksRuntime.php:116 {
Sylius\TwigHooks\Twig\Runtime\HooksRuntime->renderHook(array|string $hookNames, array $hookContext = [], array $twigVars = [], bool $only = false): string …
›
› return $this->hookRenderer->render($prefixedHookNames, $context);
› }
arguments: {
$hookNames: [ …1]
$hookContext: [ …11]
}
}
/var/www/html/var/cache/dev/twig/ab/ab75d407b0d814a46f569a66d314bf07.php:49 {
__TwigTemplate_2f2728db878a9379983280b72fe322c6->doDisplay(array $context, array $blocks = []): iterable …
› $hooksRuntime = $this->env->getRuntime('Sylius\TwigHooks\Twig\Runtime\HooksRuntime');
› echo $hooksRuntime->renderHook("main", [], $context, false);
› // line 3
arguments: {
$hookNames: [ …1]
$hookContext: []
$twigVars: [ …5]
$only: false
}
}
/var/www/html/vendor/twig/twig/src/Template.php:402 {
Twig\Template->yield(array $context, array $blocks = []): iterable …
› try {
› yield from $this->doDisplay($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: [ …9]
$blocks: [ …1]
}
}
/var/www/html/vendor/twig/twig/src/Template.php:358 {
Twig\Template->display(array $context, array $blocks = []): void …
› {
› foreach ($this->yield($context, $blocks) as $data) {
› echo $data;
arguments: {
$context: [ …9]
$blocks: [ …1]
}
}
/var/www/html/vendor/twig/twig/src/Template.php:373 {
Twig\Template->render(array $context): string …
› try {
› $this->display($context);
› } catch (\Throwable $e) {
arguments: {
$context: [ …4]
}
}
/var/www/html/vendor/twig/twig/src/TemplateWrapper.php:51 {
Twig\TemplateWrapper->render(array $context = []): string …
› {
› return $this->template->render($context);
› }
arguments: {
$context: [ …4]
}
}
/var/www/html/vendor/twig/twig/src/Environment.php:333 {
Twig\Environment->render($name, array $context = []): string …
› {
› return $this->load($name)->render($context);
› }
arguments: {
$context: [ …4]
}
}
/var/www/html/vendor/sylius/twig-hooks/src/Hookable/Renderer/HookableTemplateRenderer.php:48 {
Sylius\TwigHooks\Hookable\Renderer\HookableTemplateRenderer->render(AbstractHookable $hookable, HookableMetadata $metadata): string …
›
› return $this->twig->render($hookable->template, [
› HooksRuntime::HOOKABLE_METADATA => $metadata,
arguments: {
$name: "@SyliusShop/product/index/content.html.twig"
$context: [ …1]
}
}
/var/www/html/vendor/sylius/twig-hooks/src/Hookable/Renderer/CompositeHookableRenderer.php:45 {
Sylius\TwigHooks\Hookable\Renderer\CompositeHookableRenderer->render(AbstractHookable $hookable, HookableMetadata $metadata): string …
› if ($renderer->supports($hookable)) {
› return $renderer->render($hookable, $metadata);
› }
arguments: {
$hookable: Sylius\TwigHooks\Hookable\HookableTemplate {#6537 …}
$metadata: Sylius\TwigHooks\Hookable\Metadata\HookableMetadata {#6963 …}
}
}
/var/www/html/vendor/sylius/twig-hooks/src/Hook/Renderer/HookRenderer.php:58 {
Sylius\TwigHooks\Hook\Renderer\HookRenderer->render(array $hookNames, array $hookContext = []): string …
›
› $renderedHookables[] = $this->compositeHookableRenderer->render($hookable, $hookableMetadata);
› }
arguments: {
$hookable: Sylius\TwigHooks\Hookable\HookableTemplate {#6537 …}
$metadata: Sylius\TwigHooks\Hookable\Metadata\HookableMetadata {#6961 …}
}
}
/var/www/html/vendor/sylius/twig-hooks/src/Twig/Runtime/HooksRuntime.php:116 {
Sylius\TwigHooks\Twig\Runtime\HooksRuntime->renderHook(array|string $hookNames, array $hookContext = [], array $twigVars = [], bool $only = false): string …
›
› return $this->hookRenderer->render($prefixedHookNames, $context);
› }
arguments: {
$hookNames: [ …1]
$hookContext: [ …11]
}
}
/var/www/html/var/cache/dev/twig/a8/a833dd06152842e24d52df752ce5f807.php:49 {
__TwigTemplate_f9be8238fb44d4c1d241a77e8f1738f0->doDisplay(array $context, array $blocks = []): iterable …
› $hooksRuntime = $this->env->getRuntime('Sylius\TwigHooks\Twig\Runtime\HooksRuntime');
› echo $hooksRuntime->renderHook("body", [], $context, false);
› // line 3
arguments: {
$hookNames: [ …1]
$hookContext: []
$twigVars: [ …5]
$only: false
}
}
/var/www/html/vendor/twig/twig/src/Template.php:402 {
Twig\Template->yield(array $context, array $blocks = []): iterable …
› try {
› yield from $this->doDisplay($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: [ …9]
$blocks: [ …1]
}
}
/var/www/html/vendor/twig/twig/src/Template.php:358 {
Twig\Template->display(array $context, array $blocks = []): void …
› {
› foreach ($this->yield($context, $blocks) as $data) {
› echo $data;
arguments: {
$context: [ …9]
$blocks: [ …1]
}
}
/var/www/html/vendor/twig/twig/src/Template.php:373 {
Twig\Template->render(array $context): string …
› try {
› $this->display($context);
› } catch (\Throwable $e) {
arguments: {
$context: [ …4]
}
}
/var/www/html/vendor/twig/twig/src/TemplateWrapper.php:51 {
Twig\TemplateWrapper->render(array $context = []): string …
› {
› return $this->template->render($context);
› }
arguments: {
$context: [ …4]
}
}
/var/www/html/vendor/twig/twig/src/Environment.php:333 {
Twig\Environment->render($name, array $context = []): string …
› {
› return $this->load($name)->render($context);
› }
arguments: {
$context: [ …4]
}
}
/var/www/html/vendor/sylius/twig-hooks/src/Hookable/Renderer/HookableTemplateRenderer.php:48 {
Sylius\TwigHooks\Hookable\Renderer\HookableTemplateRenderer->render(AbstractHookable $hookable, HookableMetadata $metadata): string …
›
› return $this->twig->render($hookable->template, [
› HooksRuntime::HOOKABLE_METADATA => $metadata,
arguments: {
$name: "@SyliusShop/product/index/content.html.twig"
$context: [ …1]
}
}
/var/www/html/vendor/sylius/twig-hooks/src/Hookable/Renderer/CompositeHookableRenderer.php:45 {
Sylius\TwigHooks\Hookable\Renderer\CompositeHookableRenderer->render(AbstractHookable $hookable, HookableMetadata $metadata): string …
› if ($renderer->supports($hookable)) {
› return $renderer->render($hookable, $metadata);
› }
arguments: {
$hookable: Sylius\TwigHooks\Hookable\HookableTemplate {#6537 …}
$metadata: Sylius\TwigHooks\Hookable\Metadata\HookableMetadata {#6963 …}
}
}
/var/www/html/vendor/sylius/twig-hooks/src/Hook/Renderer/HookRenderer.php:58 {
Sylius\TwigHooks\Hook\Renderer\HookRenderer->render(array $hookNames, array $hookContext = []): string …
›
› $renderedHookables[] = $this->compositeHookableRenderer->render($hookable, $hookableMetadata);
› }
arguments: {
$hookable: Sylius\TwigHooks\Hookable\HookableTemplate {#6537 …}
$metadata: Sylius\TwigHooks\Hookable\Metadata\HookableMetadata {#6961 …}
}
}
/var/www/html/vendor/sylius/twig-hooks/src/Twig/Runtime/HooksRuntime.php:116 {
Sylius\TwigHooks\Twig\Runtime\HooksRuntime->renderHook(array|string $hookNames, array $hookContext = [], array $twigVars = [], bool $only = false): string …
›
› return $this->hookRenderer->render($prefixedHookNames, $context);
› }
arguments: {
$hookNames: [ …1]
$hookContext: [ …11]
}
}
/var/www/html/var/cache/dev/twig/97/971cdb8e19dd41eb5801c7f9d9b3e789.php:49 {
__TwigTemplate_58a719bdf2d7b34e825ca902af49daf3->doDisplay(array $context, array $blocks = []): iterable …
› $hooksRuntime = $this->env->getRuntime('Sylius\TwigHooks\Twig\Runtime\HooksRuntime');
› echo $hooksRuntime->renderHook("content", [], $context, false);
› // line 3
arguments: {
$hookNames: [ …1]
$hookContext: []
$twigVars: [ …5]
$only: false
}
}
/var/www/html/vendor/twig/twig/src/Template.php:402 {
Twig\Template->yield(array $context, array $blocks = []): iterable …
› try {
› yield from $this->doDisplay($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: [ …9]
$blocks: [ …1]
}
}
/var/www/html/vendor/twig/twig/src/Template.php:358 {
Twig\Template->display(array $context, array $blocks = []): void …
› {
› foreach ($this->yield($context, $blocks) as $data) {
› echo $data;
arguments: {
$context: [ …9]
$blocks: [ …1]
}
}
/var/www/html/vendor/twig/twig/src/Template.php:373 {
Twig\Template->render(array $context): string …
› try {
› $this->display($context);
› } catch (\Throwable $e) {
arguments: {
$context: [ …4]
}
}
/var/www/html/vendor/twig/twig/src/TemplateWrapper.php:51 {
Twig\TemplateWrapper->render(array $context = []): string …
› {
› return $this->template->render($context);
› }
arguments: {
$context: [ …4]
}
}
/var/www/html/vendor/twig/twig/src/Environment.php:333 {
Twig\Environment->render($name, array $context = []): string …
› {
› return $this->load($name)->render($context);
› }
arguments: {
$context: [ …4]
}
}
/var/www/html/vendor/sylius/twig-hooks/src/Hookable/Renderer/HookableTemplateRenderer.php:48 {
Sylius\TwigHooks\Hookable\Renderer\HookableTemplateRenderer->render(AbstractHookable $hookable, HookableMetadata $metadata): string …
›
› return $this->twig->render($hookable->template, [
› HooksRuntime::HOOKABLE_METADATA => $metadata,
arguments: {
$name: "@SyliusShop/product/index/content.html.twig"
$context: [ …1]
}
}
/var/www/html/vendor/sylius/twig-hooks/src/Hookable/Renderer/CompositeHookableRenderer.php:45 {
Sylius\TwigHooks\Hookable\Renderer\CompositeHookableRenderer->render(AbstractHookable $hookable, HookableMetadata $metadata): string …
› if ($renderer->supports($hookable)) {
› return $renderer->render($hookable, $metadata);
› }
arguments: {
$hookable: Sylius\TwigHooks\Hookable\HookableTemplate {#6537 …}
$metadata: Sylius\TwigHooks\Hookable\Metadata\HookableMetadata {#6963 …}
}
}
/var/www/html/vendor/sylius/twig-hooks/src/Hook/Renderer/HookRenderer.php:58 {
Sylius\TwigHooks\Hook\Renderer\HookRenderer->render(array $hookNames, array $hookContext = []): string …
›
› $renderedHookables[] = $this->compositeHookableRenderer->render($hookable, $hookableMetadata);
› }
arguments: {
$hookable: Sylius\TwigHooks\Hookable\HookableTemplate {#6537 …}
$metadata: Sylius\TwigHooks\Hookable\Metadata\HookableMetadata {#6961 …}
}
}
/var/www/html/vendor/sylius/twig-hooks/src/Twig/Runtime/HooksRuntime.php:104 {
Sylius\TwigHooks\Twig\Runtime\HooksRuntime->renderHook(array|string $hookNames, array $hookContext = [], array $twigVars = [], bool $only = false): string …
› if (false === $this->enableAutoprefixing || [] === $prefixes) {
› return $this->hookRenderer->render($hookNames, $context);
› }
arguments: {
$hookNames: [ …1]
$hookContext: [ …11]
}
}
/var/www/html/var/cache/dev/twig/72/7240d697d3c909cdffd2df6b1d6b4e86.php:69 {
__TwigTemplate_b0018823c6aad3217bbf60a467a06607->block_content(array $context, array $blocks = []): iterable …
› $hooksRuntime = $this->env->getRuntime('Sylius\TwigHooks\Twig\Runtime\HooksRuntime');
› echo $hooksRuntime->renderHook("sylius_shop.product.index", ["products" => ($context["products"] ?? null), "resources" => ($context["resources"] ?? null)], $context, false);
›
arguments: {
$hookNames: [ …1]
$hookContext: [ …2]
$twigVars: [ …11]
$only: false
}
}
/var/www/html/vendor/twig/twig/src/Template.php:446 {
Twig\Template->yieldBlock($name, array $context, array $blocks = [], $useBlocks = true, ?self $templateContext = null): iterable …
› try {
› yield from $template->$block($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: [ …11]
$blocks: [ …8]
}
}
/var/www/html/var/cache/dev/twig/a6/a61503dc6d93b74f1fc376e9d0bbd539.php:207 {
__TwigTemplate_6bcf458743850aa55d65cc9ba2e0c86d->block_body(array $context, array $blocks = []): iterable …
› // line 31
› yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
› // line 32
arguments: {
$name: "content"
$context: [ …11]
$blocks: [ …8]
}
}
/var/www/html/vendor/twig/twig/src/Template.php:446 {
Twig\Template->yieldBlock($name, array $context, array $blocks = [], $useBlocks = true, ?self $templateContext = null): iterable …
› try {
› yield from $template->$block($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: [ …11]
$blocks: [ …8]
}
}
/var/www/html/var/cache/dev/twig/a6/a61503dc6d93b74f1fc376e9d0bbd539.php:100 {
__TwigTemplate_6bcf458743850aa55d65cc9ba2e0c86d->doDisplay(array $context, array $blocks = []): iterable …
› // line 24
› yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
› // line 39
arguments: {
$name: "body"
$context: [ …11]
$blocks: [ …8]
}
}
/var/www/html/vendor/twig/twig/src/Template.php:402 {
Twig\Template->yield(array $context, array $blocks = []): iterable …
› try {
› yield from $this->doDisplay($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: [ …9]
$blocks: [ …1]
}
}
/var/www/html/var/cache/dev/twig/72/7240d697d3c909cdffd2df6b1d6b4e86.php:50 {
__TwigTemplate_b0018823c6aad3217bbf60a467a06607->doDisplay(array $context, array $blocks = []): iterable …
› $this->parent = $this->load("@SyliusShop/shared/layout/base.html.twig", 1);
› yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
›
arguments: {
$context: [ …9]
$blocks: [ …8]
}
}
/var/www/html/vendor/twig/twig/src/Template.php:402 {
Twig\Template->yield(array $context, array $blocks = []): iterable …
› try {
› yield from $this->doDisplay($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: [ …9]
$blocks: [ …1]
}
}
/var/www/html/vendor/twig/twig/src/Template.php:358 {
Twig\Template->display(array $context, array $blocks = []): void …
› {
› foreach ($this->yield($context, $blocks) as $data) {
› echo $data;
arguments: {
$context: [ …9]
$blocks: [ …1]
}
}
/var/www/html/vendor/twig/twig/src/Template.php:373 {
Twig\Template->render(array $context): string …
› try {
› $this->display($context);
› } catch (\Throwable $e) {
arguments: {
$context: [ …4]
}
}
/var/www/html/vendor/twig/twig/src/TemplateWrapper.php:51 {
Twig\TemplateWrapper->render(array $context = []): string …
› {
› return $this->template->render($context);
› }
arguments: {
$context: [ …4]
}
}
/var/www/html/vendor/twig/twig/src/Environment.php:333 {
Twig\Environment->render($name, array $context = []): string …
› {
› return $this->load($name)->render($context);
› }
arguments: {
$context: [ …4]
}
}
/var/www/html/vendor/sylius/resource-bundle/src/Bundle/Controller/ControllerTrait.php:247 {
Sylius\Bundle\ResourceBundle\Controller\ResourceController->render(string $view, array $parameters = [], ?Response $response = null, ?int $responseCode = null): Response …
› } elseif ($this->container->has('twig')) {
› $content = $this->container->get('twig')->render($view, $parameters);
› } else {
arguments: {
$name: "@SyliusShop/product/index.html.twig"
$context: [ …4]
}
}
/var/www/html/vendor/sylius/resource-bundle/src/Bundle/Controller/ResourceController.php:150 {
Sylius\Bundle\ResourceBundle\Controller\ResourceController->indexAction(Request $request): Response …
› if ($configuration->isHtmlRequest()) {
› return $this->render($configuration->getTemplate(ResourceActions::INDEX . '.html'), [
› 'configuration' => $configuration,
arguments: {
$view: "@SyliusShop/product/index.html.twig"
$parameters: [ …4]
}
}
/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:183 {
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
› // call controller
› $response = $controller(...$arguments);
›
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#10 …}
}
}
/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:76 {
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
› try {
› return $response = $this->handleRaw($request, $type);
› } catch (\Throwable $e) {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#10 …}
$type: 1
}
}
/var/www/html/vendor/symfony/http-kernel/Kernel.php:182 {
Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
› try {
› return $this->getHttpKernel()->handle($request, $type, $catch);
› } finally {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#10 …}
$type: 1
$catch: true
}
}
/var/www/html/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
› {
› $response = $this->kernel->handle($this->request);
›
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#10 …}
}
}
/var/www/html/vendor/autoload_runtime.php:29 {
require_once …
› ->getRunner($app)
› ->run()
› );
}
/var/www/html/public/index.php:16 {
›
› require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
›
arguments: {
"/var/www/html/vendor/autoload_runtime.php"
}
}
}
} |