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.

Archive /

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

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

Bug in forum


Go to End


1203 Views

Avatar
Markus

Google Summer of Code Hacker, 152 Posts

17 July 2007 at 9:18pm

Edited: 17/07/2007 9:23pm

There is a bug in the forum module:

Fatal error: Call to a member function setField() on a non-object in /sites/ssopen/www/forum/code/Forum.php on line 641

The problem is that it is not checked if $post is really set. You should at least change line 627 from

else user_error('A valid post was not specified. We pass the Post ID through now, creating a blank post on ReplyForm. Dumb, but necessary for uploading attachments.', E_USER_ERROR);

to

if(!issset($post))
  user_error('A valid post was not specified. We pass the Post ID through now, creating a blank post on ReplyForm. Dumb, but necessary for uploading attachments.', E_USER_ERROR);