PHP notice

Trying to get property of non-object

/srv/http/btrworlds.com/htdocs/protected/modules/showroom/controllers/DefaultController.php(328)

316             if (!empty($busi))
317                 $Businesstypes[] = $busi->businesstype;
318         }
319 //经营范围; 
320         $criteria = new CDbCriteria();
321         $Scope = CompanyCats::model()->findAll("companyid=:company", array(':company' => $this->company->id));
322         $company_cats_str = '';
323         if ($Scope) {
324             foreach ($Scope as $b) {
325                 $criteria->select = 'cat_name,root_cat_name';
326                 $criteria->condition = 'cat_id=' . $b->cid;
327                 $cate = CateRelat::model()->find($criteria);
328                 $cat_url = LibCommon::build_url_cat("profile", $cate->cat_name, $cate->root_cat_name, "");
329                 $company_cats_str.= CHtml::link($cate->cat_name, $cat_url, array('target' => '_blank')) . ' , ';
330                 ;
331             }
332         }
333 //服务产品;
334         $products_services_arr = explode(",", $this->company->key_products_services);
335         $products_services_url = '';
336         for ($i = 0; $i < count($products_services_arr); $i++) {
337             if ($products_services_arr[$i] != "") {
338                 $products_services_url.= CHtml::link($products_services_arr[$i], LibCommon::build_keyword_url("products-search", $products_services_arr[$i], ""), array('target' => '_blank')) . ' , ';
339             }
340         }

Stack Trace

#0
+
 /srv/http/btrworlds.com/htdocs/protected/modules/showroom/controllers/DefaultController.php(11): DefaultController->getMemberInfo()
06 
07         if ($pageUrl == 'contact')
08             $pageUrl = 'contactus';
09         if ($pageUrl == 'aboutus'){
10             $pageUrl = 'aboutus';
11             $memberInfo = $this->getMemberInfo();
12 
13             //video;为中国IP的youtube代码显示图,其它显示视频代码
14             if ($this->isFromCN() && strpos($this->company->flashvideo, '.youtube.')) {
15                 /* preg_match('/<.*?src=[\'|\"](.*?)[\'|\"].*?[\/]?>$/', $this->company->flashvideo, $videoUrl); */
16                 if (isset($this->company->rd) && !empty($this->company->rd))
#10
+
 /srv/http/btrworlds.com/htdocs/index.php(17): CApplication->run()
12 // specify how many levels of call stack should be shown in each log message
13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 0); 
14 
15 require_once($yii);
16 
17 Yii::createWebApplication($config)->run();
2024-03-19 11:36:17 nginx/1.4.7 Yii Framework/1.1.12