PHP notice

Trying to get property of non-object

/var/www/vhosts/angikad.org.tr/public_html/protected/themes/default/views/users/default/uye.php(3)

01         <div class="member row">
02             <div class="member-image col-md-2  profile-image">
03                 <?php if ($item->photo){ ?>
04                     <img src="/uploads/users/<?php echo $item->photo ?>" alt="<?php echo $item->fullname ?>">
05                     <?php } else { ?>
06                         <img src="/protected/themes/default/images/logo.jpg"  alt="<?php echo $item->fullname ?>">
07 
08                         <?php }?>
09                     </div>
10                     <div class="member-info col-md-10">
11                         <h3><?php echo $item->unvan; ?> <?php echo $item->fullname ?></h3>
12                         <?php if(!empty($item->company_name)) { ?><p class="member-firma"><?php echo $item->company_name ?></p><?php } ?>
13 
14                         <?php if(!empty($item->bio)) { ?> <label>Hakkında</label>
15                         <p class="bio"><label></label> <?php echo $item->bio; ?></p><?php } ?>

Stack Trace

#4
+
 /var/www/vhosts/angikad.org.tr/public_html/protected/modules/users/controllers/front/DefaultController.php(55): CController->render("uye", array("item" => null))
50   $items = User::model()->findAllBySql($sql);
51   $this->render('uyeler',array('items'=>$items));
52 }
53 public function actionUye($id){
54   $items = User::model()->findByPk($id);
55   $this->render('uye',array('item'=>$items));
56 
57 }
58 
59 public function actionSonuc(){
60 
#14
+
 /var/www/vhosts/angikad.org.tr/public_html/protected/components/WebApplicationEndBehavior.php(25): CApplication->run()
20         // Attach the changeModulePaths event handler
21         // and raise it.
22         $this->onModuleCreate = array($this, 'changeModulePaths');
23         $this->onModuleCreate(new CEvent($this->owner));
24 
25         $this->owner->run(); // Run application.
26     }
27 
28     // This event should be raised when CWebApplication
29     // or CWebModule instances are being initialized.
30     public function onModuleCreate($event)
#16
+
 /var/www/vhosts/angikad.org.tr/public_html/index.php(22): CComponent->__call("runEnd", array("front"))
17         return parent::init();
18     }
19 }
20 
21 $app = new kraftCMS($config);
22 $app->runEnd('front');
23 
2024-03-29 01:55:13 Apache Yii Framework/1.1.20