PHP warning

Trying to access array offset on value of type null

/home1/pushpcqz/public_html/pushpagiri.in/themes/user/views/facilities/details.php(5)

01 <section class="subPageGallery">
02   <div class="container subHealthDeatilDivBg">
03     <div class="row">
04       <div class="col-sm-12">
05         <div class="healthDeatilDivWrapper"> <span><?=$details['name']?></span>
06         <? if(!empty($details['description'])){?>
07         <?=$details['description']?>
08         <? }else{?>
09           <i>Information on this page is being updated.Please visit this page later.</i>
10         <? }?>
11         </div>
12       </div>
13     </div>
14   </div>
15 </section>

Stack Trace

#4
+
 /home1/pushpcqz/public_html/pushpagiri.in/protected/controllers/FacilitiesController.php(148): CController->render("details", array("details" => null))
143               $model= new Facilities();
144             $criteria = new CDbCriteria;
145             $criteria->condition="status='1' and id=".$id;
146             $data=$model->find($criteria);
147             
148       $this->render('details',array('details'=>$data));
149     
150     }
151 
152 
153     public function actionImageupload()
#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 17:09:03 Apache Yii Framework/1.1.14