PHP warning

Attempt to read property "seo_title" on null

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

69             $this->layout = $this->module->itemLayout;
70         } else {
71             $this->layout = $this->module->baseLayout;
72         }
73 
74         $uri = $_SERVER['REQUEST_URI'];
75         $item = CatItem::model()->findByPk($item);
76         $modifItem = null;
77         if ($modifid != 0) {
78             $modifItem = CatItem::model()->findByPk($modifid);
79         } 
80 
81         $this->pageTitle = $item->seo_title;
82         //        $this->layout = CatalogModule::$catalogItemViewLayout;
83         $category = CatCategory::model()->findByPk($item->catId);
84         if ($category) {
85             if ($category->layout) {
86                 $this->layout = $category->layout;
87             }
88 
89             $hrefParams = array(
90                 'title' => $category->name_t,
91                 'catId' => $category->id,
92                 'itemName' => $item->name_t,
93                 'item' => $item->id,

Stack Trace

#9
+
 /home/atv/service.atvgroup.ru/index.php(19): CApplication->run()
14 defined('YII_DEBUG') or define('YII_DEBUG', true);
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', 3);
17 require_once($yii);
18 
19 Yii::createWebApplication($config)->run();
2025-03-15 06:52:05 nginx/1.27.4 Yii Framework/1.1.31-dev