Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Forum bugs

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: 1570 Views
  • Andy
    Avatar
    230 Posts

    Forum bugs Link to this post

    Hey all,

    Some of you have noticed bugs in the forum - eg posts disappearing, or turning up in the wrong topic. If any of you have any idea how to reproduce these bugs, this would be super helpful in helping me fix them!

    Thanks,
    Andy

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Forum bugs Link to this post

    It's possible that it happens when two posts are added simultaneously - hence the rare occurrence of the issue.

    In the NZCT branch there is a change to the ID generation in DataObject::write() - can you check to see if SS is running with this code?

    The ID should *not* be generated with DB::getNextID() - instead, it inserts a blank record and passes that to the rest of the write code.

  • xmedeko
    Avatar
    Community Member
    94 Posts

    Re: Forum bugs Link to this post

    Yeah, there's
    [code php]
    $this->record['ID'] = DB::getNextID($ancestry[0]);

    in DataObject:write()

    Can you post your patch here as well, pls?
    Thx

  • Andy
    Avatar
    230 Posts

    Re: Forum bugs Link to this post

    xmedeko, here is the patch.

  • xmedeko
    Avatar
    Community Member
    94 Posts

    Re: Forum bugs Link to this post

    thanks, i've applied that.

    1570 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.