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.

All other Modules

Discuss all other Modules here.

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

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


Reply

5 Posts   1916 Views

Avatar
firstpixel

16 December 2009 at 9:04am Community Member, 16 Posts

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

16 December 2009 at 9:23am Forum Moderator, 5511 Posts

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

17 December 2009 at 8:21pm Community Member, 16 Posts

Everything is working fine with the latest trunk.

Thanks a lot for the help.

Avatar
firstpixel

6 January 2010 at 5:34am Community Member, 16 Posts

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

6 January 2010 at 9:30am Community Member, 16 Posts

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:

[url]http://open.silverstripe.org/ticket/4898[/url]