PHP warning

Creating default object from empty value

E:\etc\www\Question\regis\protected\controllers\QuestionController.php(64)

52                   //                              'postOnly + delete', // we only allow deletion via POST request
53             );
54       }
55 
56       /**
57        * Displays a particular model.
58        * @param integer $id the ID of the model to be displayed
59        */
60       public function actionView($id)
61       {
62             if (Yii::app()->user->isGuest) {
63                   $hitClick = Question::model()->findByPk($id);
64                   $hitClick->question_hit += 1;
65                   $hitClick->save();
66             }
67 
68             $this->render('view', array(
69                   'model' => $this->loadModel($id),
70             ));
71       }
72 
73       public function actionViewPop($id)
74       {
75 
76             if (Yii::app()->user->isGuest) {

Stack Trace

#6
+
 E:\etc\www\Question\regis\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\Question\regis\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-29 02:30:01 Apache/2.4.10 (Win64) mod_fcgid/2.3.9 OpenSSL/1.0.1j mod_watch/4.3P PHP/5.6.19 Yii Framework/1.1.15