PHP warning

Creating default object from empty value

/home/qkkvuayzqq/domains/muzykapolesia.net/public_html/protected/controllers/WykonawcyController.php(23)

11      * @param integer $id the ID of the model to be displayed
12      */
13     public function actionView($id)
14     {
15         if(!isset(Yii::app()->session['_lang'])){
16             Yii::app()->session['_lang']='PL';
17         }
18 
19 
20         $this->layout='contentArtist';    
21             
22         $model=Wykonawcy::model()->findByPk($id);
23         $model->il_odslon++;
24         $model->save(false);
25         $media = new CActiveDataProvider('MuzykaMediaWykonawcy', array(
26         'criteria' => array(
27             'condition' => 'artist_id=:artist_id AND file.file_extension = "jpg"',
28             'params' => array(':artist_id' => $id),
29             'with'=>'file',
30         )));
31         $this->render('view',array('model'=>$model,'media'=>$media));
32     }
33 
34 
35     public function actionViewName($id)

Stack Trace

#9
+
 /home/qkkvuayzqq/domains/muzykapolesia.net/public_html/index.php(13): CApplication->run()
08 // remove the following lines when in production mode
09 defined('YII_DEBUG') or define('YII_DEBUG',true);
10 // specify how many levels of call stack should be shown in each log message
11 //defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
14 if(!isset(Yii::app()->session['_lang'])){
15             Yii::app()->session['_lang']='PL';
16         }
17 
18 
2024-03-19 06:46:46 LiteSpeed Yii Framework/1.1.18-dev