Twig_Error_Runtime

An exception has been thrown during the rendering of a template ("[curl] 6: Could not resolve host: query.yahooapis.com [url] http://query.yahooapis.com/v1/public/yql?q=SELECT%20%2A%20FROM%20geo.placefinder%20WHERE%20text%3D%2241.910225715932260%2C12.535997900000098%22%20AND%20gflags%3D%22R%22&format=json") in "encyclopedia/city/_layout.twig" at line 201.

/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(148)

136             $block = $this->blocks[$name][1];
137         } else {
138             $template = null;
139             $block = null;
140         }
141 
142         if (null !== $template) {
143             try {
144                 $template->$block($context, $blocks);
145             } catch (Twig_Error $e) {
146                 throw $e;
147             } catch (Exception $e) {
148                 throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getTemplateName(), $e);
149             }
150         } elseif (false !== $parent = $this->getParent($context)) {
151             $parent->displayBlock($name, $context, array_merge($this->blocks, $blocks));
152         }
153     }
154 
155     /**
156      * Renders a parent block.
157      *
158      * This method is for internal use only and should never be called
159      * directly.
160      *

Stack Trace

#0
+
 /var/www/u1302250/data/home/wb/waysbook/server/protected/runtime/twigCache/e5/09/214370e9699ca5415b303b0ed59472f1550d9a5fa4b886fdaef521b234ba.php(83): Twig_Template->displayBlock("bodyContent", array("country" => Country, "region" => Region, "city" => City, "this" => EncyclopediaController, ...), array("cityContent" => array(__TwigTemplate_f5f62184a7599a94282d9c1c7f62def74e62b04d52579b4891b37091a8bdf940, "block_cityContent")))
78         echo "</head>
79 
80 <body>
81 ";
82         // line 36
83         $this->displayBlock('bodyContent', $context, $blocks);
84         // line 37
85         echo "<script>
86     window.params = {
87         userFollowUrl: '";
88         // line 39
#1
+
 /var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(278): __TwigTemplate_e509214370e9699ca5415b303b0ed59472f1550d9a5fa4b886fdaef521b234ba->doDisplay(array("country" => Country, "region" => Region, "city" => City, "this" => EncyclopediaController, ...), array("bodyContent" => array(__TwigTemplate_f1ec8e464827d1bfeaed1147492731ee2dc5e4e6000d314bcfe79bbdc1c2e590, "block_bodyContent"), "cityContent" => array(__TwigTemplate_f5f62184a7599a94282d9c1c7f62def74e62b04d52579b4891b37091a8bdf940, "block_cityContent")))
273     }
274 
275     protected function displayWithErrorHandling(array $context, array $blocks = array())
276     {
277         try {
278             $this->doDisplay($context, $blocks);
279         } catch (Twig_Error $e) {
280             if (!$e->getTemplateFile()) {
281                 $e->setTemplateFile($this->getTemplateName());
282             }
283 
#2
+
 /var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(252): Twig_Template->displayWithErrorHandling(array("country" => Country, "region" => Region, "city" => City, "this" => EncyclopediaController, ...), array("bodyContent" => array(__TwigTemplate_f1ec8e464827d1bfeaed1147492731ee2dc5e4e6000d314bcfe79bbdc1c2e590, "block_bodyContent"), "cityContent" => array(__TwigTemplate_f5f62184a7599a94282d9c1c7f62def74e62b04d52579b4891b37091a8bdf940, "block_cityContent")))
247     /**
248      * {@inheritdoc}
249      */
250     public function display(array $context, array $blocks = array())
251     {
252         $this->displayWithErrorHandling($this->env->mergeGlobals($context), $blocks);
253     }
254 
255     /**
256      * {@inheritdoc}
257      */
2024-03-29 10:29:04 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 Phusion_Passenger/5.3.7 Yii Framework/1.1.14