xnoddyx wrote on Jan 16
th, 2013 at 2:25pm:
Dandello will correct me if i am wrong
when you make a reply and click post your message is saved the post count is read in 1 is added and then saved back.
Tracing out the code it's a little more complicated than that - the number of replies is first written to the topic's CTB file in ./Messages by Post.pl, then the number from the CTB file is read and written into the board data file in./Boards. The data from for ./Boards is the one that gets read to determine the page numbers and such. (But I expect that could be changed to reading from the CTB instead.) And the number in the CTB is simply incremented.
So there could be a mis-writing for either of those two files. (And if it's a bug, then it's prior to 2.4 as that code hasn't been changed since at least that point. But it if were a bug, then I'd expect someone would have reported it before now - 2.4 is almost 4 years old - and it would be affecting other forums.)
I'm wondering if your forum is
extremely busy, there might, possibly, maybe, be some sort of limit on how many files can be open to be written to at one time?
On a test - the next time this happens, take a copy of that message file's ctb file AND a copy of that board's data file. (As close together in time as possible - put your forum in Maintenance to keep these files intact while you do this.)
Board file:
1345913802|We're now on 2.5.4|Dandello|xxxx@xxxxxx.net|1345913802|0|admin|xx|0a
and the CTB for that Topic.
### ThreadID: 1345913802, LastModified: Tue, 08 Jan 2013 00:58:53 +0000 ###
'board',"announcements"
'replies',"0"
'views',"37"
'lastposter',"admin"
'lastpostdate',"1345913802"
'threadstatus',"0a"
'repliers',"1355453702|admin|0"
The two highlighted spots should should match.