Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Posting Form Error


Go to End


1032 Views

Avatar
Scott Farmer

Community Member, 49 Posts

9 July 2016 at 8:55pm

I get this error when I submit a form:

[Recoverable Error] Object of class SS_HTTPRequest could not be converted to string.

Seems to be this code causing it. Removing this code (for testing, just two fields) allows the form to submit:
if($bookingid && $member) {
$booking = DataObject::get_one('VehiclePageBookings',array(
'ID' => $bookingid,
'MemberID' => $member->ID
));
}

There are no errors when the form fields get loaded. Loads the correct data from the above code. Just throws a error when you press submit.

Thanks