PHP warning

Attempt to read property "seo_title" on null

/home/atv/atvbtr.ru/protected/modules/catalog/controllers/SiteController.php(76)

64     public function actionItemView($catId = 0, $item = 0)
65     {
66 
67         if (!is_null($this->module->itemLayout)) {
68             $this->layout = $this->module->itemLayout;
69         } else {
70             $this->layout = $this->module->baseLayout;
71         }
72 
73         $uri = $_SERVER['REQUEST_URI'];
74 
75         $item = CatItem::model()->with('options')->findByPk($item);
76         $this->pageTitle = $item->seo_title;
77 //        $this->layout = CatalogModule::$catalogItemViewLayout;
78         $category = CatCategory::model()->findByPk($item->catId);
79 
80         if ($category->layout) {
81             $this->layout = $category->layout;
82         }
83 
84         $hrefParams = array(
85             'title' => $category->name_t,
86             'catId' => $category->id,
87             'itemName' => $item->name_t,
88             'item' => $item->id,

Stack Trace

#9
+
 /home/atv/atvbtr.ru/index.php(20): CApplication->run()
15 // specify how many levels of call stack should be shown in each log message
16 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',0);
17 
18 require_once($yii);
19 
20 Yii::createWebApplication($config)->run();
21 
22 
23 
2024-03-28 21:43:24 nginx/1.24.0 Yii Framework/1.1.30-dev