[Notice] Trying to get property of non-object

GET /monohull-for-sale-tahiti-yacht-broker/boat/hallberg-rassy-53

Line 528 in /var/www/36degrees.pf/english/mysite/page/Page.php

Source

519     public function getBoatByLink($id) {
520         $id = Convert::raw2xml($id);
521         if (is_numeric($id)) {
522             $item = DataObject::get_by_id('BoatListing', $id);
523         } else {
524             $item = BoatListing::get_one('BoatListing', "URLSegment = '{$id}'");
525         }
526 
527         // Block URL access to non-active boats
528         if ( ! $item->Active) {
529             $item = null;
530         }
531 
532         return $item;
533     }
534 

Trace

Page not found » 36 Degrees Brokerage

Page not found


Sorry, it seems you were trying to access a page that doesn't exist.

Please check the spelling of the URL you were trying to access and try again.