Twig_Error_Runtime

An exception has been thrown during the rendering of a template ("CDbCommand failed to execute the SQL statement: SQLSTATE[70100]: <<Unknown error>>: 1317 Query execution was interrupted. The SQL statement executed was: SELECT `blockImage`.`id` AS `t1_c0`, `blockImage`.`block_id` AS `t1_c1`, `blockImage`.`image_id` AS `t1_c2`, `blockImage`.`description` AS `t1_c3`, `blockImage`.`order` AS `t1_c4` FROM `article_photo_gallery_block_image` `blockImage` WHERE (`blockImage`.`block_id`=:ypl0) ORDER BY blockImage.order. Bound with :ypl0='4300'") in "/views/site/biographyView.twig" at line 119.

/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("person" => Person, "jsonVideos" => "[]", "this" => SiteController, "App" => CWebApplication, ...), array("breadcrumbs" => array(__TwigTemplate_e1c48399166edc54bfee5952b0e3df70, "block_breadcrumbs"), "content" => array(__TwigTemplate_e1c48399166edc54bfee5952b0e3df70, "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/e1/c4/8399166edc54bfee5952b0e3df70.php(31): Twig_Template->display(array("person" => Person, "jsonVideos" => "[]", "this" => SiteController, "App" => CWebApplication, ...), array("breadcrumbs" => array(__TwigTemplate_e1c48399166edc54bfee5952b0e3df70, "block_breadcrumbs"), "content" => array(__TwigTemplate_e1c48399166edc54bfee5952b0e3df70, "block_content")))
26         $context["pageTitle"] = $this->getAttribute((isset($context["person"]) ? $context["person"] : null), "name");
27         // line 4
28         $context["ogDescription"] = $this->getAttribute((isset($context["person"]) ? $context["person"] : null), "slogan");
29         // line 5
30         $context["ogImage"] = $this->getAttribute($this->getAttribute((isset($context["person"]) ? $context["person"] : null), "image"), "getThumbnail", array(0 => 280, 1 => 280, 2 => array("mode" => "thumbnail", "noLoad" => true)), "method");
31         $this->parent->display($context, array_merge($this->blocks, $blocks));
32     }
33 
34     // line 7
35     public function block_breadcrumbs($context, array $blocks = array())
36     {
#2
+
 /var/www/html/protected/libs/Twig/Template.php(264): __TwigTemplate_e1c48399166edc54bfee5952b0e3df70->doDisplay(array("person" => Person, "jsonVideos" => "[]", "this" => SiteController, "App" => CWebApplication, ...), 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-29 15:04:28 Apache/2.4.7 (Ubuntu) Yii Framework/1.1.14
CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away. The SQL statement executed was: SELECT `id` FROM `session` WHERE id=:id. Bound with :id='lkhga6dpr38m7sir7v5gjashe4'