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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

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

Forum Trunk Fatal Error on Edit


Go to End


4 Posts   1775 Views

Avatar
Blackdog

Community Member, 156 Posts

17 October 2008 at 12:50pm

Hi,

has anyone got a fix for the Fatal Error on that latest Trunk version of the Forum module?

I am getting the following

FATAL ERROR: DataObjectSet::__construct: Passed item #4 is not an object or associative array, can't be properly iterated on in templates

Debug is showing

items = TextField (Title: Title : ) = tst
itemsArr =
0 = TextField (Title: Title : ) = tst
1 = TextareaField (Content: Content : ) = test
2 = LiteralField (BBCodeHelper: BBCodeHelper : ) =
3 = CheckboxField (TopicSubscription: Subscribe to this topic (Receive email notifications when a new reply is added) : ) =
4 =

5 = LiteralField (CurrentAttachments: CurrentAttachments : ) =
6 = HiddenField (ID: ID : ) = 1
item =

i =
4

Avatar
Blackdog

Community Member, 156 Posts

17 October 2008 at 1:24pm

nevermind, I commented out the upload form and it was find.

Avatar
Willr

Forum Moderator, 5523 Posts

17 October 2008 at 6:38pm

Hmm how did you come across that error?

Avatar
Blackdog

Community Member, 156 Posts

18 October 2008 at 12:11am

just installed it and when you go to edit your posts it throws a fatal error.

I hadn't changed anything, that was fresh off the trunk.

SS 2.2.2 stable and Forum Trunk.