PHP warning

Attempt to read property "seo_title" on null

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

167     }
168 
169 
170     public function actionRCategoryView($catId = 0,$page=0) {
171 
172 
173 //        $this->layout = CatalogModule::$catalogCategoryViewLayout;
174 
175         $this->layout = $this->module->baseLayout;
176 
177         $category = CatCategory::model()->findByPk($catId);
178 
179         $this->pageTitle = $category->seo_title;
180         $maximalPriceValue = CatItem::model()->getItemWithMaximalPrice($catId);
181         $parentCategory = null;
182 
183         if ($category && $category->pid != "-1"){
184 
185             $parentCategory = CatCategory::model()->findByPk($category->pid);
186         }
187 
188         if ($category->layout) {
189             $this->layout = $category->layout;
190         }
191         $catsIDs = $category->getAllCatChilds($catId);

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 11:57:15 nginx/1.24.0 Yii Framework/1.1.30-dev