PHP notice

Trying to get property of non-object

/home/safar-travel/www/themes/safar24/views/ferry/route_offer_detail.php(221)

209                                             echo ucfirst(strtolower($ws_j->departPort->name)) . " " .ucfirst(strtolower($ws_j->arrivePort->name));
210                                               ?>
211                                         </a>
212                                         <span><?php echo $dateOutward;?></span>
213                                     </div>
214                                     <div class="col-xs-5 ruppes">
215                                         <a href=""><b><span style="color: #636B75"><?php echo $ws_j->price; ?> <?php echo $ws_j->currency; ?></span></b></a>
216                                     </div>
217                                     <div class="col-xs-12">
218                                         <div class="top-recap">
219                                             <div class="summary">
220                                                 <span class="people">
221                                                     <?php if ($booking->wsPassengerssummary->adults_num > 0) { ?>
222                                                         <span class="adult">x <?php echo $booking->wsPassengerssummary->adults_num; ?></span>
223                                                     <?php } ?>
224                                                     <?php if ($booking->wsPassengerssummary->children_num > 0) { ?>
225                                                         <span class="child">x <?php echo $booking->wsPassengerssummary->children_num; ?></span>
226                                                     <?php } ?>
227                                                     <?php if ($booking->wsPassengerssummary->babies_num > 0) { ?>
228                                                         <span class="infant">x <?php echo $booking->wsPassengerssummary->babies_num; ?></span>
229                                                     <?php } ?>
230                                                 </span> 
231                                                 <span><?php echo PropertyValue::enumValue("JourneyTypeEnumerable", $ws_j->type)." | " ?></span>   
232                                                 <span>
233                                                 <?php 

Stack Trace

#4
+
 /home/safar-travel/www/protected/controllers/FerryController.php(352): CController->render("route_offer_detail", array("journey" => Journey, "company" => Compagnies, "articles" => array(), "banners" => array(), ...))
347             'codePromo' => $codePromo,
348             'ws_journey' => $ws_journey,
349             'ws_journeyInterest' => $ws_journeyInterest,
350             'relatedJourney' => $relatedJourney,
351             'temoignages' => $temoignages,
352         ));
353 
354     }
355 
356 
357     public function getJourneyDepartures($parms)
#16
+
 /home/safar-travel/www/protected/components/web/WebApplication.php(96): CController->run("routeOfferDetail")
091 
092             if($layout!==null)
093                 $controller->layout=$layout;
094 
095             $controller->init();
096             $controller->run($actionID);
097             $this->_controller=$oldController;
098         }
099         else
100             throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
101                 array('{route}'=>$route===''?$this->defaultController:$route)));
#19
+
 /home/safar-travel/www/index.php(24): CApplication->run()
19 if(file_exists(dirname(__FILE__) . '/protected/config/main.php')) {
20     $config = require_once(dirname(__FILE__) . '/protected/config/main.php');
21     //var_dump($config);exit();
22 }
23 //echo 'done';
24 Yii::createApplication('WebApplication', $config)->run();
25 
26  
2024-03-29 15:07:26 Apache Yii Framework/1.1.14