[Notice] Trying to get property 'Title' of non-object

GET /routes-and-trails/category/1/rail-bike

Line 97 in /home/572332.cloudwaysapps.com/nrbqegkqqk/public_html/app/src/controllers/ToursPageController.php

Source

88             ->where('Tour_Categories.TourCategoryID = ' . $id);
89         $data = [];
90         $data['Category'] = $TourCategory;
91 
92         if (!empty($data['Category'])) {
93             $data['CustomMetaTitle'] = $data['Category']->CustomMetaTitle;
94         }
95 
96         $data['Tours'] = $Tours;
97         $data['Title'] = $data['Category']->Title . ' tours';
98         $data['FBPixelEvent'] = 'ViewContent';
99 
100         return $data;
101     }
102 
103     public function tour($r)

Trace

ERROR [User Warning]: Couldn't set response type to 500 because of output on line 427 of /home/572332.cloudwaysapps.com/nrbqegkqqk/public_html/vendor/silverstripe/framework/src/Control/HTTPResponse.php IN GET /routes-and-trails/category/1/rail-bike Line 405 in /home/572332.cloudwaysapps.com/nrbqegkqqk/public_html/vendor/silverstripe/framework/src/Control/HTTPResponse.php Source ====== 396: } elseif ($this->getStatusCode() >= 300) { 397: // It's critical that these status codes are sent; we need to report a failure if not. 398: user_error( 399: sprintf( 400: "Couldn't set response type to %d because of output on line %s of %s", 401: $this->getStatusCode(), 402: $line, 403: $file 404: ), * 405: E_USER_WARNING 406: ); 407: } 408: } 409: 410: /** 411: * Output body of this response to the browser Trace ===== user_error(Couldn't set response type to 500 because of output on line 427 of /home/572332.cloudwaysapps.com/nrbqegkqqk/public_html/vendor/silverstripe/framework/src/Control/HTTPResponse.php, 512) HTTPResponse.php:405 SilverStripe\Control\HTTPResponse->outputHeaders() HTTPResponse.php:351 SilverStripe\Control\HTTPResponse->output() index.php:18 Guided Rail Cart Experiences | North Island | New Zealand

Enjoy 15% off for the remainder of the season (up to and including 11th May)!

Discover one of the most enchanting and authentic experiences New Zealand has to offer

Forgotten World Adventures are experts in guided experiences throughout this spectacular destination; we offer a unique and unrivalled experience.

Enjoy a front row seat as you travel through breathtaking landscapes whilst discovering our country's pioneering history. Escape the everyday and embark on an experience that will transport you to a bygone era bursting with intrigue in the seldom seen region known as the Forgotten World. Whether you're seeking a half-day excursion, the 142km two-day trip or something a little extra special, we offer adventures to whet all appetites, for all ages and abilities.

 

Custom Experiences

We are delighted to offer both privatised and customised experiences to our guests. There are many ways in which the Forgotten World can be explored, be it by rail cart, jet boat, helicopter or by foot and additionally, numerous activities to be enjoyed with our partners, including the Whangamomona Hotel, Blue Duck Station and Lauren's Lavender Farm. We can tailor a personal experience to suit your requirements, featuring any combination of activities and accommodation options from our core offering.

Please contact our friendly bookings team directly to find out more. We are here to help make your adventure with us an unforgettable one.

Enquire Now

 

Explore more…

"An unforgotten experience. Proud Kiwis driving a very unique Kiwi venture"

TripAdvisor, Feb 2024

“Best money spent in NZ and just what we were looking for. Real New Zealand”

Guest Review of 'The Epic', Feb 2024

"Sheer natural beauty that brings peace to the soul!"

Google Reviews, Jan 2024

Book Now