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

Forum bugs


Reply


5 Posts   1663 Views

Avatar
Andy

230 Posts

27 July 2007 at 10:26am

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

Avatar
Sam

Administrator, 685 Posts

28 July 2007 at 8:37am

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.

Avatar
xmedeko

Community Member, 94 Posts

29 July 2007 at 5:11pm

Edited: 29/07/2007 5:12pm

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

Avatar
Andy

230 Posts

31 July 2007 at 10:37am

xmedeko, here is the patch.

Avatar
xmedeko

Community Member, 94 Posts

31 July 2007 at 3:42pm

thanks, i've applied that.