{% extends 'application/layout.html.twig' %}
{% block meta %}
{% include 'application/components/_meta.html.twig' with
{
'title': (category.meta.title) ? category.meta.title : category.title,
'image': (category.meta.image) ? category.meta.image : category.image,
'description': (category.meta.description) ? category.meta.description : category.content,
'keywords': (category.meta.keywords) ? category.meta.keywords : null
} %}
{% endblock %}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
// line 4
echo " ";
$this->loadTemplate("application/components/_meta.html.twig", "shop/app/product/list1.html.twig", 4)->display(twig_array_merge($context, ["title" => ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 6
(isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 6, $this->source); })()), "meta", [], "any", false, false, false, 6), "title", [], "any", false, false, false, 6)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 6, $this->source); })()), "meta", [], "any", false, false, false, 6), "title", [], "any", false, false, false, 6)) : (twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 6, $this->source); })()), "title", [], "any", false, false, false, 6))), "image" => ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 7
(isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 7, $this->source); })()), "meta", [], "any", false, false, false, 7), "image", [], "any", false, false, false, 7)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 7, $this->source); })()), "meta", [], "any", false, false, false, 7), "image", [], "any", false, false, false, 7)) : (twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 7, $this->source); })()), "image", [], "any", false, false, false, 7))), "description" => ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 8
(isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 8, $this->source); })()), "meta", [], "any", false, false, false, 8), "description", [], "any", false, false, false, 8)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 8, $this->source); })()), "meta", [], "any", false, false, false, 8), "description", [], "any", false, false, false, 8)) : (twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 8, $this->source); })()), "content", [], "any", false, false, false, 8))), "keywords" => ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 9
(isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 9, $this->source); })()), "meta", [], "any", false, false, false, 9), "keywords", [], "any", false, false, false, 9)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 9, $this->source); })()), "meta", [], "any", false, false, false, 9), "keywords", [], "any", false, false, false, 9)) : (null))]));
// line 11
echo " ";
$macros = $this->macros;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "shop/app/product/list1.html.twig"));
$this->parent = $this->loadTemplate("application/layout.html.twig", "shop/app/product/list1.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
protected function render(string $view, array $parameters = [], Response $response = null): Response
{
if ($this->container->has('templating') && $this->container->get('templating')->supports($view)) {
@trigger_error('Using the "templating" service is deprecated since version 4.3 and will be removed in 5.0; use Twig instead.', \E_USER_DEPRECATED);
$content = $this->container->get('templating')->render($view, $parameters);
} elseif ($this->container->has('twig')) {
$content = $this->container->get('twig')->render($view, $parameters);
} else {
throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
}
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
No log messages
RuntimeError |
---|
Twig\Error\RuntimeError: Impossible to access an attribute ("meta") on a null variable. at templates/shop/app/product/list1.html.twig:6 at twig_get_attribute(object(Environment), object(Source), null, 'meta', array(), 'any', false, false, false, 6) (var/cache/app/twig/47/47c389462909e0dfe6274a9b7381b01168ad88a425b5a0a3cd85dcb85f007296.php:63) at __TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1->block_meta(array('products' => array(), 'category' => null, 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'filters' => array(), 'families' => array(object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family)), 'sortings' => array('abc' => 'ABC sorrend', 'new' => 'Legújabb', 'old' => 'Legrégebbi', 'exp' => 'Legdrágább', 'cheap' => 'Legolcsóbb'), 'app' => object(AppVariable), 'extension' => object(Extension), 'owner' => object(Owner), 'cart' => object(Cart), 'page' => object(Page), 'blockService' => object(Block)), array('meta' => array(object(__TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1), 'block_meta'), 'stylesheets' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1), 'block_body'), 'javascript_vendor' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_javascript_vendor'), 'javascript_component' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_javascript_component'), 'javascript_init' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_javascript_init'))) (vendor/twig/twig/src/Template.php:182) at Twig\Template->displayBlock('meta', array('products' => array(), 'category' => null, 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'filters' => array(), 'families' => array(object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family)), 'sortings' => array('abc' => 'ABC sorrend', 'new' => 'Legújabb', 'old' => 'Legrégebbi', 'exp' => 'Legdrágább', 'cheap' => 'Legolcsóbb'), 'app' => object(AppVariable), 'extension' => object(Extension), 'owner' => object(Owner), 'cart' => object(Cart), 'page' => object(Page), 'blockService' => object(Block)), array('meta' => array(object(__TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1), 'block_meta'), 'stylesheets' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1), 'block_body'), 'javascript_vendor' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_javascript_vendor'), 'javascript_component' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_javascript_component'), 'javascript_init' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_javascript_init'))) (var/cache/app/twig/73/732cb358d0e9556d5709777fdb044821aad763f9815985f6e2a7dda28aa5eec8.php:55) at __TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531->doDisplay(array('products' => array(), 'category' => null, 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'filters' => array(), 'families' => array(object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family)), 'sortings' => array('abc' => 'ABC sorrend', 'new' => 'Legújabb', 'old' => 'Legrégebbi', 'exp' => 'Legdrágább', 'cheap' => 'Legolcsóbb'), 'app' => object(AppVariable), 'extension' => object(Extension), 'owner' => object(Owner), 'cart' => object(Cart), 'page' => object(Page), 'blockService' => object(Block)), array('meta' => array(object(__TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1), 'block_meta'), 'stylesheets' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1), 'block_body'), 'javascript_vendor' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_javascript_vendor'), 'javascript_component' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_javascript_component'), 'javascript_init' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_javascript_init'))) (vendor/twig/twig/src/Template.php:405) at Twig\Template->displayWithErrorHandling(array('products' => array(), 'category' => null, 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'filters' => array(), 'families' => array(object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family)), 'sortings' => array('abc' => 'ABC sorrend', 'new' => 'Legújabb', 'old' => 'Legrégebbi', 'exp' => 'Legdrágább', 'cheap' => 'Legolcsóbb'), 'app' => object(AppVariable), 'extension' => object(Extension), 'owner' => object(Owner), 'cart' => object(Cart), 'page' => object(Page), 'blockService' => object(Block)), array('meta' => array(object(__TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1), 'block_meta'), 'stylesheets' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1), 'block_body'), 'javascript_vendor' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_javascript_vendor'), 'javascript_component' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_javascript_component'), 'javascript_init' => array(object(__TwigTemplate_3473fbaf8f925ff31c61c5ef10d4af799f9191e630de168cb1379616e1e34531), 'block_javascript_init'))) (vendor/twig/twig/src/Template.php:378) at Twig\Template->display(array('products' => array(), 'category' => null, 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'filters' => array(), 'families' => array(object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family)), 'sortings' => array('abc' => 'ABC sorrend', 'new' => 'Legújabb', 'old' => 'Legrégebbi', 'exp' => 'Legdrágább', 'cheap' => 'Legolcsóbb'), 'app' => object(AppVariable), 'extension' => object(Extension), 'owner' => object(Owner), 'cart' => object(Cart), 'page' => object(Page), 'blockService' => object(Block)), array('meta' => array(object(__TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1), 'block_meta'), 'body' => array(object(__TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1), 'block_body'))) (var/cache/app/twig/47/47c389462909e0dfe6274a9b7381b01168ad88a425b5a0a3cd85dcb85f007296.php:47) at __TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1->doDisplay(array('products' => array(), 'category' => null, 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'filters' => array(), 'families' => array(object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family)), 'sortings' => array('abc' => 'ABC sorrend', 'new' => 'Legújabb', 'old' => 'Legrégebbi', 'exp' => 'Legdrágább', 'cheap' => 'Legolcsóbb'), 'app' => object(AppVariable), 'extension' => object(Extension), 'owner' => object(Owner), 'cart' => object(Cart), 'page' => object(Page), 'blockService' => object(Block)), array('meta' => array(object(__TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1), 'block_meta'), 'body' => array(object(__TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1), 'block_body'))) (vendor/twig/twig/src/Template.php:405) at Twig\Template->displayWithErrorHandling(array('products' => array(), 'category' => null, 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'filters' => array(), 'families' => array(object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family)), 'sortings' => array('abc' => 'ABC sorrend', 'new' => 'Legújabb', 'old' => 'Legrégebbi', 'exp' => 'Legdrágább', 'cheap' => 'Legolcsóbb'), 'app' => object(AppVariable), 'extension' => object(Extension), 'owner' => object(Owner), 'cart' => object(Cart), 'page' => object(Page), 'blockService' => object(Block)), array('meta' => array(object(__TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1), 'block_meta'), 'body' => array(object(__TwigTemplate_0503b2bd8f9d9193470c800b30e7c446ae6e0880bf84860a4bc8d80c886869a1), 'block_body'))) (vendor/twig/twig/src/Template.php:378) at Twig\Template->display(array('products' => array(), 'category' => null, 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'filters' => array(), 'families' => array(object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family)), 'sortings' => array('abc' => 'ABC sorrend', 'new' => 'Legújabb', 'old' => 'Legrégebbi', 'exp' => 'Legdrágább', 'cheap' => 'Legolcsóbb'))) (vendor/twig/twig/src/Template.php:390) at Twig\Template->render(array('products' => array(), 'category' => null, 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'filters' => array(), 'families' => array(object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family)), 'sortings' => array('abc' => 'ABC sorrend', 'new' => 'Legújabb', 'old' => 'Legrégebbi', 'exp' => 'Legdrágább', 'cheap' => 'Legolcsóbb'))) (vendor/symfony/twig-bridge/TwigEngine.php:54) at Symfony\Bridge\Twig\TwigEngine->render('shop/app/product/list1.html.twig', array('products' => array(), 'category' => null, 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'filters' => array(), 'families' => array(object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family)), 'sortings' => array('abc' => 'ABC sorrend', 'new' => 'Legújabb', 'old' => 'Legrégebbi', 'exp' => 'Legdrágább', 'cheap' => 'Legolcsóbb'))) (vendor/symfony/framework-bundle/Controller/ControllerTrait.php:233) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render('shop/app/product/list1.html.twig', array('products' => array(), 'category' => null, 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'filters' => array(), 'families' => array(object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family), object(Family)), 'sortings' => array('abc' => 'ABC sorrend', 'new' => 'Legújabb', 'old' => 'Legrégebbi', 'exp' => 'Legdrágább', 'cheap' => 'Legolcsóbb'))) (src/Controller/Shop/Catalog/ProductController.php:299) at App\Controller\Shop\Catalog\ProductController->category(object(Request), object(ProductRepository), object(CategoryRepository), object(AttributeRepository), object(VariationRepository), object(BrandRepository), object(StockRepository), object(FamilyRepository), object(Paginator)) (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:24) |