PHP error

Array and string offset access syntax with curly braces is deprecated

/home/bangsaonline/public_html/protected/views/front/tag/detail.php(83)

71                                     <div class="col-lg-60">
72                                         <article class="post hentry post-list post-list-small">
73                                             <?php 
74                                                 $news_slug     = $listberita['news_slug'];
75                                                 $news_id     = $listberita['news_id'];
76                                                 $getimage     = "SELECT caption_title,caption_desc,filename FROM view_files WHERE object_id = '$news_id' AND module_id = '1' ";
77                                                 $dataimg     = Yii::app()->db->createCommand($getimage)->queryRow();
78                                                 if(!empty($dataimg)):
79                                             ?>                
80                                             <div class="entry-thumb">
81                                                 <figure class="thumb-wrap">
82                                                     <?php 
83                                                     $captions_t_{$keys} = ($dataimg['caption_title'])? $dataimg['caption_title'] : $dataimg['caption_desc'];
84                                                     ?>
85                                                     <a href="<?php echo get_link_berita('berita',$dataimg['news_id'],$dataimg['news_slug']);?>">
86                                                         <?php echo get_image($dataimg['filename'],"berita",'150x150',$captions_t_{$keys}); ?>
87                                                     </a>
88                                                 </figure><!--./ thumb-wrap -->
89                                             </div><!--./ entry-thumb -->
90                                             <?php endif; ?>
91 
92                                             <div class="content-entry-wrap" <?php if(empty($dataimg)){ ?>style="width:100%!important"<?php } ?> >
93                                                 <div class="entry-content">
94                                                     <h3 class="entry-title">
95                                                         <a href="<?php echo get_link_berita('berita',$listberita['news_id'],$listberita['news_slug']);?>"><?php echo $listberita['news_title']; ?></a>

Stack Trace

#4
+
 /home/bangsaonline/public_html/protected/controllers/front/TagController.php(78): CController->render("detail", array("data" => array(array("news_count" => "1", "tag_name" => "lumajang", "tag_title" => "Lumajang", "news_id" => "136693", ...), array("news_count" => "1", "tag_name" => "lumajang", "tag_title" => "Lumajang", "news_id" => "136384", ...), array("news_count" => "1", "tag_name" => "lumajang", "tag_title" => "Lumajang", "news_id" => "133079", ...), array("news_count" => "1", "tag_name" => "lumajang", "tag_title" => "Lumajang", "news_id" => "132928", ...), ...), "item_count" => 217, "page_size" => 10, "pages" => CPagination, ...))
73                 $this->render('detail', array(
74                                 'data'         => $dataReader['data'],
75                                 'item_count'=> count($dataReader['count']),
76                                 'page_size' => $limit,
77                                 'pages'        => $pages,
78                                 'tagged'    => $tagged
79                 ));
80             }else{
81                 $this->redirect('/', 301);
82                 // throw new CHttpException(404,'Maaf, topik yang anda cari tidak memiliki berita');
83             }
#14
+
 /home/bangsaonline/public_html/protected/components/WebApplicationEndBehavior.php(25): CApplication->run()
20         // Attach the changeModulePaths event handler
21         // and raise it.
22         $this->onModuleCreate = array($this, 'changeModulePaths');
23         $this->onModuleCreate(new CEvent($this->owner));
24  
25         $this->owner->run(); // Run application.
26     }
27  
28     // This event should be raised when CWebApplication
29     // or CWebModule instances are being initialized.
30     public function onModuleCreate($event)
#16
+
 /home/bangsaonline/public_html/index.php(24): CComponent->__call("runEnd", array("front"))
19 defined('YII_DEBUG_DISPLAY_TIME') or define('YII_DEBUG_DISPLAY_TIME', false);
20 if (YII_DEBUG_DISPLAY_TIME)
21     echo Yii::getLogger()->getExecutionTime();
22 
23 require_once($yii);
24 Yii::createWebApplication($config)->runEnd('front');
25 //echo "Using ", memory_get_peak_usage(1), " bytes of ram.";
26 
2026-05-09 16:08:09 Apache Yii Framework/1.1.14