PHP warning

Attempt to read property "seo_title" on null

/home/GIR/buggy-motor.ru/protected/modules/catalog/controllers/SiteController.php(79)

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

Stack Trace

#9
+
 /home/GIR/buggy-motor.ru/index.php(14): CApplication->run()
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 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2024-03-19 07:49:45 nginx/1.24.0 Yii Framework/1.1.30-dev