CException

Filter "setLanguage" is invalid. Controller "PgController" does not have the filter method "filtersetLanguage".

/var/www/vhosts/znuweb/framework/web/filters/CInlineFilter.php(46)

34      * @return CInlineFilter the created instance
35      * @throws CException if the filter method does not exist
36      */
37     public static function create($controller,$filterName)
38     {
39         if(method_exists($controller,'filter'.$filterName))
40         {
41             $filter=new CInlineFilter;
42             $filter->name=$filterName;
43             return $filter;
44         }
45         else
46             throw new CException(Yii::t('yii','Filter "{filter}" is invalid. Controller "{class}" does not have the filter method "filter{filter}".',
47                 array('{filter}'=>$filterName, '{class}'=>get_class($controller))));
48     }
49 
50     /**
51      * Performs the filtering.
52      * This method calls the filter method defined in the controller class.
53      * @param CFilterChain $filterChain the filter chain that the filter is on.
54      */
55     public function filter($filterChain)
56     {
57         $method='filter'.$this->name;
58         $filterChain->controller->$method($filterChain);

Stack Trace

#6
+
 /var/www/vhosts/znuweb/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2025-04-27 12:31:07 Apache Yii Framework/1.1.31