PHP notice

Trying to get property of non-object

/var/www/vhosts/znuweb/protected/views/layouts/theme_sitemap2/main_en.php(193)

181                         else
182                         $mnu=$child->jrnl->fullURL.'/page';
183                         
184             echo '<li>';
185             //MMM  echo'<a href="#" class="active">';
186              if ($child->parent_id==$child->jrnl->entity_id)
187             echo '<a style="background-color:#c9ebc7" ';
188             else 
189             echo '<a ';
190 
191 
192              if ($child->entity_type==1)
193             echo 'target="_blank" href="'.$mnu.'/'.$child->entityContent->url_view.'/en';
194             //echo Yii::app()->createUrl($mnu.'/'.$child->entityContent->url_view.'/en');
195             else if ($child->entity_type==3)
196             echo 'target="_blank" href="'.$child->entityLink->url_en;
197             else
198             echo 'href="#';
199 
200 
201             echo '">';
202             echo $child->entity_titleEn;
203             echo '</a>';
204                         ///////////////////////////////////////////////////////
205                         $h_entity4= Entities::model()->findAllByAttributes(array('parent_id' => $child->entity_id,'is_visibleEn'=>'1'),array('order'=>'priority ASC'));

Stack Trace

#3
+
 /var/www/vhosts/znuweb/protected/controllers/PageController.php(204): CController->render("index", array("model" => Journals))
199 //$this->id2 = $id2;
200 //$this->sub = $sub;
201 //MMMMMMMMmm
202         $this->render('index', array(
203             'model' => Journals::model()->findByAttributes(array('url'=>$jrnl))
204         ));
205     }
206     
207     
208 /////////////////////////////////////////////////////////////////////////////////////////////////////////    
209     public function actionTel($id='NULL',$lang='fa')//$id=$url=>jrnl
#17
+
 /var/www/vhosts/znuweb/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 Yii::createWebApplication($config)->run();
2024-10-08 08:52:54 Apache Yii Framework/1.1.14