PHP notice

Trying to get property of non-object

/var/www/vhosts/znuweb/protected/controllers/PageController.php(129)

117           {
118           Yii::app()->request->cookies['lang'] = new CHttpCookie('lang',$lang);
119           $this->layout = '//layouts/'.$qjrnltm->theme_address.'/main_'.$lang;
120           }
121           else if ($qjrnl->activeFa!=0)
122           {
123           Yii::app()->request->cookies['lang'] = new CHttpCookie('lang','fa');
124           $this->layout = '//layouts/'.$qjrnltm->theme_address.'/main_fa';
125           }
126           else
127          $this->layout = '//layouts/members/main_empty';
128           
129           Yii::app()->language = Yii::app()->request->cookies['lang']->value;
130           
131 //MMM in visit baraye index e EN OR fa e gheire subdomain ha ast. pak nashavad
132          $visit = VisitHome::model()->findByAttributes(array('idjrnl' => $id2 ));
133          if ($visit==NULL)
134          {
135         $visit= new VisitHome();
136         $visit->idjrnl=$id2;
137         $visit->save();
138          }
139          
140          
141          

Stack Trace

#5
+
 /var/www/vhosts/znuweb/protected/controllers/PageController.php(64): CFilterChain->run()
59           $this->layout = '//layouts/'.$qjrnltm->theme_address.'/main_'.$qjrnl->lang1;
60           }
61           Yii::app()->language = Yii::app()->request->cookies['lang']->value;
62           
63 }    */    
64         $filterChain->run();
65     }
66     
67     
68       public function accessRules()
69     {
#13
+
 /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-05-11 13:14:29 Apache Yii Framework/1.1.14