PHP notice

Trying to get property of non-object

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

442         $criteria2 = new CDbCriteria();
443         $criteria2->addColumnCondition(array('parent_id' => $child->entity_id,'is_visibleFa'=>'1'));
444         $criteria2->addCondition("position = 'rulesmenu'");
445         $criteria2->order = 't.priority ASC';
446         $h_entity2= Entities::model()->findAll($criteria2);
447             if($h_entity2!=NULL ){
448                         
449                             foreach ($h_entity2 as $child) 
450                             {//foreach2
451                                 echo '<div class="mmcontent2">';
452                                 
453                             //$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 ;
454                             $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 ;
455                                 
456     $img =  $child->is_visibleFa=='1'?   '<strong><font color="#CC0440" dir="rtl">'.$lnk.'</font></strong>': '<font color=#CC0440;>'.$lnk.'</font>' ;
457                             
458                 if ($child->entity_type==3)
459                                 
460                             {
461                         if (isset($child->entityLink->url_fa))  echo '<a href="'.$child->entityLink->url_fa.'">';
462             echo '<li><font color="#CC0440" dir="rtl">'.$child->entity_titleFa.'</font></li>';
463              if (isset($child->entityLink->url_fa)) echo '</a>';
464                             }
465                              else if ($child->entity_type==4)
466                             { 

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-07-17 17:46:48 Apache Yii Framework/1.1.14