PHP warning

count(): Parameter must be an array or an object that implements Countable

/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Extension/Core.php(1199)

1187 // add multibyte extensions if possible
1188 if (function_exists('mb_get_info')) {
1189     /**
1190      * Returns the length of a variable.
1191      *
1192      * @param Twig_Environment $env   A Twig_Environment instance
1193      * @param mixed            $thing A variable
1194      *
1195      * @return integer The length of the value
1196      */
1197     function twig_length_filter(Twig_Environment $env, $thing)
1198     {
1199         return is_scalar($thing) ? mb_strlen($thing, $env->getCharset()) : count($thing);
1200     }
1201 
1202     /**
1203      * Converts a string to uppercase.
1204      *
1205      * @param Twig_Environment $env    A Twig_Environment instance
1206      * @param string           $string A string
1207      *
1208      * @return string The uppercased string
1209      */
1210     function twig_upper_filter(Twig_Environment $env, $string)
1211     {

Stack Trace

#0
+
 /var/www/u1302250/data/home/wb/waysbook/server/protected/runtime/twigCache/2b/cc/4e6725fafe75be9cc605d3aacda1a5af42905ba7a3474bf392e1a66e3547.php(272): twig_length_filter(Twig_Environment, null)
267         $context = array_intersect_key($context, $_parent) + $_parent;
268         // line 154
269         echo "                            </span>
270                             ";
271         // line 155
272         if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["mostViewed"]) ? $context["mostViewed"] : null), 0, array(), "array"), "cityNames")) > 200)) {
273             // line 156
274             echo "                                <span class=\"route\">";
275             echo twig_slice($this->env, $this->getAttribute($this->getAttribute((isset($context["mostViewed"]) ? $context["mostViewed"] : null), 0, array(), "array"), "cityNames"), 0, 190);
276             echo "</span>
277                                 ...
#1
+
 /var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(144): __TwigTemplate_2bcc4e6725fafe75be9cc605d3aacda1a5af42905ba7a3474bf392e1a66e3547->block_bodyContent(array("mostVisited" => array(Country, City, City, City, ...), "routes" => array(Route, Route, Route, Route, ...), "mostViewed" => array(null, null, null, null, ...), "recentNews" => array(Journal, Journal, Journal, Journal, ...), ...), array("title" => array(__TwigTemplate_2bcc4e6725fafe75be9cc605d3aacda1a5af42905ba7a3474bf392e1a66e3547, "block_title"), "endScripts" => array(__TwigTemplate_2bcc4e6725fafe75be9cc605d3aacda1a5af42905ba7a3474bf392e1a66e3547, "block_endScripts")))
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             }
#2
+
 /var/www/u1302250/data/home/wb/waysbook/server/protected/runtime/twigCache/e5/09/214370e9699ca5415b303b0ed59472f1550d9a5fa4b886fdaef521b234ba.php(83): Twig_Template->displayBlock("bodyContent", array("mostVisited" => array(Country, City, City, City, ...), "routes" => array(Route, Route, Route, Route, ...), "mostViewed" => array(null, null, null, null, ...), "recentNews" => array(Journal, Journal, Journal, Journal, ...), ...), array("title" => array(__TwigTemplate_2bcc4e6725fafe75be9cc605d3aacda1a5af42905ba7a3474bf392e1a66e3547, "block_title"), "endScripts" => array(__TwigTemplate_2bcc4e6725fafe75be9cc605d3aacda1a5af42905ba7a3474bf392e1a66e3547, "block_endScripts")))
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
2024-03-28 14:05:20 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