PHP notice

Trying to access array offset on value of type null

/home/hengtawee/domains/xn--22cj2czbe2a0cwbza9h5b5c.com/public_html/protected/controllers/frontend/SiteController.php(94)

082     }
083 
084     /**
085      * Logs out the current user and redirect to homepage.
086      */
087     public function actionLogout() {
088         Yii::app()->user->logout();
089         $this->redirect(Yii::app()->homeUrl);
090     }
091 
092     public function actionView_detail() {
093         $data = ListActivity::model()->findByPk($_GET['list_id']);
094           $type = PdType::model()->findByPk($data['type_id']);
095         $this->pageDescription = $data['sub_name'];
096         $this->render('view_detail', array(
097             'data_ac' => $data,
098             'type'=>$type
099         ));
100     }
101 
102     public function actionSitemapxml() {
103 
104         $type_ac = PdType::model()->findAll();
105         $data_article = Article::model()->findAll(array(
106             'order' => 'article_id DESC',

Stack Trace

#7
+
 /home/hengtawee/domains/xn--22cj2czbe2a0cwbza9h5b5c.com/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)
#9
+
 /home/hengtawee/domains/xn--22cj2czbe2a0cwbza9h5b5c.com/public_html/index.php(10): CComponent->__call("runEnd", array("frontend"))
05 // Remove the following lines when in production mode
06 defined('YII_DEBUG') or define('YII_DEBUG', true);
07 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
08  
09 require_once($yii);
10 Yii::createWebApplication($config)->runEnd('frontend');
2024-03-28 20:55:39 Apache/2 Yii Framework/1.1.14