PHP notice

Trying to get property 'id' of non-object

/home1/zaitunid/parokikosambibaru.or.id/protected/modules/public/views/news/detail.php(30)

18             <br/>
19             <div class="content-line">&nbsp;</div>
20             <div class="content-line-text">Agenda</div>
21             <div class="content-line">&nbsp;</div>
22             <div class="clear"></div>
23         </div>
24         
25         
26         <div class="row">
27             <div class="profil-pastor visi">
28                 <div class="profil-pastor-left news">
29                     <center>
30                             <?php echo CHtml::image(Yii::app()->baseUrl . '/images/news/'.$detail->id. $detail->image, 'image'); ?>
31                     </center>
32                 </div>
33                 <div class="profil-pastor-separator news">
34                     &nbsp;
35                 </div>
36                 <div class="profil-pastor-right news">
37                     <div class="pastor-title"><?php echo CHtml::encode(CHtml::value($detail, 'title')); ?></div>
38 
39                     <br/><br/>
40                     <div class="pastor-long-desc">
41                         <?php $this->beginWidget('CHtmlPurifier'); ?>
42                             <?php echo nl2br(CHtml::value($detail, 'description')); ?>

Stack Trace

#4
+
 /home1/zaitunid/parokikosambibaru.or.id/protected/modules/public/controllers/NewsController.php(53): CController->render("detail", array("detail" => null, "banner" => Banner))
48         $detail =  News::model()->findByPk($newsID);
49         $banner = Banner::model()->findByPk(8);
50         
51         $this->render('detail', array(
52             'detail' => $detail,
53             'banner' => $banner
54         ));
55     
56     }
57     
58 
#14
+
 /home1/zaitunid/parokikosambibaru.or.id/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-03-28 15:20:06 Apache Yii Framework/1.1.13