PHP notice

Trying to get property of non-object

/var/www/stark-tv.uz/protected/components/CmsBreadcrumbsWidget.php(122)

110             'field' => 'company_title'
111         ),
112         'org/index' => array(
113             'type' => 'webpage',
114         ),
115     );
116 /*============================================================================*/
117     public function run()
118     {
119         $mWebpage = Router::getWebpage();
120         $aLinks = array();
121         $last = true;
122         while ($mWebpage->webpage_parent_id != null)
123         {
124             if ($last)
125             {
126                 $aLinks[] = $this->getModuleName($mWebpage);
127                 $last = false;
128             }
129             else
130                 $aLinks[$this->getModuleName($mWebpage)] = Router::constructUrl($mWebpage);
131             $mWebpage = $mWebpage->parent;
132         }
133         
134         $aLinks = array_reverse($aLinks);

Stack Trace

#1
+
 /var/www/stark-tv.uz/themes/avtosanoat/views/pages/page_448.php(15): CBaseController->widget("CmsBreadcrumbsWidget")
10 
11     <div class="content pull-right col-lg-8 col-md-8 col-sm-8 col-xs-12 clearfix">
12 
13             <h4 class="title"><?php echo $mPage->page_title; ?></h4>
14       
15             <?php $this->widget('CmsBreadcrumbsWidget'); ?>
16     </br>
17    
18     <article>
19 <?php echo $mPage->page_content; ?>
20         </article>
#5
+
 /var/www/stark-tv.uz/protected/components/Controller.php(98): CController->renderPartial("page_448", array("mPage" => Pages, "mWebpage" => Webpages, "aComments" => false), true)
093 
094     public function render($view,$data=null,$return=false)
095     {
096         if($this->beforeRender($view))
097         {
098             $output=$this->renderPartial($view,$data,true);
099 
100             if (isset($_GET['format']) && $_GET['format'] == 'pdf') {
101                 try {
102                     $tags = '<p>,<br>,<h1>,<a>,<img>,<table>,<tbody>,<tr>,<td>';
103                     $output=$this->renderPartial($view,$data,true,false);
#6
+
 /var/www/stark-tv.uz/protected/components/Controller.php(36): Controller->render("page_448", array("mPage" => Pages, "mWebpage" => Webpages, "aComments" => false), false)
31     {
32         if ($id && $this->getViewFile($view.'_'.$id) )
33         {
34             $view .= '_'.$id;
35         }
36         return $this->render($view, $data, $return);
37     }
38 /*============================================================================*/
39     public function getComments($mWebpage)
40     {
41         if ($mWebpage->webpage_comments_activated)
2024-03-29 12:40:55 Apache/2.4.10 (Debian) Yii Framework/1.1.12