PHP notice

Trying to get property of non-object

/var/www/vhosts/znuweb/protected/views/page/manager.php(110)

098             if ($child->entity_type==2 AND $child->jrnl->jActiveHomeManager==1) 
099             {
100             echo '<tr><td colspan="2">';
101             echo '<a style="text-decoration:none"  href="'.$child->jrnl->fullURL.'/manager/'.$child->entityContentManager->url_view.'"><strong><center><font color="#034391">'.$child->entity_titleFa.'</font></center></strong></a>';
102                 echo '</td></tr>';
103             }
104             else if ($child->entity_type==4)
105             echo '<td colspan="2"><center><font color="#ffffff"><strong>'.$child->entity_titleFa.' - '.$child->jrnl->nameFa .'</strong></font></center></td>';
106             else if ($child->entity_type==1 AND 
107                      (($qjrnl->url=='znuportal' AND $child->entityContentManager->Homepage_manager==1) OR $qjrnl->url!='znuportal' ) )
108             {
109             $option_detail_fa=NULL;
110             if ($child->entityContentManager->titleManager_option_id!=NULL)
111             $option_detail_fa=$child->entityContentManager->titleManagerOption->option_detail_fa;
112             
113                 
114             echo '<tr><td  colspan="2">';
115             echo '<center><a style="text-decoration:none" target="_blank"  href="'.$child->jrnl->fullURL.'/manager/'.$child->entityContentManager->url_view.'"><strong><font color="#000000">'.$child->entity_titleFa.'</font></strong></a></center>';
116             echo '</td></tr></tr>';
117             echo '<td style="background-color:#eae9e9;">';
118 echo "<center><img class='img-fluid' src='".Yii::app()->baseUrl."/files/uploaded/manager-pic/thumbs300/".$child->entityContentManager->staf_pic."' style='padding:0px;margin:0px; '></center>";
119                 echo'</td><td style="background-color:#eae9e9;"><p>'.$option_detail_fa.'&nbsp;'.$child->entityContentManager->nameFa.'&nbsp;'.$child->entityContentManager->familyFa.'</p><p><strong>رشته تحصیلی:</strong>'.$child->entityContentManager->major.'</p><p><strong>پست الکترونیک:</strong> '.$child->entityContentManager->emailZnu_prefix.'[at]znu.ac.ir&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$child->entityContentManager->email2.'</p><p><strong>تلفن:</strong> '.$child->entityContentManager->tel1.'</p><p><strong>فکس:</strong> '.$child->entityContentManager->fax1.'</p><p><a style="text-decoration:none" target="_blank"  href="'.$child->entityContentManager->homepageFa.'/">'.$child->entityContentManager->homepageFa.'</a></p></td></tr>';        
120     /*        
121     if ($child->entityContentManager->previous_managers!=NULL)
122          echo '<tr><td colspan="2" align="center">'.$child->entityContentManager->previous_managers.'</td></tr>' ;

Stack Trace

#4
+
 /var/www/vhosts/znuweb/protected/controllers/PageController.php(981): CController->render("manager", array("model_ent" => Entities, "lang" => "fa"))
976      */
977           
978           Yii::app()->language = Yii::app()->request->cookies['lang']->value;
979      
980      
981         $this->render('manager',array('model_ent'=>$model_ent, 'lang'=>$lang)); //vaghti search faal ast list bazneshsteha pas az search tekrari zaher mishavad
982  }
983        else 
984         //    throw new CHttpException(404,'The requested page does not exist.');
985        {
986 $model_ent = Entities::model()->findByAttributes(array('entity_id'=>14, 'is_visibleFa' => '1'  ));
#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-16 17:53:59 Apache Yii Framework/1.1.14