PHP warning

Creating default object from empty value

E:\etc\www\edu-abstract\protected\controllers\AbstractDataController.php(50)

38        * Displays a particular model.
39        * @param integer $id the ID of the model to be displayed
40        */
41       public function actionView($id) {
42             $this->render('view', array(
43                 'model' => $this->loadModel($id),
44             ));
45       }
46 
47       public function actionViewIndex($id) {
48             if (Yii::app()->user->isGuest) {
49                   $post = AbstractDataModel::model()->findByPk($id);
50                   $post->hit += 1;
51                   $post->save();
52             }
53             $this->render('viewIndex', array(
54                 'model' => $this->loadModel($id),
55             ));
56       }
57 
58       /**
59        * Creates a new model.
60        * If creation is successful, the browser will be redirected to the 'view' page.
61        */
62       public function actionCreate() {

Stack Trace

#6
+
 E:\etc\www\edu-abstract\protected\modules\rights\components\RController.php(36): CFilter->filter(CFilterChain)
31     */
32     public function filterRights($filterChain)
33     {
34         $filter = new RightsFilter;
35         $filter->allowedActions = $this->allowedActions();
36         $filter->filter($filterChain);
37     }
38 
39     /**
40     * @return string the actions that are always allowed separated by commas.
41     */
#14
+
 E:\etc\www\edu-abstract\index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 22:48:01 Apache/2.4.10 (Win64) mod_fcgid/2.3.9 Yii Framework/1.1.15