Symfony Exception

TypeError

HTTP 500 Internal Server Error

Argument 1 passed to PriceHelper_2012e62::getPrice() must implement interface Sylius\Component\Core\Model\ProductVariantInterface, null given, called in /home/raritaneng/ecommerce/production/var/cache/prod/twig/8f/8f9093de7e4df3f90cb1f295132fcf5db2d7c2cad79d8c62ca60635c3c71f563.php on line 122

Exception

TypeError

  1.      */
  2.     private static $publicPropertiesceac3 = [
  3.         
  4.     ];
  5.     public function getPrice(\Sylius\Component\Core\Model\ProductVariantInterface $productVariant, array $context) : int
  6.     {
  7.         $this->initializerca4fd && ($this->initializerca4fd->__invoke($valueHolder24b4e$this'getPrice', array('productVariant' => $productVariant'context' => $context), $this->initializerca4fd) || 1) && $this->valueHolder24b4e $valueHolder24b4e;
  8.         return $this->valueHolder24b4e->getPrice($productVariant$context);
  9.     }
  1.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""calculatePrice"));
  2.             // line 12
  3.             $macros["__internal_1040d758fcc3022b61016f47d1b51cfecb06cfbf5d05569e057706187e1fec0c"] = $this;
  4.             // line 14
  5.             echo twig_call_macro($macros["__internal_1040d758fcc3022b61016f47d1b51cfecb06cfbf5d05569e057706187e1fec0c"], "macro_convertAndFormat", [call_user_func_array($this->env->getFilter('sylius_calculate_price')->getCallable(), [($context["variant"] ?? null), ["channel" => twig_get_attribute($this->env$this->source, ($context["sylius"] ?? null), "channel", [], "any"falsefalsefalse14)]])], 14$context$this->getSourceContext());
  6.             
  7.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  8.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
