https://www.c.dev.slivki.by/tv/shaurma-ot-4r-v-kafe-shaurma-1

Exceptions

Impossible to access an attribute ("category") on a boolean variable ("").

  • Exception
  • Logs
  • Stack Trace

Twig\Error\ RuntimeError

  1. {% block mainColumnClass %}{{ parent() }} one-column videoguide-details{% endblock %}
  2. {% block main_content %}
  3.     <div class="breadcrumbs">
  4.         <a href="{{ base_url }}">Главная</a>
  5.         <i class="fa fa-angle-right"></i><a href="{{ getURL("Slivki:Sale:category", videoguideCategory.category.getID()) }}"> {{ videoguideCategory.category.getName() }}</a>
  6.         <i class="fa fa-angle-right"></i> {{ sale.getTitle() }}
  7.     </div>
  8.     <div class="clear"></div>
  9.     <div id="videoGuideDetailsContent">
  10.         <iframe width="560" height="315" src="//www.youtube.com/embed/{{ sale.getVideoGuideYoutubeID() }}" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  1.         // line 13
  2.         echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'13$this->source); })()), "html"nulltrue);
  3.         echo "\">Главная</a>
  4.         <i class=\"fa fa-angle-right\"></i><a href=\"";
  5.         // line 14
  6.         echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Sale:category"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["videoguideCategory"]) || array_key_exists("videoguideCategory"$context) ? $context["videoguideCategory"] : (function () { throw new RuntimeError('Variable "videoguideCategory" does not exist.'14$this->source); })()), "category", [], "any"falsefalsefalse14), "getID", [], "method"falsefalsefalse14)), "html"nulltrue);
  7.         echo "\"> ";
  8.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["videoguideCategory"]) || array_key_exists("videoguideCategory"$context) ? $context["videoguideCategory"] : (function () { throw new RuntimeError('Variable "videoguideCategory" does not exist.'14$this->source); })()), "category", [], "any"falsefalsefalse14), "getName", [], "method"falsefalsefalse14), "html"nulltrue);
  9.         echo "</a>
  10.         <i class=\"fa fa-angle-right\"></i> ";
  11.         // line 15
in vendor/twig/twig/src/Template.php -> block_main_content (line 171)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         $this->displayBlock('mainColumnParameters'$context$blocks);
  2.         echo ">
  3.                 <div class=\"content-wrapper\">
  4.                     ";
  5.         // line 193
  6.         $this->displayBlock('main_content'$context$blocks);
  7.         // line 194
  8.         echo "                </div>
  9.             </div>
  10.             ";
  11.         // line 196
in vendor/twig/twig/src/Template.php -> block_content (line 171)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         $this->displayBlock('messenger'$context$blocks);
  2.         // line 183
  3.         echo "
  4.     ";
  5.         // line 184
  6.         $this->displayBlock('content'$context$blocks);
  7.         // line 214
  8.         echo "
  9.     ";
  10.         // line 215
  11.         $this->displayBlock('popups'$context$blocks);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/sale/videoguide.html.twig"));
  3.         $this->parent $this->loadTemplate("base.html.twig""Slivki/sale/videoguide.html.twig"1);
  4.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
in vendor/twig/twig/src/Template.php -> display (line 379)
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.     public function render(array $context = []): string
  2.     {
  3.         // using func_get_args() allows to not expose the blocks argument
  4.         // as it should only be used by internal code
  5.         return $this->template->render($context, \func_get_args()[1] ?? []);
  6.     }
  7.     public function display(array $context = [])
  8.     {
  9.         // using func_get_args() allows to not expose the blocks argument
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = []): string
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.     {
  2.         if (!$this->container->has('twig')) {
  3.             throw new \LogicException('You cannot use the "renderView" method if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');
  4.         }
  5.         return $this->container->get('twig')->render($view$parameters);
  6.     }
  7.     /**
  8.      * Renders a view.
  9.      */
  1.     /**
  2.      * Renders a view.
  3.      */
  4.     protected function render(string $view, array $parameters = [], Response $response null): Response
  5.     {
  6.         $content $this->renderView($view$parameters);
  7.         if (null === $response) {
  8.             $response = new Response();
  9.         }
AbstractController->render() in src/Controller/SaleController.php (line 489)
  1.         if ($user && $user->hasRole(UserGroup::STATISTICS_VIEWER)) {
  2.             $data['yesterdayShareClicks'] = $this->getShareClicks($entityID);
  3.         }
  4.         $response $this->render($view$data);
  5.         if ($isFlier) {
  6.             $this->addVisit($entityIDVisit::TYPE_FLIER_DETAILS$deviceType$this->getUser(), $request->getClientIp());
  7.         }
  8.         $this->addVisit($entityIDVisit::TYPE_SALE$deviceType$this->getUser(), $request->getClientIp());
  9.         return $response;
in vendor/symfony/http-kernel/HttpKernel.php -> detailsAction (line 163)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in public/index.php (line 30)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);