PHP notice

Trying to get property of non-object

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

150                 echo '<ul>';
151                         foreach ($h_entity2 as $child) 
152                             {//foreach2
153                             
154                         if ($child->jrnl->fullURL=='http://www.znu.ac.ir/'.$child->jrnl->url)
155                         $mnu=$child->jrnl->fullURL;
156                         else
157                         $mnu=$child->jrnl->fullURL.'/page';
158                         
159             echo '<li>';
160             //MMM  echo'<a href="#" class="active">';
161              if ($child->entity_type==1)
162             echo '<a target="_blank"  style="background-color:#c9ebc7" href="'.$mnu.'/'.$child->entityContent->url_view.'/en'.'">'.$child->entity_titleEn;
163             //echo Yii::app()->createUrl($mnu.'/'.$child->entityContent->url_view.'/en');
164             else if ($child->entity_type==3)
165             echo '<a target="_blank"  style="background-color:#c9ebc7" href="'.$child->entityLink->url_en.'">'.$child->entity_titleEn;
166             else if ($child->entity_type==2)
167             echo '<a target="_blank"  style="background-color:#bfddee;" href="'.$child->jrnl->fullURL.'/en'.'"><strong>'.$child->entity_titleEn.'</strong>';
168             else
169             echo '<a style="background-color:#c9ebc7" href="#">'.$child->entity_titleEn;
170             echo '</a>';
171                         ///////////////////////////////////////////////////////
172                         ///////////////////////////////////////////////////////
173                         $h_entity3= Entities::model()->findAllByAttributes(array('parent_id' => $child->entity_id,'is_visibleEn'=>'1'),array('order'=>'priority ASC'));
174             if($h_entity3!=NULL){

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
#9
+
 /var/www/vhosts/znuweb/protected/controllers/PageController.php(64): CFilterChain->run()
59           $this->layout = '//layouts/'.$qjrnltm->theme_address.'/main_'.$qjrnl->lang1;
60           }
61           Yii::app()->language = Yii::app()->request->cookies['lang']->value;
62           
63 }    */    
64         $filterChain->run();
65     }
66     
67     
68       public function accessRules()
69     {
#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();
2025-05-11 13:50:04 Apache Yii Framework/1.1.14