PHP notice

Trying to get property of non-object

/var/www/avto/yii/sp-avto/protected/widget/SearchMenu.php(152)

140         $model=RfTCity::model()->with('region')->findAll(array('condition'=>$city_where,'order'=>'"t"."region_id","t"."name"'));
141         $city_list=array();
142         foreach($model as $k => $v ){
143             $city_list[]=array('id'=>$v->id,'name'=>$v->name, 'title'=>$v->region['name']);
144         }
145 
146         //$city_list=RfTCity::model()->findAll(array('order'=>'name'));
147         $status_list=RfTStatus::model()->findAll(array('order'=>'title desc','condition'=>'id<>0'));
148 
149         if (Yii::app()->user->hasState("category")) {
150           $category=Yii::app()->user->getState("category");
151           $carCategory=RfTCarCategory::model()->findByAttributes(array('code'=>$category));
152           $catId=$carCategory->id;
153         }else{
154           $catId=1;
155         }
156 
157 
158         $mark_list=array();
159         if (count($status)>0){
160             $mark_list=RfTMark::model()->findAll(array('order'=>'title','condition'=>'"t".mark_id in (select mark_id from rf_t_model where category='.$catId.')'));
161         }
162         //print_r($mark_list);
163 
164         $model_where="";

Stack Trace

#1
+
 /var/www/avto/yii/sp-avto/themes/kupocar/views/layouts/column1.php(31): CBaseController->widget("application.widget.SearchMenu")
26         </div>
27 
28         <!-- Правый фильтр -->
29         <div id="sidebar_right">
30             <div class="top"><div class="bottom"><div class="content">
31                 <?php $this->widget('application.widget.SearchMenu'); ?>
32             </div></div></div>
33         <!-- Реклама под правым фильтром -->
34             <div class="top"><div class="bottom"><div class="content">
35                 <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
36                 <ins class="adsbygoogle"
#5
+
 /var/www/avto/yii/sp-avto/protected/controllers/SiteController.php(431): CController->render("index", array("country_code" => "md", "currency_list" => array(RfTCurrency, RfTCurrency, RfTCurrency), "currency" => array("id" => 8, "title" => "MDL", "short" => "lei", "rate" => "1", ...), "ids" => array(), ...))
426             'currency'=>$this->currency,
427             'ids'=>$this->favorites_ids,
428             'offers'=>$offers,
429             'pageSize'=>$pageSize,
430             'order'=>$order,
431         ));
432     }
433 
434     public function actionSetSess($name){
435         Yii::app()->user->setState($name,@$_POST[$name]);
436         //$_SESSION[$name] = $_POST[$name];
#20
+
 /var/www/avto/yii/sp-avto/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();
14 //Yii::createWebApplication($config)->runEnd('frontend');
2017-07-25 18:50:46 Apache/2.2.22 (Debian) Yii Framework/1.1.13