CException

Groups and its behaviors do not have a method or closure named "getTranslation".

/usr/www/users/comeonp/yii-1.1.14/framework/base/CComponent.php(266)

254     public function __call($name,$parameters)
255     {
256         if($this->_m!==null)
257         {
258             foreach($this->_m as $object)
259             {
260                 if($object->getEnabled() && method_exists($object,$name))
261                     return call_user_func_array(array($object,$name),$parameters);
262             }
263         }
264         if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure)
265             return call_user_func_array($this->$name, $parameters);
266         throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".',
267             array('{class}'=>get_class($this), '{name}'=>$name)));
268     }
269 
270     /**
271      * Returns the named behavior object.
272      * The name 'asa' stands for 'as a'.
273      * @param string $behavior the behavior name
274      * @return IBehavior the behavior object, or null if the behavior does not exist
275      */
276     public function asa($behavior)
277     {
278         return isset($this->_m[$behavior]) ? $this->_m[$behavior] : null;

Stack Trace

#1
+
 /usr/www/users/comeonp/themes/classic/views/site/status.php(38): CActiveRecord->__call("getTranslation", array("name"))
33               }
34           }
35           ?>
36             <div class="col-md-<?=$colSize?> group-wrapper" style="margin-top:<?=$margin?>px">
37                 <div class="group-box">
38                     <a href="<?=$this->createUrl('/groups/display', array('id'=>$group->group_id))?>"><?=$group->getTranslation('name')?></a>
39                     <br><?=count($group->getRelated('questions'))?> <?=$this->t('questions')?>
40                 </div>
41             </div>
42           <?php endforeach; ?>
43           <?php
#6
+
 /usr/www/users/comeonp/protected/controllers/SiteController.php(29): CController->render("status", array("groups" => array(Groups, Groups, Groups, Groups, ...)))
24         public function actionStatus()
25         {
26             $this->layout = '/layouts/layout_full';
27             $groups = Groups::getTopGroups();
28             $this->render('status', array(
29                 'groups'=>$groups
30             ));
31         }
32         
33     /**
34      * This is the default 'index' action that is invoked
#11
+
 /usr/www/users/comeonp/protected/components/Controller.php(43): CController->run("status")
38                 }
39                 if ($actionID !== 'maintain' && !$trustedIP) {
40                     $this->redirect (array('/site/maintain'));
41                 }
42             }
43             parent::run($actionID);
44         }
45         
46         public function t($string, $category = null)
47         {
48             if ($category) {
2024-03-29 11:35:03 Apache Yii Framework/1.1.14