Twig_Error_Runtime

An exception has been thrown during the rendering of a template ("Video and its behaviors do not have a method or closure named "type".") in "/views/site/propagandaView.twig" at line 26.

/var/www/html/protected/libs/Twig/Template.php(279)

267                 $e->setTemplateFile($this->getTemplateName());
268             }
269 
270             // this is mostly useful for Twig_Error_Loader exceptions
271             // see Twig_Error_Loader
272             if (false === $e->getTemplateLine()) {
273                 $e->setTemplateLine(-1);
274                 $e->guess();
275             }
276 
277             throw $e;
278         } catch (Exception $e) {
279             throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, null, $e);
280         }
281     }
282 
283     /**
284      * Auto-generated method to display the template with the given context.
285      *
286      * @param array $context An array of parameters to pass to the template
287      * @param array $blocks  An array of blocks to pass to the template
288      */
289     abstract protected function doDisplay(array $context, array $blocks = array());
290 
291     /**

Stack Trace

#0
+
 /var/www/html/protected/libs/Twig/Template.php(238): Twig_Template->displayWithErrorHandling(array("modelsList" => array(Propaganda, Propaganda, Propaganda, Propaganda, ...), "pagination" => "<div class="b-pagination"><div class="b-pagination-inner"><ul cl...", "congressesList" => array(Congress, Congress, Congress, Congress, ...), "lastNews" => array(), ...), array("breadcrumbs" => array(__TwigTemplate_9771c6635f790b67fe970b417e5553b3, "block_breadcrumbs"), "content" => array(__TwigTemplate_9771c6635f790b67fe970b417e5553b3, "block_content")))
233     /**
234      * {@inheritdoc}
235      */
236     public function display(array $context, array $blocks = array())
237     {
238         $this->displayWithErrorHandling($this->env->mergeGlobals($context), $blocks);
239     }
240 
241     /**
242      * {@inheritdoc}
243      */
#1
+
 /var/www/html/protected/runtime/twig_cache/97/71/c6635f790b67fe970b417e5553b3.php(29): Twig_Template->display(array("modelsList" => array(Propaganda, Propaganda, Propaganda, Propaganda, ...), "pagination" => "<div class="b-pagination"><div class="b-pagination-inner"><ul cl...", "congressesList" => array(Congress, Congress, Congress, Congress, ...), "lastNews" => array(), ...), array("breadcrumbs" => array(__TwigTemplate_9771c6635f790b67fe970b417e5553b3, "block_breadcrumbs"), "content" => array(__TwigTemplate_9771c6635f790b67fe970b417e5553b3, "block_content")))
24     {
25         // line 2
26         $context["macros"] = $this->env->loadTemplate("/views/propagandaMacros.twig");
27         // line 4
28         $context["pageTitle"] = "Пропаганда";
29         $this->parent->display($context, array_merge($this->blocks, $blocks));
30     }
31 
32     // line 6
33     public function block_breadcrumbs($context, array $blocks = array())
34     {
#2
+
 /var/www/html/protected/libs/Twig/Template.php(264): __TwigTemplate_9771c6635f790b67fe970b417e5553b3->doDisplay(array("modelsList" => array(Propaganda, Propaganda, Propaganda, Propaganda, ...), "pagination" => "<div class="b-pagination"><div class="b-pagination-inner"><ul cl...", "congressesList" => array(Congress, Congress, Congress, Congress, ...), "lastNews" => array(), ...), array())
259     }
260 
261     protected function displayWithErrorHandling(array $context, array $blocks = array())
262     {
263         try {
264             $this->doDisplay($context, $blocks);
265         } catch (Twig_Error $e) {
266             if (!$e->getTemplateFile()) {
267                 $e->setTemplateFile($this->getTemplateName());
268             }
269 
2024-03-28 11:44:19 Apache/2.4.7 (Ubuntu) Yii Framework/1.1.14