PHP warning

Creating default object from empty value

E:\etc\www\Question\regis\protected\controllers\PopularQuestionController.php(58)

46 //            'accessControl', // perform access control for CRUD operations
47 //            'postOnly + delete', // we only allow deletion via POST request
48                     );
49           }
50 
51           /**
52            * Displays a particular model.
53            * @param integer $id the ID of the model to be displayed
54            */
55           public function actionView($id) {
56                     if (Yii::app()->user->isGuest) {
57                               $post = PopularQuestion::model()->findByPk($id);
58                               $post->pop_hit += 1;
59                               $post->save();
60                     }
61                     $this->render('view', array(
62                               'model' => $this->loadModel($id),
63                     ));
64           }
65 
66           /**
67            * Creates a new model.
68            * If creation is successful, the browser will be redirected to the 'view' page.
69            */
70           public function actionCreate() {

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-19 09:56:25 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