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.

All other Modules /

Discuss all other Modules here.

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

User Forms - DataObject::setField: passed an object that is not a DBField


Go to End


5 Posts   2900 Views

Avatar
firstpixel

Community Member, 19 Posts

16 December 2009 at 9:04am

I am running User Forms 0.2.0 with SilverStripe 2.4. Building the form etc worked fine. But when I am on the published page and I try to submit the form I get the error:

[User Warning] DataObject::setField: passed an object that is not a DBField
POST /webdesign/kontakt/Form

Line 2065 in /is/htdocs/wp1094768_3R20B0YUEG/www/webdesign/sapphire/core/model/DataObject.php

Is this an issue with 2.4 or is there something else wrong.

Any help is welcome.

Avatar
Willr

Forum Moderator, 5523 Posts

16 December 2009 at 9:23am

Can you post the full backtrace of the error. Note if you're running 2.4 you will have to be using the trunk version of userforms. The latest stable won't work with 2.4.

Avatar
firstpixel

Community Member, 19 Posts

17 December 2009 at 8:21pm

Everything is working fine with the latest trunk.

Thanks a lot for the help.

Avatar
firstpixel

Community Member, 19 Posts

6 January 2010 at 5:34am

Sorry for bothering again. The User form now works with the latest trunk, but now I connot save any content. When I click on save and publish or just save, I get an error. Firebug says:

400//SecurityID doesn't match, possible CRSF attack.

I am using 2.4 with the latest trunk of Userforms. Before using this trunk I was able to save an publish content as usual.

Thanky for helping.

Avatar
firstpixel

Community Member, 19 Posts

6 January 2010 at 9:30am

The saving error has nothing to do with UserForms. I just got to know that my provider updated to PHP 5.2.11 and since then I get the errors. I opened a ticket:

http://open.silverstripe.org/ticket/4898