PHP warning

Trying to access array offset on value of type null

/home1/pushpcqz/public_html/pushpagiri.in/themes/user/views/news/details.php(6)

01 <section class="subPageGallery">
02 <div class="container newDivWrapperHeadBg">
03 <div class="row">
04     <div class="col-sm-9">
05         <div class="news-inner">
06         <h2 class="news-title"><?=$data['title']?></h2>
07           <span class="news-date"><?=date('d-m-Y',strtotime($data['date']))?></span>
08           <?/*?><div class="news-sub-images"><img src="<?=Yii::app()->params['site_url']?>uploads/news/<?=$data['image']?>"></div><?*/?>
09           <?=$data['description']?>
10         </div>
11 
12         </div>
13     <div class="col-sm-3">
14         <div class="otherNewDiv">
15             <h3>Other News</h3>
16             <div id="nt-example1-container">
17             
18                 <ul id="nt-example1">

Stack Trace

#4
+
 /home1/pushpcqz/public_html/pushpagiri.in/protected/controllers/NewsController.php(226): CController->render("details", array("data" => null, "others" => array(News, News, News, News, ...)))
221         $data=$model->find(array("condition"=>"id=:id and status='1'","params" => array(":id"=>$id)));
222         
223         $others=$model->findAll(array("condition"=>"id<>:id and status='1'","params" => array(":id"=>$id)));
224     
225         
226         $this->render("details",array('data'=>$data,'others'=>$others));
227     }
228     
229     public function actionList($id=NULL,$subcat=NULL,$name=NULL)
230     {
231         $this->layout="subpage";
#14
+
 /home1/pushpcqz/public_html/pushpagiri.in/index.php(12): CApplication->run()
07 defined('YII_DEBUG') or define('YII_DEBUG',true);
08 // specify how many levels of call stack should be shown in each log message
09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
10 
11 require_once($yii);
12 Yii::createWebApplication($config)->run();
13 
14 
15 
16 
2024-03-29 02:08:31 Apache Yii Framework/1.1.14