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.

Archive

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

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

Bug in forum


Reply

879 Views

Avatar
Markus

17 July 2007 at 9:18pm (Last edited: 17 July 2007 9:23pm), Google Summer of Code Hacker, 152 Posts

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);