PHP notice

Trying to get property of non-object

/home/deadline/domains/deadline.net.pl/public_html/protected/controllers/WebController.php(62)

50                          'item_count'  => $item_count,
51                          'page_size'   => 10,
52                          'items_count' => $item_count,
53                          'pages'       => $pages,
54                     )
55         );
56     }
57 
58     public function actionShownews()
59     {
60         $model = Model_News::model()->findByPk($_GET['id']);
61         $lang = HelperLang::get();
62         $title = $model->title_pl;
63         if($lang == 'en'){
64             $title = $model->title_en;
65         }
66         $this->pageTitle = $this->description = $title;
67 
68 
69         $this->active = 'news';
70         $this->render(
71             'show_news', array(
72                          'model'       => $model
73                     )
74         );

Stack Trace

#7
+
 /home/deadline/domains/deadline.net.pl/public_html/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 06:37:05 LiteSpeed Yii Framework/1.1.10