PHP notice

Trying to get property of non-object

/var/www/vhosts/znuweb/protected/views/page/rules.php(658)

646         $criteria2 = new CDbCriteria();
647         $criteria2->addColumnCondition(array('parent_id' => $child->entity_id,'is_visibleFa'=>'1'));
648         $criteria2->addCondition("position = 'rulesmenu'");
649         $criteria2->order = 't.priority ASC';
650         $h_entity2= Entities::model()->findAll($criteria2);
651             if($h_entity2!=NULL ){
652                         
653                             foreach ($h_entity2 as $child) 
654                             {//foreach2
655                                 echo '<div class="mmcontent2">';
656                                 
657                             //$lnk =($model_ent->jrnl->url!='znuportal' and $child->entity_type!=3 and $qjrnl->url!='rules')  ?  CHtml::link($child->entity_titleFa, Yii::app()->createUrl('/'.$adr2.$child->entityContentRules->url_view), array('class'=>'link2')):$child->entity_titleFa ;
658                             $lnk =($model_ent->jrnl->url!='znuportal' and $child->entity_type!=3 and $qjrnl->url!='rules')  ?  CHtml::link($child->entity_titleFa, $child->jrnl->fullURL.'/'.$adr2.$child->entityContentRules->url_view, array('class'=>'link2')):$child->entity_titleFa ;
659                                 
660     $img =  $child->is_visibleFa=='1'?   '<strong><font color="#CC0440" dir="rtl">'.$lnk.'</font></strong>': '<font color=#CC0440;>'.$lnk.'</font>' ;
661                             
662                 if ($child->entity_type==3)
663                                 
664                             {
665                         if (isset($child->entityLink->url_fa))  echo '<a href="'.$child->entityLink->url_fa.'">';
666             echo '<li><font color="#CC0440" dir="rtl">'.$child->entity_titleFa.'</font></li>';
667              if (isset($child->entityLink->url_fa)) echo '</a>';
668                             }
669                              else if ($child->entity_type==4)
670                             { 

Stack Trace

#4
+
 /var/www/vhosts/znuweb/protected/controllers/PageController.php(1332): CController->render("rules", array("model_ent" => Entities, "lang" => "fa"))
1327          $this->layout = '//layouts/'.$qjrnltm->theme_address.'/main_'.$language.'_blank';
1328     //$this->title_meta='قوانین، دستورالعمل ها و فرم های '.$model_ent->entity_titleFa;
1329     $this->title_meta='قوانین، دستورالعمل ها و فرم ها ';
1330           }
1331 
1332         $this->render('rules',array('model_ent'=>$model_ent, 'lang'=>$lang)); //vaghti search faal ast list bazneshsteha pas az search tekrari zaher mishavad
1333         //$this->render('manager',array('model'=>$model,'pgview'=>'faculty','activeserach'=>'0')); //vaghti search faal ast list bazneshsteha pas az search tekrari zaher mishavad
1334  }
1335        else 
1336             throw new CHttpException(404,'The requested page does not exist.');
1337          
#18
+
 /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-22 08:43:11 Apache Yii Framework/1.1.14