[Notice] Trying to get property of non-object

GET /vehicles/view/2018-peugeot-partner-panel-van

Line 305 in /homepages/33/d222119730/htdocs/brandricks/mysite/code/Pages/VehiclesPage.php

Source

296             }
297         }
298         return $r;
299     }
300     
301     public function VehicleForm(){
302         Requirements::javascript('resources/javascript/jquery.placeholder.detect/jquery.placeholder.detect.min.js');
303         //
304         $f = FieldList::create();
305         $f->push(HiddenField::create('URLSegment','URLSegment',$this->Vehicle->URLSegment));
306         $f->push(
307             HeaderField::create(
308                 'VehicleFormHead',
309                 'Contact us about this vehicle',
310                 3
311             )

Trace

ERROR [User Warning]: Couldn't set response type to 500 because of output on line 419 of /homepages/33/d222119730/htdocs/brandricks/vendor/silverstripe/framework/src/Control/HTTPResponse.php IN GET /vehicles/view/2018-peugeot-partner-panel-van Line 397 in /homepages/33/d222119730/htdocs/brandricks/vendor/silverstripe/framework/src/Control/HTTPResponse.php Source ====== 388: } elseif ($this->getStatusCode() >= 300) { 389: // It's critical that these status codes are sent; we need to report a failure if not. 390: user_error( 391: sprintf( 392: "Couldn't set response type to %d because of output on line %s of %s", 393: $this->getStatusCode(), 394: $line, 395: $file 396: ), * 397: E_USER_WARNING 398: ); 399: } 400: } 401: 402: /** 403: * Output body of this response to the browser Trace ===== user_error(Couldn't set response type to 500 because of output on line 419 of /homepages/33/d222119730/htdocs/brandricks/vendor/silverstripe/framework/src/Control/HTTPResponse.php, 512) HTTPResponse.php:397 SilverStripe\Control\HTTPResponse->outputHeaders() HTTPResponse.php:343 SilverStripe\Control\HTTPResponse->output() index.php:26 Vehicles :: Brandrick Trucks
Close

Vehicle Details

:

Contact us about this vehicle