Error

Call to a member function getCaption() on null

/home/httpd/vhosts/marketing-boerse.de/20240318-153510/protected/modules/article/controllers/ArticleContentController.php(1514)

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

Stack Trace

#0
+
 /home/httpd/vhosts/marketing-boerse.de/20240318-153510/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/20240318-153510/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/20240318-153510/protected/runtime/smarty/compiled/0ad6b1426552fd1411474439280a74e16ba8803b.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-03-19 07:51:45 nginx/1.18.0 Yii Framework/1.1.29