Error

Call to undefined function mb_strlen()

/var/www/bestcoach/site/protected/helpers/CCustom.php(63)

51     {
52         $cases = array (2, 0, 1, 1, 1, 2);
53         return $titles[ ($number%100>4 && $number%100<20)? 2 : $cases[min($number%10, 5)] ];
54     }
55 
56     /**
57      * @param string $str
58      * @param int    $len
59      * @param string $suffix
60      * @return string
61      */
62     public static function cutString($str, $len = 150, $suffix = '...'){
63         if(mb_strlen($str) > $len){
64             return mb_substr($str, 0, $len, 'utf-8').$suffix;
65         }
66 
67         return $str;
68     }
69 
70 }
71 ?>

Stack Trace

#0
+
 /var/www/bestcoach/site/protected/views/blog/_article/_coachBlock.php(39): CCustom::cutString("Консультации от известного коуча О...", 200)
34 
35         <div class="clearboth"></div>
36 
37         <div class="b-coach__text">
38             <p>
39             <?php echo CCustom::cutString(strip_tags($coach->about), 200); ?>
40             </p>
41             <div class="b-coach__text__more"><a href="/coach/profile/id/<?php echo $coach->id ?>">подробнее о коуче...</a></div>
42         </div>
43 
44     </div>
#4
+
 /var/www/bestcoach/site/protected/views/blog/article.php(50): CController->renderPartial("/blog/_article/_coachBlock", array("model" => Article, "coach" => Coach))
45                     var h=d[g]('body')[0];
46                     h.appendChild(s);
47                 }})();</script>
48         <div class="pluso" data-background="none;" data-options="medium,square,line,horizontal,counter,sepcounter=1,theme=14" data-services="facebook,vkontakte,twitter,google,linkedin" data-user="1588320502"></div>
49 
50         <?php if($model->author_id != 124) echo $this->renderPartial('/blog/_article/_coachBlock', array('model'=>$model, 'coach'=>$coach));?>
51         <?php echo Yii::app()->user->isCoach() ? $this->renderPartial('/blog/_article/_comments', array('article'=>$model, 'coach'=>$coach, 'comment'=>$comment)) : '';?>
52 
53     </div>
54 
55     <div class="b-right">
#9
+
 /var/www/bestcoach/site/protected/controllers/BlogController.php(81): CController->render("article", array("model" => Article, "coach" => Coach, "comment" => ArticleComment, "advertCoaches" => array(Coach, Coach, Coach)))
76 
77         $this->render('article',array(
78             'model'=>$article,
79             'coach'=>$article->author,
80             'comment'=>$comment,
81             'advertCoaches'=>$advertCoaches,
82         ));
83     }
84 
85     public function actionDeleteComment($id){
86 
2024-03-28 22:49:48 nginx/1.10.3 Yii Framework/1.1.13