PHP notice

Trying to get property of non-object

C:\inetpub\wwwroot\bgpuonlineshop.com\ticket\protected\views\front\match\list.php(105)

093                         </thead>
094                     <?php
095                     foreach ( $oMatchs as $oMatch ) {
096                     ?>
097                              <tr>
098                                 <td><strong><?php 
099                                 $sDateTime = date_create($oMatch->kickoff);
100                                 echo date_format($sDateTime, 'd-m-Y'); 
101                                 ?></strong></td>
102                                 <td><strong><?php echo date_format($sDateTime, 'H:i'); ?></strong></td>
103                                 <td>
104                                 <?php 
105                                 Helpers::showImage($oMatch->matchProgram->image,"images/program/".$oMatch->matchProgram->image,0,60)
106                                 ?>
107                                 </td>
108                                 <td>
109                                 <?php 
110                                 if ($oMatch->club->id == 1) {
111                                     $sHomeClubClass = 'team_bgfc';
112                                 } else {
113                                     $sHomeClubClass = 'team_name';
114                                 }        
115                                 Helpers::showImage($oMatch->club->logo,"images/clubs/".$oMatch->club->logo,0,55);
116                                 echo "<br><span class='".$sHomeClubClass."'>".$oMatch->club->short_title.'</span>';
117                                 ?>

Stack Trace

#4
+
 C:\inetpub\wwwroot\bgpuonlineshop.com\ticket\protected\controllers\front\MatchController.php(64): CController->render("list", array("oMatchs" => array(TicketMatch, TicketMatch, TicketMatch, TicketMatch, ...), "oCurrentHomeMatch" => TicketMatch))
59         $oCurrentHomeMatch = TicketMatch::model()->find($oHomeMatchCriteria);
60         // render to view    
61         $this->render ( 'list', array (
62                 'oMatchs' => $oMatchs,
63                 'oCurrentHomeMatch' => $oCurrentHomeMatch,
64         ) );
65     }
66     
67     /*
68      * Show how to tranfer money
69      * 
#12
+
 C:\inetpub\wwwroot\bgpuonlineshop.com\ticket\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)
#15
+
 C:\inetpub\wwwroot\bgpuonlineshop.com\ticket\index.php(10): CComponent->__call("runEnd", array("front"))
05 // Remove the following lines when in production mode
06 defined('YII_DEBUG') or define('YII_DEBUG', true);
07 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
08  
09 require_once($yii);
10 Yii::createWebApplication($config)->runEnd('front');
11 
12 ?>
2024-03-29 18:35:25 Microsoft-IIS/10.0 Yii Framework/1.1.14