PHP notice

Trying to get property of non-object

/home/rcherz/web/themes/classic/views/users/publicProfile.php(72)

60         ));
61 
62         if(!$resultsExists){
63             ?>
64             <div class="note">
65                 <?php
66                 echo Yii::t('site', 'This user has not added any results.');
67                 ?>
68             </div>
69             <?php
70         }
71 
72         if($user_model->publicProfileSettings->competition_map_allowed && $resultsExists){
73 
74             if(!empty($user_model->country)){
75 
76                 $showPlaned = true;
77                 if($user_model->is_virtual || !empty($this->actionParams['forcePublic'])){
78                     $showPlaned = false;
79                 }
80 
81                 $this->widget('application.widgets.competition.CompetitionArcherMap', array(
82                     'user_model' => $user_model,
83                     'showPlaned' => $showPlaned
84                 ));

Stack Trace

#4
+
 /home/rcherz/web/protected/components/Controller.php(696): CController->render("publicProfile", array("user_model" => Users, "club" => ArcheryClubs), false)
691      */
692     public function render($view,$data=null,$return=false)
693     {
694         if (!empty($_GET['oldContent']))
695             $this->layout = 'embeddedInNewApp';
696         return parent::render($view,$data,$return);
697     }
698 
699 }
#5
+
 /home/rcherz/web/protected/controllers/UsersController.php(1451): Controller->render("publicProfile", array("user_model" => Users, "club" => ArcheryClubs))
1446         $club = ArcheryClubs::model()->with(array(
1447             'country' => array(
1448                 'select' => array('code', 'name'),
1449             )
1450         ))->findByPk($user->archery_club_id);
1451         $this->render('publicProfile', array('user_model' => $user, 'club' => $club));
1452         
1453     }
1454     
1455     public function actionFindArchers(){
1456 
#6
+
 /home/rcherz/web/protected/controllers/UsersController.php(155): UsersController->publicProfile()
150             Yii::app()->end();
151         }
152         
153         // for not loged in users show public profile
154         if(Yii::app()->user->isGuest || Users::isVirtualUser($this->actionParams['id'])){
155             $this->publicProfile();
156         }
157         else{
158             $this->profile();
159         }
160     }
2024-03-28 09:50:17 nginx/1.18.0 Yii Framework/1.1.15