PHP notice

Trying to get property of non-object

/var/www/airboss_shop/themes/modern/views/site/page/index.php(5)

01 <?php
02 /* @var $this PageCategoryController */
03 /* @var $dataProvider CActiveDataProvider */
04 
05 $this->pageTitle = $category->title . ' - зимняя верхняя одежда в интернет магазине airboss';
06 
07 $this->breadcrumbs = array(
08 //    $this->module->t('Page categories') => array('/site/page/index/'),
09     t('All') => array('/category/all'),
10 );
11 
12 if ($category->id != PageCategory::ROOT) {
13     $this->breadcrumbs[] = $this->pageTitle;
14 }
15 
16 // Yii::app()
17 //     ->getClientScript()

Stack Trace

#4
+
 /var/www/airboss_shop/protected/modules/site/controllers/PageController.php(53): CController->render("index", array("dataProvider" => CArrayDataProvider, "category" => null))
48         ));
49 
50         $this->render('index', array(
51             'dataProvider' => $dataProvider,
52             'category' => $_category,
53         ));
54     }
55 
56     /**
57      * Displays a particular model.
58      * @param integer $id the ID of the model to be displayed
#12
+
 /var/www/airboss_shop/index.php(70): CApplication->run()
65 //     }
66 // }
67 // ####### SEO END
68 
69 
70 Yii::createWebApplication($config)->run();
2024-03-28 17:52:49 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40 Yii Framework/1.1.14