Error

Call to a member function getCaption() on null

/home/httpd/vhosts/marketing-boerse.de/20240415-174950/protected/modules/article/controllers/ArticleContentController.php(1521)

1509                 'criteria' => $criteria,
1510                 'pagination' => false,
1511             ));
1512         } else {
1513             $cat1 = CategoriesL1::model()->findByPk($categories[1]);
1514             if (!empty($cat1)) {
1515                 $param = 'category/'.$cat1->c1Name;
1516                 $catName = $cat1->getCaption();
1517                 $titleLink = '/content/'.strtolower($cat1->c1Name);
1518                 if (isset($categories[2])) {
1519                     $cat2 = CategoriesL2::model()->findByPk($categories[2]);
1520                     $param .= '/' . $cat2->c2Name;
1521                     $catName = $cat2->getCaption();
1522                     $titleLink .= '/'.strtolower($cat2->c2Name);
1523                 }
1524                 if (isset($categories[3])) {
1525                     $cat3 = CategoriesL3::model()->findByPk($categories[3]);
1526                     $param .= '/' . $cat3->c3Name;
1527                     $catName = $cat3->getCaption();
1528                     $titleLink .= '/'.strtolower($cat3->c3Name);
1529                 }
1530             }
1531         }
1532 
1533         if ($dataProvider->itemCount == 0)

Stack Trace

#0
+
 /home/httpd/vhosts/marketing-boerse.de/20240415-174950/protected/modules/article/components/ArticleAliasBoxWidget.php(12): ArticleContentController->actionAliasBox()
07     public function run()
08     {
09          $controller = Yii::app()->createController('article/articleContent');
10          $agreedController = $controller[0];
11 //         $agreedController->run("aliasbox");
12         $agreedController->actionAliasBox($this->scenarios);
13          unset($controller);
14          unset($agreedController);        
15     }
16 }
17 
#2
+
 /home/httpd/vhosts/marketing-boerse.de/20240415-174950/protected/vendors/Smarty/plugins/function.widget.php(34): CBaseController->widget()
29     if (isset($params['_name'])) {
30         $params['name'] = $params['_name'];
31         unset($params['_name']);
32     }
33     
34     return $controller_object->widget($widgetName, $params, true);
35 }
#3
+
 /home/httpd/vhosts/marketing-boerse.de/20240415-174950/protected/runtime/smarty/compiled/ee575d3e3d9ee0b8de6172d56234817e0425fc56.file.column2.tpl.php(176): smarty_function_widget()
171 <?php $_tmp2=ob_get_clean();?><?php echo smarty_function_widget(array('name'=>"UserBoxWidget",'type'=>"company",'param'=>"logo",'text'=>$_tmp2),$_smarty_tpl);?>
172 
173                 <div class="clear small" style="height:25px;"> </div>
174                 <?php if ($_smarty_tpl->tpl_vars['RequestFlags']->value->getFlag("hideNews")!==true){?>
175                     <?php if ($_smarty_tpl->tpl_vars['RequestFlags']->value->getFlag("categories")!==false){?>
176                           <?php echo smarty_function_widget(array('name'=>"article.components.ArticleAliasBoxWidget",'scenarios'=>array("news","webnews")),$_smarty_tpl);?>
177 
178                     <?php }else{ ?>
179                           <?php echo smarty_function_widget(array('name'=>"article.components.ArticleBoxWidget",'type'=>"news"),$_smarty_tpl);?>
180 
181                     <?php }?>
2024-04-18 18:57:29 nginx/1.18.0 Yii Framework/1.1.29