PHP notice

Trying to get property of non-object

/home/httpd/vhosts/site14.local/httpdocs/protected/modules/catalog/controllers/front/CatalogController.php(86)

74         $cs->registerCoreScript('jquery');
75         $cs->registerScriptFile(CHtml::asset(Yii::getPathOfAlias('application.modules.catalog.assets').'/catalog.js'));
76         
77         if(!Yii::app()->request->cookies['my_city_id'])
78             
79             $cs->registerScript('unknow-location', '$(".overlay").fadeIn(); $(".title-city").fadeIn();', CClientScript::POS_READY);
80         
81         $categories = Categories::model()->findAll(array('order'=>'sort', 'condition'=>'published = 1 AND pid IS  NULL'));
82         
83         $select = Categories::model()->find(array('condition'=>'published = 1 AND pid IS NULL'.($id ? ' AND id = '.(int)$id : ''), 'order'=>'sort'));
84          
85          
86          $this->pageTitle = $select->name;
87          
88          
89         $this->render('index', array('categories'=>$categories, 'select'=>$select));
90     }
91     
92     
93     
94     
95     public function actionOne()
96     {
97         
98         $cs = Yii::app()->clientScript;

Stack Trace

#14
+
 /home/httpd/vhosts/site14.local/httpdocs/protected/components/WebApplicationEndBehavior.php(26): CApplication->run()
21         // Attach the changeModulePaths event handler
22         // and raise it.
23         $this->onModuleCreate = array($this, 'changeModulePaths');
24         $this->onModuleCreate(new CEvent($this->owner));
25  
26         $this->owner->run(); // Run application.
27     }
28  
29     // This event should be raised when CWebApplication
30     // or CWebModule instances are being initialized.
31     public function onModuleCreate($event)
#17
+
 /home/httpd/vhosts/site14.local/httpdocs/index.php(16): CComponent->__call("runEnd", array("front"))
11 // Remove the following lines when in production mode
12 defined('YII_DEBUG') or define('YII_DEBUG', true);
13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
14  
15 require_once($yii);
16 Yii::createWebApplication($config)->runEnd('front');
17 
18 
19 
#18
+
 /home/httpd/vhosts/site14.local/httpdocs/index.php(16): CWebApplication->runEnd("front")
11 // Remove the following lines when in production mode
12 defined('YII_DEBUG') or define('YII_DEBUG', true);
13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
14  
15 require_once($yii);
16 Yii::createWebApplication($config)->runEnd('front');
17 
18 
19 
2026-01-06 12:26:47 Apache Yii Framework/1.1.12