in vendor/twig/twig/src/Extension/CoreExtension.php->macro_calculatePrice (line 1110)
  1.         }
  2.         throw new RuntimeError(sprintf('Macro "%s" is not defined in template "%s".'substr($method, \strlen('macro_')), $template->getTemplateName()), $lineno$source);
  3.     }
  4.     return $template->$method(...$args);
  5. }
  6. /**
  7.  * @internal
  8.  */
  1.                 echo " |
  2.                 ";
  3.             } else {
  4.                 // line 23
  5.                 echo "                    ";
  6.                 echo twig_call_macro($macros["money"], "macro_calculatePrice", [call_user_func_array($this->env->getFilter('sylius_resolve_variant')->getCallable(), [($context["product"] ?? null)])], 23$context$this->getSourceContext());
  7.                 echo "
  8.                 ";
  9.             }
  10.             // line 25
  11.             echo "            </span>
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.      *
in vendor/twig/twig/src/Environment.php->render (line 318)
  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.     public function render(TemplateBlock $templateBlock, array $context = []): string
  2.     {
  3.         return $this->twig->render(
  4.             $templateBlock->getTemplate(),
  5.             array_replace($templateBlock->getContext(), $context)
  6.         );
  7.     }
  8. }
  1.     public function render(TemplateBlock $templateBlock, array $context = []): string
  2.     {
  3.         $this->templateBlockRenderingHistory->startRenderingBlock($templateBlock$context);
  4.         $renderedBlock $this->templateBlockRenderer->render($templateBlock$context);
  5.         $this->templateBlockRenderingHistory->stopRenderingBlock($templateBlock$context);
  6.         return $renderedBlock;
  7.     }
  1.                 $templateBlock->getTemplate(),
  2.                 $templateBlock->getPriority()
  3.             );
  4.         }
  5.         $renderedParts[] = $this->templateBlockRenderer->render($templateBlock$context);
  6.         if ($shouldRenderHtmlDebug) {
  7.             $renderedParts[] = sprintf(
  8.                 '<!-- END BLOCK | event name: "%s", block name: "%s" -->',
  9.                 $templateBlock->getEventName(),
  1.     {
  2.         $templateBlocks $this->templateBlockRegistry->findEnabledForEvents($eventNames);
  3.         $renderedTemplates = [];
  4.         foreach ($templateBlocks as $templateBlock) {
  5.             $renderedTemplates[] = $this->templateBlockRenderer->render($templateBlock$context);
  6.         }
  7.         return implode("\n"$renderedTemplates);
  8.     }
  9. }
  1.     public function render(array $eventNames, array $context = []): string
  2.     {
  3.         $this->templateBlockRenderingHistory->startRenderingEvent($eventNames$context);
  4.         $renderedEvent $this->templateEventRenderer->render($eventNames$context);
  5.         $this->templateBlockRenderingHistory->stopRenderingEvent($eventNames$context);
  6.         return $renderedEvent;
  7.     }
  1.                 '<!-- BEGIN EVENT | event name: "%s" -->',
  2.                 implode(', '$eventNames)
  3.             );
  4.         }
  5.         $renderedParts[] = $this->templateEventRenderer->render($eventNames$context);
  6.         if ($shouldRenderHtmlDebug) {
  7.             $renderedParts[] = sprintf(
  8.                 '<!-- END EVENT | event name: "%s" -->',
  9.                 implode(', '$eventNames)
  1.     /**
  2.      * @param string|string[] $eventName
  3.      */
  4.     public function render($eventName, array $context = []): string
  5.     {
  6.         return $this->templateEventRenderer->render((array) $eventName$context);
  7.     }
  8. }
  1.         $macros $this->macros;
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""SyliusShopBundle:Product:_box.html.twig"));
  4.         // line 1
  5.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.index.box", ["product" => ($context["product"] ?? null)]);
  6.         
  7.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  8.     }
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.             foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  2.                 // line 14
  3.                 echo "            <div class=\"col-6 col-md-6 col-lg-4 mb-3\">
  4.                 ";
  5.                 // line 15
  6.                 $this->loadTemplate("@SyliusShop/Product/_box.html.twig""SyliusShopBundle:Product/Index:_main.html.twig"15)->display($context);
  7.                 // line 16
  8.                 echo "            </div>
  9.         ";
  10.                 ++$context['loop']['index0'];
  11.                 ++$context['loop']['index'];
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 9
  2.             echo "      </div>
  3.       <div class=\"col-12 col-md-8 col-lg-9\">
  4.         ";
  5.             // line 11
  6.             $this->loadTemplate("@SyliusShop/Product/Index/_main.html.twig""SyliusShopBundle:Product:index.html.twig"11)->display($context);
  7.             // line 12
  8.             echo "      </div>
  9.     </div>
  10.   ";
  11.         }
