PHP error

Array and string offset access syntax with curly braces is deprecated

/home/bangsaonline/public_html/protected/views/front/site/block-bawah-berita-topik-populer.php(49)

37                                 b.news_id,b.news_content,b.news_title,b.news_date,b.news_slug,b.ayat,b.oleh,cr.post_id,cr.category_id, fls.filename
38                                 FROM module_news b 
39                                 INNER JOIN category_relationship cr ON(cr.category_id='$thiscat')
40                                 LEFT JOIN view_files fls ON(fls.object_id=b.news_id)
41                                 WHERE cr.post_id = b.news_id 
42                                 AND news_type='1' 
43                                 AND b.news_status=1
44                                 ORDER BY b.news_id DESC LIMIT 2";
45                 }
46                 $lastnewscat = Yii::app()->db->createCommand($sqlastnewscat)->queryAll();
47                 Yii::app()->cache->set('latest_news_Catc_' . $keysL, $lastnewscat, 300);
48             } else {
49                 $lastnewscat = $latest_newsCat {
50                     $keysL
51                 }
52                 ;
53             }
54             $news_id .= $lastnewscat[0]['news_id'] . ',' . $lastnewscat[1]['news_id'] . ',';
55             $dataimgnews['filename'] = $lastnewscat[0]['filename'];
56             ?>
57 
58             <?php if ($dwidget['widget_style'] == "1" || $dwidget['widget_style'] == "0") { ?>
59                 <div class="widget popular-posts-widget pb-30">
60                     <div class="title-cat-berita">
61                         <h4 class="widget-title"><span><a href="<?php echo get_link($slugcat['category_slug'], "kanal"); ?>">

Stack Trace

#3
+
 /home/bangsaonline/public_html/protected/views/front/site/sidebar.php(16): CController->renderPartial("//site/block-bawah-berita-topik-populer")
11         <?php if ($d_banner_polling_pos->value == 2): ?>
12             <?php $this->renderPartial('//site/widget_polling_pemilu'); ?>
13         <?php endif ?>
14         
15         
16         <?php echo $this->renderPartial('//site/block-bawah-berita-topik-populer'); ?>
17         <?php echo $this->renderPartial('//site/block-ekoran'); ?>
18         <?php echo $this->renderPartial('//site/block-bawah-ekoran'); ?>
19         <?php echo $this->renderPartial('//site/iklan-sidebar-atas-1'); ?>
20         <?php echo $this->renderPartial('//site/block-video-thumbs'); ?>
21         <?php echo $this->renderPartial('//site/block-bawah-video'); ?>
#7
+
 /home/bangsaonline/public_html/protected/views/front/berita/detail.php(737): CController->renderPartial("//site/sidebar")
732                     </main>
733                     <!--~./ end site main ~-->
734                 </div>
735 
736                 <!-- start sidebar -->
737                 <?php $this->renderPartial('//site/sidebar'); ?>
738                 <!-- end sidebar -->
739 
740             </div>
741         </div>
742     </div><!--~./ end main wrapper ~-->
#12
+
 /home/bangsaonline/public_html/protected/controllers/front/BeritaController.php(78): CController->render("detail", array("data" => array("news_id" => "82437", "news_title" => "Alhamdulillah, ​Kasus Aktif Covid-19 di Jatim Terendah ke-2 Se...", "news_content" => "<p><b style="background-color: initial;">SURABAYA, BANGSAONLINE...", "news_excerpt" => "<p>Jawa Timur konsisten memiliki kesembuhan yang lebih tinggi di...", ...), "slugid" => "82437/alhamdulillah-​kasus-aktif-covid-19-di-jatim-terendah-ke..."))
73             }
74 
75             $this->amp_url = get_link_berita_amp("berita",$dataReader['news_id'],$dataReader['news_slug']);
76 
77             if(!empty($dataReader)){
78                 $this->render('detail', array('data' => $dataReader, 'slugid'=>$dataReader['news_id']."/".$dataReader['news_slug']));
79             }else{
80                 $this->redirect('/', 301);
81                 // throw new CHttpException(404,'Maaf, halaman yang anda cari tidak ditemukan.');
82             }
83 
2026-05-09 16:01:50 Apache Yii Framework/1.1.14