PHP notice

Trying to get property of non-object

/home1/wwwroot/www.marydown.com/sites/protected/views/site/news.php(6)

01 <?php
02   $this->pageTitle=stripslashes($data_news->title).' - '.Yii::app()->name;
03   Yii::app()->clientScript->registerMetaTag(stripslashes($data_news->title).','.$data_news->a81.',size:'.$data_news->a88.','.$data_news->a82.';'.trim($data_news->a85),'description'); 
04 ?>
05 <div class="wrap margintop20 clearfix"> 
06   <div class="h2"><a href='<?php echo Tool::get_domain_path();?>/'>Home</a>&nbsp;&nbsp;&raquo;&nbsp;&nbsp;<a href='<?php echo Tool::get_domain_path();?>/plat_<?php echo $plat_name;?>/'><?php echo ucwords($plat_name);?></a>&nbsp;&nbsp;&raquo;&nbsp;&nbsp;<a href='<?php echo Tool::get_domain_path();?>/<?php echo $data_category->catdir;?>/'><?php echo ucwords($data_category->catname);?></a></div>
07   
08   <div class="pleft"  id="qire-playc">
09     <div class="pinfo">
10       <div class="pic">
11       <?php
12         $str_img='';
13         if($data_news->icon!=''){
14             $str_img=Tool::get_zheng($data_news->icon);
15         }else if($data_news->pic!=''){
16             $arr=explode('||',$data_news->pic);       
17             $str_img=$arr[0];
18         }else if($data_news->a_pic_cj_jihe!=''){

Stack Trace

#4
+
 /home1/wwwroot/www.marydown.com/sites/protected/controllers/SiteController.php(626): CController->render("news", array("data_news" => PhpcmsContent, "content" => "Duplicate Cleaner is a System Utilities software developed by Di...", "data_category" => null, "str_wiki_list" => "<li> <a href="/file_search/QuickScan-2-0.ht...", ...))
621                           'data_news'=>$data_news,
622                           'content'=>$content,
623                           'data_category'=>$data_category,
624                           'str_wiki_list'=>$str_wiki_list,
625                           'plat_name'=>$plat_name,
626                       )); 
627 
628                   /********** news end **************/
629               }     
630               
631           }
#14
+
 /home1/wwwroot/www.marydown.com/sites/index.php(18): CApplication->run()
13 defined('YII_DEBUG') or define('YII_DEBUG',true);
14 // specify how many levels of call stack should be shown in each log message
15 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
16 
17 require_once($yii);
18 Yii::createWebApplication($config)->run();
2024-03-29 21:42:54 nginx/1.14.1 Yii Framework/1.1.13