CException

PgController and its behaviors do not have a method or closure named "loadJournalName".

/var/www/vhosts/znuweb/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

#0
+
 /var/www/vhosts/znuweb/protected/controllers/PgController.php(83): CComponent->__call("loadJournalName", array())
78     $jrnl = 'news'; // As of PHP 5.3.0
79             $qjrnl = Journals::model()->findByAttributes(array('url' => $jrnl));
80 */            
81             
82             
83             $jrnl=$this->loadJournalName();
84 
85 
86  $qjrnl=$this->qjrnl;
87  $qjrnltm=$this->qjrnltm;
88  $id2=$this->id2;
#1
+
 /var/www/vhosts/znuweb/protected/controllers/PgController.php(83): PgController->loadJournalName()
78     $jrnl = 'news'; // As of PHP 5.3.0
79             $qjrnl = Journals::model()->findByAttributes(array('url' => $jrnl));
80 */            
81             
82             
83             $jrnl=$this->loadJournalName();
84 
85 
86  $qjrnl=$this->qjrnl;
87  $qjrnltm=$this->qjrnltm;
88  $id2=$this->id2;
#7
+
 /var/www/vhosts/znuweb/protected/controllers/PgController.php(46): CFilterChain->run()
41           }
42 }              
43           Yii::app()->language = Yii::app()->request->cookies['lang']->value;
44 
45 
46         $filterChain->run();
47     }
48     
49       public function accessRules()
50     {
51         return array(
2025-02-07 15:39:52 Apache Yii Framework/1.1.14