PHP notice

Trying to access array offset on value of type bool

/var/www/html/protected/views/site/berita_detail.php(2)

01 <div class="singlepage">
02     <h2><?php echo $berita['judul']; ?></h2>
03     <?php echo $berita['date_add']; ?>
04     <?php echo '|| Sudah dibaca sebanyak : '.$berita['view_count']. 'X'; ?>
05     <?php if($berita['gambar']!=''):?>
06         <img class="gambarkiri" width="250" height="150" src="upload/gambar/<?php echo $berita['gambar']; ?>" alt="" /> <br />
07     <?php endif; ?>
08     <?php //echo $berita['isi']."<i>(Editor : ".$model_berita->tbl_user->username." dan disetujui oleh : ".$model_berita->tbl_approve->username.")</i>"; ?>
09     <?php echo $berita['isi']; ?>    
10 </div>

Stack Trace

#4
+
 /var/www/html/protected/controllers/SiteController.php(67): CController->render("berita_detail", array("berita" => false, "model_berita" => Berita))
62         
63 
64         // print_r(Yii::app()->session['bahasa']);
65         $this->render('berita_detail',array(
66             'berita'=>$berita,
67             'model_berita'=>$model_berita,
68         ));        
69     }
70 
71     public function actionBerita_list($id=0, $id_bidang=0)
72     {
#14
+
 /var/www/html/index.php(16): CApplication->run()
11 // remove the following line when in production mode
12 defined('YII_DEBUG') or define('YII_DEBUG',true);
13 //defined('YII_DEBUG_SHOW_PROFILER') or define('YII_DEBUG_SHOW_PROFILER',true);
14 
15 require_once($yii);
16 Yii::createWebApplication($config)->run();
17  /*if((!empty( $_SERVER['HTTP_X_FORWARDED_HOST'])) || (!empty( $_SERVER['HTTP_X_FORWARDED_FOR'])) ) {
18      $_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
19      $_SERVER['HTTPS'] = 'on';
20  }*/
2024-03-19 13:11:00 Apache/2.4.46 (Ubuntu) Yii Framework/1.1.15