in vendor/twig/twig/src/Template.php->block_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 $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.before_content");
  2.         echo "
  3.   ";
  4.         // line 52
  5.         $this->displayBlock('content'$context$blocks);
  6.         // line 54
  7.         echo "
  8.   ";
  9.         // line 55
  10.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.after_content");
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.         $macros $this->macros;
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""SyliusShopBundle:Product:index.html.twig"));
  4.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""SyliusShopBundle:Product:index.html.twig"1);
  5.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  6.         
  7.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  8.     }
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.      * @throws Error if something went wrong like a thrown exception while rendering the template
  3.      */
  4.     public function render($name, array $parameters = [])
  5.     {
  6.         return $this->load($name)->render($parameters);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      *
  1.                 $engine $view->getEngine() ?: $this->defaultEngine;
  2.                 $template->set('engine'$engine);
  3.             }
  4.         }
  5.         return $this->templating->render($template$data);
  6.     }
  7.     /**
  8.      * @deprecated since 2.8
  9.      *
  1.      */
  2.     private function initResponse(View $view$format)
  3.     {
  4.         $content null;
  5.         if ($this->isFormatTemplating($formatfalse)) {
  6.             $content $this->renderTemplate($view$formatfalse);
  7.         } elseif ($this->serializeNull || null !== $view->getData()) {
  8.             $data $this->getDataFromView($view);
  9.             if ($data instanceof FormInterface && $data->isSubmitted() && !$data->isValid()) {
  10.                 $view->getContext()->setAttribute('status_code'$this->failedValidationCode);
  1.         if ($location) {
  2.             return $this->createRedirectResponse($view$location$format);
  3.         }
  4.         $response $this->initResponse($view$format);
  5.         if (!$response->headers->has('Content-Type')) {
  6.             $mimeType $request->attributes->get('media_type');
  7.             if (null === $mimeType) {
  8.                 $mimeType $request->getMimeType($format);
  1.         if (isset($this->customHandlers[$format])) {
  2.             return call_user_func($this->customHandlers[$format], $this$view$request$format);
  3.         }
  4.         return $this->createResponse($view$request$format);
  5.     }
  6.     /**
  7.      * @param string $location
  8.      * @param string $format
  1.             }
  2.             $view->getContext()->enableMaxDepth();
  3.         }
  4.         return $this->restViewHandler->handle($view);
  5.     }
  6. }
ViewHandler->handle(object(RequestConfiguration), object(View)) in src/Controller/Shop/ProductController.php (line 185)
  1.           'product_visible' => $isProductVisible,
  2.           $this->metadata->getPluralName() => $resources,
  3.         ]);
  4.     }
  5.     return $this->viewHandler->handle($configuration$view);
  6.   }
  7.   public function showAction(Request $request): Response
  8.   {
  9.     $configuration $this->requestConfigurationFactory->create(
in vendor/symfony/http-kernel/HttpKernel.php->indexAction (line 158)
  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.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  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(object(Request)) in public/index.php (line 49)
  1. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  2. $request Request::createFromGlobals();
  3. $response $kernel->handle($request);
  4. $response->send();
  5. $kernel->terminate($request$response);

Logs

No log messages

Stack Trace

TypeError

TypeError:
Argument 1 passed to PriceHelper_2012e62::getPrice() must implement interface Sylius\Component\Core\Model\ProductVariantInterface, null given, called in /home/raritaneng/ecommerce/production/var/cache/prod/twig/8f/8f9093de7e4df3f90cb1f295132fcf5db2d7c2cad79d8c62ca60635c3c71f563.php on line 122

  at var/cache/prod/ContainerARb8x23/PriceHelper_2012e62.php:26
  at PriceHelper_2012e62->getPrice(null, array('channel' => object(Channel)))
     (var/cache/prod/twig/8f/8f9093de7e4df3f90cb1f295132fcf5db2d7c2cad79d8c62ca60635c3c71f563.php:122)
  at __TwigTemplate_571b4a53f7998a61fe6b07361093307a3356fb8ea6ae843de4a7f19137e2d46c->macro_calculatePrice(null)
     (vendor/twig/twig/src/Extension/CoreExtension.php:1110)
  at twig_call_macro(object(__TwigTemplate_571b4a53f7998a61fe6b07361093307a3356fb8ea6ae843de4a7f19137e2d46c), 'macro_calculatePrice', array(null), 23, array('product' => object(Product), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), object(Source))
     (var/cache/prod/twig/a3/a34e8f0b71a4b9b4776ef9ba59edee45e6ce16441bb398e12da39ecdaae37ec2.php:106)
  at __TwigTemplate_1e1bf3d82a31bf561737f0aedf12897f9e24e1f6baa89d925d26d999f7bae59c->doDisplay(array('product' => object(Product), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), array())
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling(array('product' => object(Product), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), array())
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display(array('product' => object(Product)))
     (vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render(array('product' => object(Product)), array())
     (vendor/twig/twig/src/TemplateWrapper.php:45)
  at Twig\TemplateWrapper->render(array('product' => object(Product)))
     (vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render('@SyliusShop/Product/Box/_content.html.twig', array('product' => object(Product)))
     (vendor/sylius/sylius/src/Sylius/Bundle/UiBundle/Renderer/TwigTemplateBlockRenderer.php:36)
  at Sylius\Bundle\UiBundle\Renderer\TwigTemplateBlockRenderer->render(object(TemplateBlock), array('product' => object(Product)))
     (vendor/sylius/sylius/src/Sylius/Bundle/UiBundle/DataCollector/TraceableTemplateBlockRenderer.php:41)
  at Sylius\Bundle\UiBundle\DataCollector\TraceableTemplateBlockRenderer->render(object(TemplateBlock), array('product' => object(Product)))
     (vendor/sylius/sylius/src/Sylius/Bundle/UiBundle/Renderer/HtmlDebugTemplateBlockRenderer.php:47)
  at Sylius\Bundle\UiBundle\Renderer\HtmlDebugTemplateBlockRenderer->render(object(TemplateBlock), array('product' => object(Product)))
     (vendor/sylius/sylius/src/Sylius/Bundle/UiBundle/Renderer/DelegatingTemplateEventRenderer.php:41)
  at Sylius\Bundle\UiBundle\Renderer\DelegatingTemplateEventRenderer->render(array('sylius.shop.product.index.box'), array('product' => object(Product)))
     (vendor/sylius/sylius/src/Sylius/Bundle/UiBundle/DataCollector/TraceableTemplateEventRenderer.php:40)
  at Sylius\Bundle\UiBundle\DataCollector\TraceableTemplateEventRenderer->render(array('sylius.shop.product.index.box'), array('product' => object(Product)))
     (vendor/sylius/sylius/src/Sylius/Bundle/UiBundle/Renderer/HtmlDebugTemplateEventRenderer.php:49)
  at Sylius\Bundle\UiBundle\Renderer\HtmlDebugTemplateEventRenderer->render(array('sylius.shop.product.index.box'), array('product' => object(Product)))
     (vendor/sylius/sylius/src/Sylius/Bundle/UiBundle/Twig/TemplateEventExtension.php:45)
  at Sylius\Bundle\UiBundle\Twig\TemplateEventExtension->render('sylius.shop.product.index.box', array('product' => object(Product)))
     (var/cache/prod/twig/8b/8b63838983f3786ce1156d1d5faccf1eab6181232d42410eb331821c0db86e69.php:40)
  at __TwigTemplate_5552b188110348a865c6fa1c6a68dbc6f3951984c0e8a4ed64051ebdd4afed7f->doDisplay(array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables), '_parent' => array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), '_seq' => object(Pagerfanta), 'loop' => array('parent' => array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), 'index0' => 1, 'index' => 2, 'first' => false, 'revindex0' => 120, 'revindex' => 121, 'length' => 122, 'last' => false), 'product' => object(Product), '_key' => 1), array())
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling(array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables), '_parent' => array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), '_seq' => object(Pagerfanta), 'loop' => array('parent' => array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), 'index0' => 1, 'index' => 2, 'first' => false, 'revindex0' => 120, 'revindex' => 121, 'length' => 122, 'last' => false), 'product' => object(Product), '_key' => 1), array())
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display(array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables), '_parent' => array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), '_seq' => object(Pagerfanta), 'loop' => array('parent' => array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), 'index0' => 1, 'index' => 2, 'first' => false, 'revindex0' => 120, 'revindex' => 121, 'length' => 122, 'last' => false), 'product' => object(Product), '_key' => 1))
     (var/cache/prod/twig/f9/f9ce63365fdf9d71464b194ca051b5e426df2a9409ab7f1bb205f6e8f990178d.php:87)
  at __TwigTemplate_fafd3b8cdf3698575ca469ffccf76407685b0ef3366801700a1e27885f266118->doDisplay(array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables), '_parent' => array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), '_seq' => object(Pagerfanta), 'loop' => array('parent' => array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), 'index0' => 1, 'index' => 2, 'first' => false, 'revindex0' => 120, 'revindex' => 121, 'length' => 122, 'last' => false), 'product' => object(Product), '_key' => 1), array())
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling(array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), array())
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display(array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)))
     (var/cache/prod/twig/cb/cbf9f6f4d8a4834497de4d557558d1d47093b5d339ca7d4bf528ac96a3c34137.php:75)
  at __TwigTemplate_34d12644e1d1dad973d097a059aed12014bc2ce19c30e045c88c7387ba72eee5->block_content(array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_title'), 'metatags' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_metatags'), 'stylesheets' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_stylesheets'), 'top' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_top'), 'header' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_header'), 'content' => array(object(__TwigTemplate_34d12644e1d1dad973d097a059aed12014bc2ce19c30e045c88c7387ba72eee5), 'block_content'), 'footer' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_javascripts')))
     (vendor/twig/twig/src/Template.php:182)
  at Twig\Template->displayBlock('content', array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_title'), 'metatags' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_metatags'), 'stylesheets' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_stylesheets'), 'top' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_top'), 'header' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_header'), 'content' => array(object(__TwigTemplate_34d12644e1d1dad973d097a059aed12014bc2ce19c30e045c88c7387ba72eee5), 'block_content'), 'footer' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_javascripts')))
     (var/cache/prod/twig/53/5368701172b55ad28d4e54d88a2fcf3f07367a3c1f8fde976d95161e2cb03425.php:114)
  at __TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44->doDisplay(array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_title'), 'metatags' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_metatags'), 'stylesheets' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_stylesheets'), 'top' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_top'), 'header' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_header'), 'content' => array(object(__TwigTemplate_34d12644e1d1dad973d097a059aed12014bc2ce19c30e045c88c7387ba72eee5), 'block_content'), 'footer' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_javascripts')))
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling(array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_title'), 'metatags' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_metatags'), 'stylesheets' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_stylesheets'), 'top' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_top'), 'header' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_header'), 'content' => array(object(__TwigTemplate_34d12644e1d1dad973d097a059aed12014bc2ce19c30e045c88c7387ba72eee5), 'block_content'), 'footer' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_ded6b2cc728cc90a3fd824dd2bb932646d696a0345793bf1fb14621cf8686f44), 'block_javascripts')))
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display(array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_34d12644e1d1dad973d097a059aed12014bc2ce19c30e045c88c7387ba72eee5), 'block_content')))
     (var/cache/prod/twig/cb/cbf9f6f4d8a4834497de4d557558d1d47093b5d339ca7d4bf528ac96a3c34137.php:45)
  at __TwigTemplate_34d12644e1d1dad973d097a059aed12014bc2ce19c30e045c88c7387ba72eee5->doDisplay(array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_34d12644e1d1dad973d097a059aed12014bc2ce19c30e045c88c7387ba72eee5), 'block_content')))
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling(array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView), 'app' => object(AppVariable), 'sylius' => object(ShopperContext_d398ef6), 'sylius_base_locale' => 'en_US', 'sylius_meta' => array('version' => '1.8.7'), 'uploads_directory' => '/uploads/', 'sonata_block' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_34d12644e1d1dad973d097a059aed12014bc2ce19c30e045c88c7387ba72eee5), 'block_content')))
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display(array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView)))
     (vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render(array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView)))
     (vendor/symfony/twig-bridge/TwigEngine.php:54)
  at Symfony\Bridge\Twig\TwigEngine->render('@SyliusShop/Product/index.html.twig', array('configuration' => object(RequestConfiguration), 'metadata' => object(Metadata), 'resources' => object(ResourceGridView), 'product_visible' => true, 'products' => object(ResourceGridView)))
     (vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:372)
  at FOS\RestBundle\View\ViewHandler->renderTemplate(object(View), 'html', false)
     (vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:446)
  at FOS\RestBundle\View\ViewHandler->initResponse(object(View), 'html')
     (vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:423)
  at FOS\RestBundle\View\ViewHandler->createResponse(object(View), object(Request), 'html')
     (vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:309)
  at FOS\RestBundle\View\ViewHandler->handle(object(View))
     (vendor/sylius/resource-bundle/src/Bundle/Controller/ViewHandler.php:45)
  at Sylius\Bundle\ResourceBundle\Controller\ViewHandler->handle(object(RequestConfiguration), object(View))
     (src/Controller/Shop/ProductController.php:185)
  at App\Controller\Shop\ProductController->indexAction(object(Request))
     (vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:49)