Exceptions
Exceptions 2
Twig\Error\ RuntimeError
Show exception properties
Twig\Error\RuntimeError {#1174 -lineno: 16 -rawMessage: "An exception has been thrown during the rendering of a template ("Warning: Attempt to read property "field_public" on array")." -source: Twig\Source {#1160 -code: """ {# @var card \BaksDev\Products\Product\Repository\ProductModel\ProductModelResult #}\n \n {# Диапазон цен модели #}\n {% set min_price = null %}\n \t{% if card.minPrice is not null %}\n {% set min_price = user_profile_discount(card.minPrice) ?: card.minPrice %}\n {% endif %}\n \n {# Обложка категории #}\n {% set category_cover = '/assets/img/blank.svg' %}\n \t{% if card.categoryCoverCdn is not null %}\n {% set category_cover = cdn_image_path(card.categoryCoverDir, card.categoryCoverExt, card.categoryCoverCdn) %}\n {% endif %}\n \n {# Свойства продукта #}\n {% set product_fields = card.categorySectionField %}\n \n <section\n class="container py-5"> {# Модальное окно - изображение продукта #}\n {% include Template('@products-product/public/'~baks_settings.device~'/images_modal.html.twig') with {card} only %}\n \n <div class="d-flex justify-content-between">\n <h2 class="fs-24 text-uppercase fw-bold">\n {{ card.productName }}\n </h2>\n </div>\n \n {{ include(_self|replace({ "model.html.twig" : "breadcrumb.html.twig" })) }}\n \n {# ОСНОВНОЙ КОНТЕНТ СТРАНИЦЫ #}\n <div class="row mb-5">\n <div class="col-4">\n {% include Template('@products-product/public/'~baks_settings.device~'/images_carousel.html.twig') with {card} only %}\n </div>\n \n <div class="col-5">\n \n <img class="mb-3" src="{{ category_cover }}" style="width: 220px;" alt="{{ card.categoryName }}">\n \n <p class="fs-24 fw-bold mb-3">\n {% if min_price %}\n от\n {{ money(min_price) }}\n {% else %}\n цена по запросу\n {% endif %}\n </p>\n \n {% include Template('@products-product/public/'~baks_settings.device~'/properties_public.html.twig') with {card} only %}\n \n </div>\n \n <div class="col-3">\n <div style="height:400px; background: url(/assets/white-sign/img/ad2.png) no-repeat; background-size: contain"></div>\n </div>\n \n </div>\n \n <div class="row">\n \n <div\n class="col-9">\n \n {# PILS #}\n <ul class="list-group list-group-horizontal productCadr-tabs-gap mb-5" id="pills-tab">\n <li class="list-group-item border-0 p-0">\n <button class="btn px-3 py-2 fw-bold rounded-5 active productCardTabs text-decoration-underline"\n id="pills-description-tab" data-bs-toggle="pill" data-bs-target="#pills-description"\n type="button" aria-controls="pills-description" aria-selected="true">Описание\n </button>\n </li>\n \n <li class="list-group-item border-0 p-0">\n <button class="btn px-3 py-2 fw-bold rounded-5 productCardTabs text-decoration-underline"\n id="pills-props-tab" data-bs-toggle="pill" data-bs-target="#pills-props" type="button"\n aria-controls="pills-props" aria-selected="false">Характеристики\n </button>\n </li>\n \n <li class="list-group-item border-0 p-0">\n <button class="btn px-3 py-2 fw-bold rounded-5 productCardTabs text-decoration-underline"\n id="pills-reviews-tab" data-bs-toggle="pill" data-bs-target="#pills-reviews" type="button"\n aria-controls="pills-reviews" aria-selected="false">Отзывы\n </button>\n </li>\n </ul>\n \n {# TABS #}\n <div class="tab-content" id="pills-tabContent" {# style="min-height: 460px;" #}>\n \n <div class="tab-pane fade show active text-secondary" id="pills-description"\n aria-labelledby="pills-description-tab" tabindex="0">\n {{ include(_self|replace({ "model.html.twig" : "model-description.html.twig" }), {card}, with_context = false) }}\n </div>\n \n <div class="tab-pane fade" id="pills-props" aria-labelledby="pills-props-tab"\n tabindex="0">\n {% include Template('@products-product/public/'~baks_settings.device~'/properties_all.html.twig') with {card} only %}\n </div>\n \n {# Отзывы #}\n <div class="tab-pane fade" id="pills-reviews" aria-labelledby="pills-reviews-tab" tabindex="0">\n {{ include(Template('@products-review:public/_includes/pc/reviews.section.html.twig')) }}\n </div>\n \n </div>\n \n {{ include(_self|replace({ "model.html.twig" : "alternatives/alternatives.html.twig" }), {card}, with_context = false) }}\n \n <div class="mb-0 pt-3" id="collapseRead">\n {{ card.productDescription|raw }}\n </div>\n \n </div>\n \n <div class="col-3">\n \n {{ render_one_best_seller(card.categoryId) }}\n \n {% include Template('/public/'~baks_settings.device~'/includes/banners/ad-banner-sm.html.twig') %}\n {% include Template('/public/'~baks_settings.device~'/includes/banners/ad-banner-sm.html.twig') %}\n </div>\n \n </div>\n \n </section>\n """ -name: "@App/products-product/Resources/view/public/model/pc/includes/model.html.twig" -path: "/home/dvz.all.baks.dev/src/products-product/Resources/view/public/model/pc/includes/model.html.twig" } -phpFile: "/home/dvz.all.baks.dev/vendor/twig/twig/src/Template.php" -phpLine: 416 }
{% if card.categoryCoverCdn is not null %}{% set category_cover = cdn_image_path(card.categoryCoverDir, card.categoryCoverExt, card.categoryCoverCdn) %}{% endif %}{# Свойства продукта #}{% set product_fields = card.categorySectionField %}<sectionclass="container py-5"> {# Модальное окно - изображение продукта #}{% include Template('@products-product/public/'~baks_settings.device~'/images_modal.html.twig') with {card} only %}
in
vendor/twig/twig/src/Template.php
->
yield
(line 358)
return $this->blocks;}public function display(array $context, array $blocks = []): void{foreach ($this->yield($context, $blocks) as $data) {echo $data;}}public function render(array $context): string
in
vendor/twig/twig/src/Template.php
->
display
(line 373)
ob_start();} else {ob_start(function () { return ''; });}try {$this->display($context);} catch (\Throwable $e) {while (ob_get_level() > $level) {ob_end_clean();}
in
vendor/twig/twig/src/TemplateWrapper.php
->
render
(line 51)
yield from $this->template->yieldBlock($name, $context);}public function render(array $context = []): string{return $this->template->render($context);}/*** @return void*/
in
vendor/twig/twig/src/Extension/CoreExtension.php
->
render
(line 1526)
if ($isSandboxed) {$loaded->unwrap()->checkSecurity();}return $loaded->render($variables);} finally {if ($isSandboxed && !$alreadySandboxed) {$sandbox->disableSandbox();}}
in
var/cache/dev/twig/35/358ee1d1c030e36828a0264ac9738f1b.php
::
include
(line 55)
<main>";// line 7yield Twig\Extension\CoreExtension::include($this->env, $context, Twig\Extension\CoreExtension::replace($this->getTemplateName(), ["content.html.twig" => "includes/model.html.twig"]));yield "";// line 10yield " ";
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 402)
{$context += $this->env->getGlobals();$blocks = array_merge($this->blocks, $blocks);try {yield from $this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
vendor/twig/twig/src/Template.php
->
yield
(line 358)
return $this->blocks;}public function display(array $context, array $blocks = []): void{foreach ($this->yield($context, $blocks) as $data) {echo $data;}}public function render(array $context): string
in
vendor/twig/twig/src/Template.php
->
display
(line 373)
ob_start();} else {ob_start(function () { return ''; });}try {$this->display($context);} catch (\Throwable $e) {while (ob_get_level() > $level) {ob_end_clean();}
in
vendor/twig/twig/src/TemplateWrapper.php
->
render
(line 51)
yield from $this->template->yieldBlock($name, $context);}public function render(array $context = []): string{return $this->template->render($context);}/*** @return void*/
in
vendor/twig/twig/src/Extension/CoreExtension.php
->
render
(line 1526)
if ($isSandboxed) {$loaded->unwrap()->checkSecurity();}return $loaded->render($variables);} finally {if ($isSandboxed && !$alreadySandboxed) {$sandbox->disableSandbox();}}
in
var/cache/dev/twig/e0/e08f3dd5cf47e6383e7d932b994ece4a.php
::
include
(line 332)
// line 92yield "";// line 93yield Twig\Extension\CoreExtension::include($this->env, $context, Twig\Extension\CoreExtension::replace($this->getTemplateName(), ["template.html.twig" => (CoreExtension::getAttribute($this->env, $this->source, (isset($context["baks_settings"]) || array_key_exists("baks_settings", $context) ? $context["baks_settings"] : (function () { throw new RuntimeError('Variable "baks_settings" does not exist.', 93, $this->source); })()), "device", [], "any", false, false, false, 93) . "/content.html.twig")]));yield "";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in
vendor/twig/twig/src/Template.php
->
block_content
(line 446)
throw new \LogicException('A block must be a method on a \Twig\Template instance.');}if (null !== $template) {try {yield from $template->$block($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($template->getSourceContext());}
in
var/cache/dev/twig/5f/5fe47bcdb11345a84ceaa805d52f53d6.php
->
yieldBlock
(line 127)
yield from $this->load($this->extensions['BaksDev\Core\Twig\TemplateExtension']->extends((("@products-category:public/navbar/" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["baks_settings"]) || array_key_exists("baks_settings", $context) ? $context["baks_settings"] : (function () { throw new RuntimeError('Variable "baks_settings" does not exist.', 173, $this->source); })()), "device", [], "any", false, false, false, 173)) . "/navbar.html.twig")), 173)->unwrap()->yield($context);// line 174yield "";// line 175yield from $this->unwrap()->yieldBlock('content', $context, $blocks);// line 178yield "";// line 179yield from $this->unwrap()->yieldBlock('footer', $context, $blocks);
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 402)
{$context += $this->env->getGlobals();$blocks = array_merge($this->blocks, $blocks);try {yield from $this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
var/cache/dev/twig/e0/e08f3dd5cf47e6383e7d932b994ece4a.php
->
yield
(line 56)
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@App/products-product/Resources/view/public/model/template.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@App/products-product/Resources/view/public/model/template.html.twig"));yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 402)
{$context += $this->env->getGlobals();$blocks = array_merge($this->blocks, $blocks);try {yield from $this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
vendor/twig/twig/src/Template.php
->
yield
(line 358)
return $this->blocks;}public function display(array $context, array $blocks = []): void{foreach ($this->yield($context, $blocks) as $data) {echo $data;}}public function render(array $context): string
in
vendor/twig/twig/src/Template.php
->
display
(line 373)
ob_start();} else {ob_start(function () { return ''; });}try {$this->display($context);} catch (\Throwable $e) {while (ob_get_level() > $level) {ob_end_clean();}
in
vendor/twig/twig/src/TemplateWrapper.php
->
render
(line 51)
yield from $this->template->yieldBlock($name, $context);}public function render(array $context = []): string{return $this->template->render($context);}/*** @return void*/
in
vendor/twig/twig/src/Environment.php
->
render
(line 333)
* @throws SyntaxError When an error occurred during compilation* @throws RuntimeError When an error occurred during rendering*/public function render($name, array $context = []): string{return $this->load($name)->render($context);}/*** Displays a template.*
in
vendor/baks-dev/core/Controller/AbstractController.php
->
render
(line 359)
$ModuleTemplate = '@App';if(file_exists($this->project_dir.'/src/'.$module.'/Resources/view/'.$fileName)){$view = $ModuleTemplate.'/'.$module.'/Resources/view/'.$fileName;$content = $this->environment->render($view, $parameters);}// Пробуем определить файл шаблона по умолчанию template.html.twigelseif(file_exists($this->project_dir.'/src/'.$module.'/Resources/view/'.$fileDefault)){$view = $ModuleTemplate.'/'.$module.'/Resources/view/'.$fileDefault;
in
vendor/baks-dev/products-product/Controller/Public/ModelController.php
->
render
(line 71)
$ProductsReviews = $AllReviewsRepository->filter($statusDTO)->product($info->getProduct())->findPaginator();return $this->render(['card' => $card,'reviews' => $ProductsReviews,]);}
in
vendor/symfony/http-kernel/HttpKernel.php
->
model
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 29)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {// if(// true === in_array($_SERVER['REMOTE_ADDR'], [
ErrorException
if(null === current($sectionFields)){return null;}return array_filter($sectionFields, static fn($n) => $n->field_public === true);}public function getCategoryThreshold(): ?int{return $this->category_threshold;
ProductModelResult::{closure:BaksDev\Products\Product\Repository\ProductModel\ProductModelResult::getCategorySectionField():207}()
in
vendor/baks-dev/products-product/Repository/ProductModel/ProductModelResult.php
array_filter
(line 207)
if(null === current($sectionFields)){return null;}return array_filter($sectionFields, static fn($n) => $n->field_public === true);}public function getCategoryThreshold(): ?int{return $this->category_threshold;
in
vendor/twig/twig/src/Extension/CoreExtension.php
->
getCategorySectionField
(line 1919)
}// Some objects throw exceptions when they have __call, and the method we try// to call is not supported. If ignoreStrictCheck is true, we should return null.try {$ret = $object->$method(...$arguments);} catch (\BadMethodCallException $e) {if ($call && ($ignoreStrictCheck || !$env->isStrictVariables())) {return;}throw $e;
in
var/cache/dev/twig/2f/2f799b81c855e280e0746a5435663381.php
::
getAttribute
(line 79)
}// line 14yield "";// line 16$context["product_fields"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["card"]) || array_key_exists("card", $context) ? $context["card"] : (function () { throw new RuntimeError('Variable "card" does not exist.', 16, $this->source); })()), "categorySectionField", [], "any", false, false, false, 16);// line 17yield "<sectionclass=\"container py-5\"> ";// line 20
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 402)
{$context += $this->env->getGlobals();$blocks = array_merge($this->blocks, $blocks);try {yield from $this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
vendor/twig/twig/src/Template.php
->
yield
(line 358)
return $this->blocks;}public function display(array $context, array $blocks = []): void{foreach ($this->yield($context, $blocks) as $data) {echo $data;}}public function render(array $context): string
in
vendor/twig/twig/src/Template.php
->
display
(line 373)
ob_start();} else {ob_start(function () { return ''; });}try {$this->display($context);} catch (\Throwable $e) {while (ob_get_level() > $level) {ob_end_clean();}
in
vendor/twig/twig/src/TemplateWrapper.php
->
render
(line 51)
yield from $this->template->yieldBlock($name, $context);}public function render(array $context = []): string{return $this->template->render($context);}/*** @return void*/
in
vendor/twig/twig/src/Extension/CoreExtension.php
->
render
(line 1526)
if ($isSandboxed) {$loaded->unwrap()->checkSecurity();}return $loaded->render($variables);} finally {if ($isSandboxed && !$alreadySandboxed) {$sandbox->disableSandbox();}}
in
var/cache/dev/twig/35/358ee1d1c030e36828a0264ac9738f1b.php
::
include
(line 55)
<main>";// line 7yield Twig\Extension\CoreExtension::include($this->env, $context, Twig\Extension\CoreExtension::replace($this->getTemplateName(), ["content.html.twig" => "includes/model.html.twig"]));yield "";// line 10yield " ";
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 402)
{$context += $this->env->getGlobals();$blocks = array_merge($this->blocks, $blocks);try {yield from $this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
vendor/twig/twig/src/Template.php
->
yield
(line 358)
return $this->blocks;}public function display(array $context, array $blocks = []): void{foreach ($this->yield($context, $blocks) as $data) {echo $data;}}public function render(array $context): string
in
vendor/twig/twig/src/Template.php
->
display
(line 373)
ob_start();} else {ob_start(function () { return ''; });}try {$this->display($context);} catch (\Throwable $e) {while (ob_get_level() > $level) {ob_end_clean();}
in
vendor/twig/twig/src/TemplateWrapper.php
->
render
(line 51)
yield from $this->template->yieldBlock($name, $context);}public function render(array $context = []): string{return $this->template->render($context);}/*** @return void*/
in
vendor/twig/twig/src/Extension/CoreExtension.php
->
render
(line 1526)
if ($isSandboxed) {$loaded->unwrap()->checkSecurity();}return $loaded->render($variables);} finally {if ($isSandboxed && !$alreadySandboxed) {$sandbox->disableSandbox();}}
in
var/cache/dev/twig/e0/e08f3dd5cf47e6383e7d932b994ece4a.php
::
include
(line 332)
// line 92yield "";// line 93yield Twig\Extension\CoreExtension::include($this->env, $context, Twig\Extension\CoreExtension::replace($this->getTemplateName(), ["template.html.twig" => (CoreExtension::getAttribute($this->env, $this->source, (isset($context["baks_settings"]) || array_key_exists("baks_settings", $context) ? $context["baks_settings"] : (function () { throw new RuntimeError('Variable "baks_settings" does not exist.', 93, $this->source); })()), "device", [], "any", false, false, false, 93) . "/content.html.twig")]));yield "";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in
vendor/twig/twig/src/Template.php
->
block_content
(line 446)
throw new \LogicException('A block must be a method on a \Twig\Template instance.');}if (null !== $template) {try {yield from $template->$block($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($template->getSourceContext());}
in
var/cache/dev/twig/5f/5fe47bcdb11345a84ceaa805d52f53d6.php
->
yieldBlock
(line 127)
yield from $this->load($this->extensions['BaksDev\Core\Twig\TemplateExtension']->extends((("@products-category:public/navbar/" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["baks_settings"]) || array_key_exists("baks_settings", $context) ? $context["baks_settings"] : (function () { throw new RuntimeError('Variable "baks_settings" does not exist.', 173, $this->source); })()), "device", [], "any", false, false, false, 173)) . "/navbar.html.twig")), 173)->unwrap()->yield($context);// line 174yield "";// line 175yield from $this->unwrap()->yieldBlock('content', $context, $blocks);// line 178yield "";// line 179yield from $this->unwrap()->yieldBlock('footer', $context, $blocks);
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 402)
{$context += $this->env->getGlobals();$blocks = array_merge($this->blocks, $blocks);try {yield from $this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
var/cache/dev/twig/e0/e08f3dd5cf47e6383e7d932b994ece4a.php
->
yield
(line 56)
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@App/products-product/Resources/view/public/model/template.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@App/products-product/Resources/view/public/model/template.html.twig"));yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 402)
{$context += $this->env->getGlobals();$blocks = array_merge($this->blocks, $blocks);try {yield from $this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
vendor/twig/twig/src/Template.php
->
yield
(line 358)
return $this->blocks;}public function display(array $context, array $blocks = []): void{foreach ($this->yield($context, $blocks) as $data) {echo $data;}}public function render(array $context): string
in
vendor/twig/twig/src/Template.php
->
display
(line 373)
ob_start();} else {ob_start(function () { return ''; });}try {$this->display($context);} catch (\Throwable $e) {while (ob_get_level() > $level) {ob_end_clean();}
in
vendor/twig/twig/src/TemplateWrapper.php
->
render
(line 51)
yield from $this->template->yieldBlock($name, $context);}public function render(array $context = []): string{return $this->template->render($context);}/*** @return void*/
in
vendor/twig/twig/src/Environment.php
->
render
(line 333)
* @throws SyntaxError When an error occurred during compilation* @throws RuntimeError When an error occurred during rendering*/public function render($name, array $context = []): string{return $this->load($name)->render($context);}/*** Displays a template.*
in
vendor/baks-dev/core/Controller/AbstractController.php
->
render
(line 359)
$ModuleTemplate = '@App';if(file_exists($this->project_dir.'/src/'.$module.'/Resources/view/'.$fileName)){$view = $ModuleTemplate.'/'.$module.'/Resources/view/'.$fileName;$content = $this->environment->render($view, $parameters);}// Пробуем определить файл шаблона по умолчанию template.html.twigelseif(file_exists($this->project_dir.'/src/'.$module.'/Resources/view/'.$fileDefault)){$view = $ModuleTemplate.'/'.$module.'/Resources/view/'.$fileDefault;
in
vendor/baks-dev/products-product/Controller/Public/ModelController.php
->
render
(line 71)
$ProductsReviews = $AllReviewsRepository->filter($statusDTO)->product($info->getProduct())->findPaginator();return $this->render(['card' => $card,'reviews' => $ProductsReviews,]);}
in
vendor/symfony/http-kernel/HttpKernel.php
->
model
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 29)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {// if(// true === in_array($_SERVER['REMOTE_ADDR'], [
Logs
No log messages
Stack Traces 2
|
[2/2]
RuntimeError
|
|---|
Twig\Error\RuntimeError:
An exception has been thrown during the rendering of a template ("Warning: Attempt to read property "field_public" on array") in "@App/products-product/Resources/view/public/model/pc/includes/model.html.twig" at line 16.
at src/products-product/Resources/view/public/model/pc/includes/model.html.twig:16
at Twig\Template->yield()
(vendor/twig/twig/src/Template.php:358)
at Twig\Template->display()
(vendor/twig/twig/src/Template.php:373)
at Twig\Template->render()
(vendor/twig/twig/src/TemplateWrapper.php:51)
at Twig\TemplateWrapper->render()
(vendor/twig/twig/src/Extension/CoreExtension.php:1526)
at Twig\Extension\CoreExtension::include()
(var/cache/dev/twig/35/358ee1d1c030e36828a0264ac9738f1b.php:55)
at __TwigTemplate_3244bd783b20fe64e669a34f99514b50->doDisplay()
(vendor/twig/twig/src/Template.php:402)
at Twig\Template->yield()
(vendor/twig/twig/src/Template.php:358)
at Twig\Template->display()
(vendor/twig/twig/src/Template.php:373)
at Twig\Template->render()
(vendor/twig/twig/src/TemplateWrapper.php:51)
at Twig\TemplateWrapper->render()
(vendor/twig/twig/src/Extension/CoreExtension.php:1526)
at Twig\Extension\CoreExtension::include()
(var/cache/dev/twig/e0/e08f3dd5cf47e6383e7d932b994ece4a.php:332)
at __TwigTemplate_5d222addca96b43c78a7051860cbe725->block_content()
(vendor/twig/twig/src/Template.php:446)
at Twig\Template->yieldBlock()
(var/cache/dev/twig/5f/5fe47bcdb11345a84ceaa805d52f53d6.php:127)
at __TwigTemplate_566c2218864d31dd653cd6dc4d4f0f99->doDisplay()
(vendor/twig/twig/src/Template.php:402)
at Twig\Template->yield()
(var/cache/dev/twig/e0/e08f3dd5cf47e6383e7d932b994ece4a.php:56)
at __TwigTemplate_5d222addca96b43c78a7051860cbe725->doDisplay()
(vendor/twig/twig/src/Template.php:402)
at Twig\Template->yield()
(vendor/twig/twig/src/Template.php:358)
at Twig\Template->display()
(vendor/twig/twig/src/Template.php:373)
at Twig\Template->render()
(vendor/twig/twig/src/TemplateWrapper.php:51)
at Twig\TemplateWrapper->render()
(vendor/twig/twig/src/Environment.php:333)
at Twig\Environment->render()
(vendor/baks-dev/core/Controller/AbstractController.php:359)
at BaksDev\Core\Controller\AbstractController->render()
(vendor/baks-dev/products-product/Controller/Public/ModelController.php:71)
at BaksDev\Products\Product\Controller\Public\ModelController->model()
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:29)
at require_once('/home/dvz.all.baks.dev/vendor/autoload_runtime.php')
(public/index.php:5)
|
|
[1/2]
ErrorException
|
|---|
ErrorException:
Warning: Attempt to read property "field_public" on array
at vendor/baks-dev/products-product/Repository/ProductModel/ProductModelResult.php:207
at BaksDev\Products\Product\Repository\ProductModel\ProductModelResult::{closure:BaksDev\Products\Product\Repository\ProductModel\ProductModelResult::getCategorySectionField():207}()
at array_filter()
(vendor/baks-dev/products-product/Repository/ProductModel/ProductModelResult.php:207)
at BaksDev\Products\Product\Repository\ProductModel\ProductModelResult->getCategorySectionField()
(vendor/twig/twig/src/Extension/CoreExtension.php:1919)
at Twig\Extension\CoreExtension::getAttribute()
(var/cache/dev/twig/2f/2f799b81c855e280e0746a5435663381.php:79)
at __TwigTemplate_069691813d015a08aea76dc4e0348200->doDisplay()
(vendor/twig/twig/src/Template.php:402)
at Twig\Template->yield()
(vendor/twig/twig/src/Template.php:358)
at Twig\Template->display()
(vendor/twig/twig/src/Template.php:373)
at Twig\Template->render()
(vendor/twig/twig/src/TemplateWrapper.php:51)
at Twig\TemplateWrapper->render()
(vendor/twig/twig/src/Extension/CoreExtension.php:1526)
at Twig\Extension\CoreExtension::include()
(var/cache/dev/twig/35/358ee1d1c030e36828a0264ac9738f1b.php:55)
at __TwigTemplate_3244bd783b20fe64e669a34f99514b50->doDisplay()
(vendor/twig/twig/src/Template.php:402)
at Twig\Template->yield()
(vendor/twig/twig/src/Template.php:358)
at Twig\Template->display()
(vendor/twig/twig/src/Template.php:373)
at Twig\Template->render()
(vendor/twig/twig/src/TemplateWrapper.php:51)
at Twig\TemplateWrapper->render()
(vendor/twig/twig/src/Extension/CoreExtension.php:1526)
at Twig\Extension\CoreExtension::include()
(var/cache/dev/twig/e0/e08f3dd5cf47e6383e7d932b994ece4a.php:332)
at __TwigTemplate_5d222addca96b43c78a7051860cbe725->block_content()
(vendor/twig/twig/src/Template.php:446)
at Twig\Template->yieldBlock()
(var/cache/dev/twig/5f/5fe47bcdb11345a84ceaa805d52f53d6.php:127)
at __TwigTemplate_566c2218864d31dd653cd6dc4d4f0f99->doDisplay()
(vendor/twig/twig/src/Template.php:402)
at Twig\Template->yield()
(var/cache/dev/twig/e0/e08f3dd5cf47e6383e7d932b994ece4a.php:56)
at __TwigTemplate_5d222addca96b43c78a7051860cbe725->doDisplay()
(vendor/twig/twig/src/Template.php:402)
at Twig\Template->yield()
(vendor/twig/twig/src/Template.php:358)
at Twig\Template->display()
(vendor/twig/twig/src/Template.php:373)
at Twig\Template->render()
(vendor/twig/twig/src/TemplateWrapper.php:51)
at Twig\TemplateWrapper->render()
(vendor/twig/twig/src/Environment.php:333)
at Twig\Environment->render()
(vendor/baks-dev/core/Controller/AbstractController.php:359)
at BaksDev\Core\Controller\AbstractController->render()
(vendor/baks-dev/products-product/Controller/Public/ModelController.php:71)
at BaksDev\Products\Product\Controller\Public\ModelController->model()
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:29)
at require_once('/home/dvz.all.baks.dev/vendor/autoload_runtime.php')
(public/index.php:5)
|