Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Bug in forum

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

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

Page: 1
Go to End
Author Topic: 871 Views
  • Markus
    Avatar
    Google Summer of Code Hacker
    152 Posts

    Bug in forum Link to this post

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

    871 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.