PHP notice

Trying to get property of non-object

/home/uu001/uu.edu.ua/ab/protected/modules/edu/controllers/front/EdudisciplineController.php(146)

134 
135         if ($d === null)
136             throw new CHttpException(404);
137 
138         $this->bread[] = array(
139             'label' => $this->title,
140             'url' => Yii::app()->createUrl('edu/edudiscipline/index'),
141         );
142 
143         $this->title = "Дисципліна: ".$d->title;
144 
145         $this->bread[] = array(
146             'label' => $d->lang->title,
147             'url' => Yii::app()->createUrl('edu/edudiscipline/item', array('alias' => $d->alias)),
148         );
149 
150         $this->setPageTitle($this->title);
151         
152         $this->render('itemd', array(
153             'model' => $d,
154         ));
155     }
156 }

Stack Trace

#9
+
 /home/uu001/uu.edu.ua/ab/protected/components/WebApplicationOfficeBehavior.php(50): CApplication->run()
45         $this->onModuleCreate(new CEvent($this->owner));
46 
47         register_shutdown_function(array($this, 'onShutdownHandler'));
48         
49         
50         $this->owner->run(); // Run application.
51 
52         if (!Yii::app()->request->isAjaxRequest)
53         {
54             Yii::app()->user->setState('__returnUrl', Yii::app()->request->requestUri);
55         }
#12
+
 /home/uu001/uu.edu.ua/ab/index.php(21): CComponent->__call("runOffice", array("front"))
16 defined('YII_DEBUG') or define('YII_DEBUG', true);
17 // specify how many levels of call stack should be shown in each log message
18 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
19 
20 require_once($yii);
21 Yii::createWebApplication($config)->runOffice('front');
22 
23 
#13
+
 /home/uu001/uu.edu.ua/ab/index.php(21): CWebApplication->runOffice("front")
16 defined('YII_DEBUG') or define('YII_DEBUG', true);
17 // specify how many levels of call stack should be shown in each log message
18 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
19 
20 require_once($yii);
21 Yii::createWebApplication($config)->runOffice('front');
22 
23 
2024-03-28 18:51:02 Apache Yii Framework/1.1.15