PHP warning

Attempt to read property "name" on null

/opt/bitnami/apache/htdocs/protected/modules/main/controllers/DefaultController.php(420)

408   public function actionClaim()
409   {
410       $this->layout="detail";
411       
412       $id= Yii::app()->request->getParam("id");
413       $state= Yii::app()->request->getParam("state");
414       $state=strtoupper($state);
415       $model_name="Listing".strtoupper($state);
416       $dependcy= new CDbCacheDependency('SELECT MAX(date_updated) FROM listing_'.strtolower($state));
417       
418       $list = $model_name::model()->cache(2629746,$dependcy,6)->findbyPk($id);
419       
420       $this->pageTitle = "Claim ".$list->name." - Find Local Near You";
421       $desc= "Claim your business ".$list->name ." and be the part of the Find Local Near You";
422       Yii::app()->clientScript->registerMetaTag($desc, 'description');
423       $this->render('claim',array("list"=>$list));
424       
425   }
426  
427 
428  
429        public function actionUpdatelist() {
430         $this->layout = "detail";
431 
432         $name = Yii::app()->request->getParam('name');

Stack Trace

#7
+
 /opt/bitnami/apache/htdocs/index.php(51): CApplication->run()
46 
47 //    }
48 
49 //    PHPExcel_Shared_String::buildCharacterSets();
50 
51 $app->run();
2024-03-28 20:58:16 Apache Yii Framework/1.1.23