PHP notice

Trying to get property of non-object

/mt/xvda4/u_f_history/historiography/www/themes/frontend/views/galleries/default/showcases.php(30)

18     <div class="container">
19         <div class="row">
20             <div class="col-xs-12">
21                 <div class="promo" <?= $style ?>>
22                     <div class="promo-gradient">
23                         <?= CHtml::image(Yii::app()->theme->baseUrl.'/img/department_logo.png') ?>
24                     </div>
25                 </div>
26             </div>
27         </div>
28         <div class="row">
29             <div class="col-xs-12 col-sm-4 col-md-3">
30                 <h6><?= $parent_item->title ?></h6>
31                 <?php
32                     $this->widget('zii.widgets.CMenu',array(
33                         'encodeLabel' => false,
34                         'activateParents' => true,
35                         'htmlOptions' => array('class' => 'sub-menu'),
36                         'items'=>MenuItems::getMenu($parent_item->id, true),
37                     ));
38                 ?>
39             </div>
40             <div class="col-xs-12 col-sm-8 col-md-9">
41                 <h5><?= Yii::t('app', 'Фотовиставки') ?></h5>
42                 <div class="row news">

Stack Trace

#4
+
 /mt/xvda4/u_f_history/historiography/www/protected/modules/galleries/controllers/DefaultController.php(89): CController->render("showcases", array("galleries" => CActiveDataProvider))
84         $galleries_model->unsetAttributes();
85         $galleries = $galleries_model->showcaseSearch();
86         
87         $this->render('showcases',array(
88             'galleries'=>$galleries
89         ));
90     }
91 
92     /**
93      * Creates a new model.
94      * If creation is successful, the browser will be redirected to the 'view' page.
#17
+
 /mt/xvda4/u_f_history/historiography/www/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 $app = Yii::createWebApplication($config)->run();
2024-03-29 03:45:07 Apache Yii Framework/1.1.17