PHP notice

Trying to get property of non-object

/var/www/vhosts/znuweb/protected/controllers/OpinionController.php(151)

139         if(  (isset(Yii::app()->request->cookies['lang']))  and  ( (Yii::app()->request->cookies['lang']->value=='fa') OR  (Yii::app()->request->cookies['lang']->value=='en') ) )
140           { 
141           $language = Yii::app()->request->cookies['lang']->value;
142           $this->layout = '//layouts/'.$qjrnltm->theme_address.'/main_'.$language.'_blank';
143           }
144             else
145           { 
146           Yii::app()->request->cookies['lang'] = new CHttpCookie('lang',$qjrnl->lang1);
147           $language = $qjrnl->lang1;
148           $this->layout = '//layouts/'.$qjrnltm->theme_address.'/main_'.$qjrnl->lang1.'_blank';
149           }
150        }              
151           Yii::app()->language = Yii::app()->request->cookies['lang']->value;
152             
153         
154         
155         $model=new Opinion;
156         //$model->unsetAttributes();  // clear any default values
157 
158         // Uncomment the following line if AJAX validation is needed
159             // ajax validator
160         $this->performAjaxValidation($model);
161 
162         if(isset($_POST['Opinion']))
163         {

Stack Trace

#12
+
 /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();
2024-12-22 06:48:07 Apache Yii Framework/1.1.14