PHP warning

Creating default object from empty value

/home/ghostofvapor/public_html/protected/controllers/SiteController.php(2391)

2379             $commModel = new ClassifiedComment;
2380             $commModel->post_id = intval($_GET['id']);
2381             $commModel->description = $_POST['reply'];
2382             $commModel->posted_by = Yii::app()->user->uid;
2383             $commModel->posted_on = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y"));
2384 
2385             if ($commModel->save()) {
2386                 Yii::app()->user->setFlash('msgSuccess', 'Your reply has been posted successfully.');
2387             } else {
2388                 Yii::app()->user->setFlash('msgError', 'Sorry, your reply could not be posted. Please try again.');
2389             }
2390         } else {
2391             $classified->views+=1;
2392             $classified->update();
2393         }
2394 
2395         $cat = ClassifiedCategory::model()->findByPk($classified['category_id']);
2396 
2397         $comments = ClassifiedComment::model()->findAllByAttributes(array("post_id" => intval($_GET['id'])), array("order" => 'posted_on ASC'));
2398 
2399         $this->render('classified', array('classified' => $classified, 'comments' => $comments, 'category' => $cat['category']));
2400     }
2401 
2402     public function actionSearchClassifieds() {
2403         if (isset($_GET['keyword']) && $_GET['keyword'] != "") {

Stack Trace

#12
+
 /home/ghostofvapor/public_html/index.php(16): CApplication->run()
11 defined('YII_DEBUG') or define('YII_DEBUG',true);
12 // specify how many levels of call stack should be shown in each log message
13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
14 
15 require_once($yii);
16 Yii::createWebApplication($config)->run();
2024-03-28 16:10:05 LiteSpeed Yii Framework/1.1.11