PHP notice

Trying to get property 'title' of non-object

/var/www/vhosts/derinmotion.com/public_html/protected/modules/urunler/controllers/front/DefaultController.php(87)

75 
76         $this->pageTitle =$item->title;
77 
78         $UrunKat = UrunKategori::model()->findByPk($item->category_id);
79         $criteria = new CDbCriteria;
80         $criteria->condition = "category_id IN (".$item->category_id. ") AND hide = 0 AND id != ".$item->id;
81         $related = Urunler::model()->findAll($criteria);
82 
83         $item->counter = $item->counter +1;
84         $item->save();
85 
86         $this->breadcrumbs[Yii::t('urunlerModule.front','moduletitle')] = Yii::app()->baseUrl . '/urunler';
87         $this->breadcrumbs[$UrunKat->title] = Yii::app()->baseUrl . '/urunler/kategori/'.$UrunKat->slug;
88         $this->breadcrumbs[$item->title] = Yii::app()->baseUrl . '/urunler/'.$item->slug;
89 
90         $this->render('show', array(
91             'item' => $item,
92             'related'=>$related
93         ));
94     }
95 }

Stack Trace

#9
+
 /var/www/vhosts/derinmotion.com/public_html/protected/components/WebApplicationEndBehavior.php(32): CApplication->run()
27         // Attach the changeModulePaths event handler
28         // and raise it.
29         $this->onModuleCreate = array($this, 'changeModulePaths');
30         $this->onModuleCreate(new CEvent($this->owner));
31 
32         $this->owner->run(); // Run application.
33     }
34 
35     // This event should be raised when CWebApplication
36     // or CWebModule instances are being initialized.
37     public function onModuleCreate($event)
#11
+
 /var/www/vhosts/derinmotion.com/public_html/index.php(22): CComponent->__call("runEnd", array("front"))
17         return parent::init();
18     }
19 }
20 
21 $app = new kraftCMS($config);
22 $app->runEnd('front');
23 
2024-03-28 18:51:39 Apache Yii Framework/1.1.26