PHP notice

Trying to get property of non-object

/mt/xvda4/u_f_history/historiography/www/themes/frontend/views/curriculums/index.php(22)

10     <div class="container">
11         <div class="row">
12             <div class="col-xs-12">
13                 <div class="promo">
14                     <div class="promo-gradient">
15                         <?= CHtml::image(Yii::app()->theme->baseUrl.'/img/department_logo.png') ?>
16                     </div>
17                 </div>
18             </div>
19         </div>
20         <div class="row">
21             <div class="col-xs-12 col-sm-4 col-md-3">
22                 <h6><?= $parent_item->title ?></h6>
23                 <?php
24                     $this->widget('zii.widgets.CMenu',array(
25                         'encodeLabel' => false,
26                         'activateParents' => true,
27                         'htmlOptions' => array('class' => 'sub-menu'),
28                         'items'=>MenuItems::getMenu($parent_item->id, true),
29                     ));
30                 ?>
31             </div>
32             <div class="col-xs-12 col-sm-8 col-md-9">
33                 <h5><?= Yii::t('app', 'Робочі програми курсів') ?></h5>
34 

Stack Trace

#4
+
 /mt/xvda4/u_f_history/historiography/www/protected/controllers/CurriculumsController.php(59): CController->render("index", array("curriculums" => array(Curriculums, Curriculums, Curriculums, Curriculums, ...)))
54             'order' => '`semester_number` ASC, `subject` ASC',
55         )); 
56         
57         $this->render('index',array(
58             'curriculums'=>$curriculums,
59         ));
60     }
61 
62     /**
63      * Creates a new model.
64      * 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-19 05:07:42 Apache Yii Framework/1.1.17