PHP notice

Trying to get property of non-object

/var/www/uralstudent.ru/public_html/protected/components/SeparateObject.php(1315)

1303     }
1304 
1305     public function jobTypeList() {
1306         return array(1 => 'Резюме', 2 => 'Вакансии', 3 => 'Практика');
1307     }
1308 
1309     /**
1310      * SEO
1311      */
1312     public function getSeoTitle() {
1313         if ($this->isNewRecord) {
1314             if ($this->hasAttribute('f_sub_category_id') && $this->f_sub_category_id) {
1315                 if ($this->fSubCategory->seo) {
1316                     return $this->fSubCategory->seo->seo_title ? $this->fSubCategory->seo->seo_title : $this->fSubCategory->title;
1317                 }
1318                 return $this->fSubCategory->title;
1319             }
1320             if ($this->hasAttribute('f_category_id') && $this->f_category_id) {
1321                 if ($this->fCategory->seo) {
1322                     return $this->fCategory->seo->seo_title ? $this->fCategory->seo->seo_title : $this->fCategory->title;
1323                 }
1324                 return $this->fCategory->title;
1325             }
1326             return $this->typeModel->seo ? $this->typeModel->seo->seo_title : '';
1327         } elseif ($this->fSeo && $this->fSeo->seo_title) {

Stack Trace

#2
+
 /var/www/uralstudent.ru/public_html/protected/components/Controller.php(393): CActiveRecord->__get("seoTitle")
388     public function setPropsFromModel($model) {
389         if (get_class($model) == 'Companyrest' && !$model->f_category_id && !$model->f_sub_category_id) {
390             $this->setPropsFroSection($model, 'discount_moc');
391             return;
392         }
393         $this->pageTitle = $model->seoTitle;
394 
395         if (Yii::app()->request->getParam('page')) {
396             $page = Yii::app()->request->getParam('page');
397             if ($page = 1)
398                 null;
#3
+
 /var/www/uralstudent.ru/public_html/protected/views/course/list.php(3): Controller->setPropsFromModel(Course)
1 <?php

2 $this->setPropsFromModel($model);

3 

4 Yii::app()->clientScript->registerCssFile('/css/course/list.css');

5 Yii::app()->clientScript->registerCssFile('/css/course/index.css');

6 ?>

7 

8 <?php $this->fillAddInformation(BaseObject::TYPE_COURSE) ?>

#8
+
 /var/www/uralstudent.ru/public_html/protected/components/Controller.php(458): CController->render("list", array("dataProvider" => CActiveDataProvider, "model" => Course, "urlDateParams" => array(), "period" => ""), false)
453         ///Для тестирования страниц модулем sitemap//////
454         if (key_exists('test', $_GET) && $_GET['test'] === 'true')
455             $this->renderPartial($view, $data, $return);
456         /////////////////////////////////////////////////
457         
458         parent::render($view, $data, $return);
459     }
460 
461 }
462 
463 ?>
2024-03-29 01:17:23 nginx/1.6.2 Yii Framework/1.1.13