PHP Error

Creating default object from empty value

/var/data/hosting/fspm-ch/www/protected/controllers/SiteController.php(381)

369         {
370             $this->render("help");
371         }
372 
373         public function actionAds()
374         {
375             $this->render("ads");
376         }
377 
378         public function actionAd($id)
379         {
380             $model = Ads::model()->findByPk($id);
381             $model->Counter++;
382             $model->save();
383 
384             $this->redirect($model->Link);
385         }
386 
387         public function actionNews()
388         {
389             $news = News::model()->findAll(new CDbCriteria(array("order"=>"CreationDate DESC")));
390 
391             $this->render("news", array("news"=>$news));
392         }
393 

Stack Trace

#9
+
 /var/data/hosting/fspm-ch/www/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 08:08:27 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 Yii Framework/1.1.8