Page Index Toggle Pages: [1] 2 3 4
Topic Tools
Very Hot Topic (More than 25 Replies) threads not updating (Read 480 times)
freediver
Senior Member
****
Offline



Posts: 518
threads not updating
Jan 13th, 2013 at 10:43pm
Post Tools
This seems to be a recurring problem in long threads. For example, when I post in this thread:

http://www.ozpolitic.com/forum/YaBB.pl?num=1357305685

it should go to post #615 or higher (page 42). Instead I get directed to this post on page 41:

http://www.ozpolitic.com/forum/YaBB.pl?num=1357305685/600#612

which is someone else's earlier post. So the post count in the thread is messed up. This seems to prevent the last page from being generated. I cannot access the last page directly by adding 15 to the URL, eg:

http://www.ozpolitic.com/forum/YaBB.pl?num=1357305685/615

does not work.

The posts do show up in people's recent posts lists.
« Last Edit: Jan 13th, 2013 at 10:47pm by freediver »  

Founding member of . I recently upgraded from YaBB 2.2.1 to 2.5 AE to 2.5.2.
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online



Posts: 2,467
Location: Earth

YaBB 2.6.1
Re: threads not updating
Reply #1 - Jan 13th, 2013 at 11:12pm
Post Tools
Have you tried running the Rebuild Message Index and Board Totals in the Admin utilities? (Because I just followed your links as a guest and got to message #615 and beyond).
However - the http://www.ozpolitic.com/forum/YaBB.pl?num=1357305685/600#612 takes me to near the bottom of message #612 instead of the top, which is a little odd.

As a Guest, the order of the posts isn't reversed - which I kind of assume they must be for users as http://www.ozpolitic.com/forum/YaBB.pl?num=1357305685 goes to Post #0 for me and you're indicating you should be going to post #615+.
« Last Edit: Jan 13th, 2013 at 11:15pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
freediver
Senior Member
****
Offline



Posts: 518
Re: threads not updating
Reply #2 - Jan 14th, 2013 at 2:39am
Post Tools
Thanks. I'll try that shortly.

The post count appears to be four behind, so the new page does not show up until there are four new posts on it.
  

Founding member of . I recently upgraded from YaBB 2.2.1 to 2.5 AE to 2.5.2.
Back to top
WWW  
IP Logged
 
freediver
Senior Member
****
Offline



Posts: 518
Re: threads not updating
Reply #3 - Jan 16th, 2013 at 3:05am
Post Tools
That fixed it, but it is happening again already. This thread for example has a post count that is one behind. I got directed here after making post #155

http://www.ozpolitic.com/forum/YaBB.pl?num=1355830576/150#154

Is there some underlying bug, or could it just be the server cutting out occasionally and not finishing the job?
  

Founding member of . I recently upgraded from YaBB 2.2.1 to 2.5 AE to 2.5.2.
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online



Posts: 2,467
Location: Earth

YaBB 2.6.1
Re: threads not updating
Reply #4 - Jan 16th, 2013 at 5:40am
Post Tools
If it's a bug, then it's an underlying (and un-reported) bug from 2.5AE.

The 'pages' are set programmatically by dividing the number of posts in a thread by the number of posts that are supposed to show up on each page then assigning the first post on each page a 'first key'. (So num=1163983764/600#610 means that 600 is the first post on the page and 610 is the one you're going to) So if each page has 20 posts, then post 600 should start page 30. And that number of posts comes from the board's txt file in the Boards folder.

So I suspect you're right that something is keeping the number of posts in the thread from properly (or quickly) updating in the board txt file.
« Last Edit: Jan 16th, 2013 at 5:42am by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,593
Location: UK:Scotland/livingston

None
Re: threads not updating
Reply #5 - Jan 16th, 2013 at 7:56am
Post Tools
freediver can you send me a copy of the source code for testing if it is ok you can email me on the email button or the Gtalk button this is.


◦cgi-bin/yabb2
◦cgi-bin/yabb2/Admin
◦cgi-bin/yabb2/Help/English/Admin
◦cgi-bin/yabb2/Help/English/Gmod
◦cgi-bin/yabb2/Help/English/Moderator
◦cgi-bin/yabb2/Help/English/User
◦cgi-bin/yabb2/Languages/English
◦cgi-bin/yabb2/Modules/Archive/Tar
◦cgi-bin/yabb2/Modules/Archive/Zip
◦cgi-bin/yabb2/Modules/Digest
◦cgi-bin/yabb2/Modules/Email/Date
◦cgi-bin/yabb2/Modules/MIME
◦cgi-bin/yabb2/Sources
◦cgi-bin/yabb2/Templates/default
◦cgi-bin/yabb2/Templates/yabb21

◦yabbfiles/
◦yabbfiles/avatars
◦yabbfiles/Buttons/English
◦yabbfiles/googiespell
◦yabbfiles/greybox
◦yabbfiles/ModImages
◦yabbfiles/Smilies
◦yabbfiles/Templates/Admin/default
◦yabbfiles/Templates/Forum/default
◦yabbfiles/Templates/Forum/yabb21
  

YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
Back to top
IP Logged
 
freediver
Senior Member
****
Offline



Posts: 518
Re: threads not updating
Reply #6 - Jan 16th, 2013 at 10:06am
Post Tools
I sent you an email with a 2.4 MB attachment.
  

Founding member of . I recently upgraded from YaBB 2.2.1 to 2.5 AE to 2.5.2.
Back to top
WWW  
IP Logged
 
freediver
Senior Member
****
Offline



Posts: 518
Re: threads not updating
Reply #7 - Jan 16th, 2013 at 10:08am
Post Tools
Dandello, should the page count be 'recalculated' from scratch every time there is a new post? Or is the number merely incremented - in which case a fault can only be corrected by running maintenance?

Also, in reference to earlier posts, I do not have the post order reversed. I have 15 posts per page, with the first post at the top of page 1.
  

Founding member of . I recently upgraded from YaBB 2.2.1 to 2.5 AE to 2.5.2.
Back to top
WWW  
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,593
Location: UK:Scotland/livingston

None
Re: threads not updating
Reply #8 - Jan 16th, 2013 at 2:25pm
Post Tools
freediver wrote on Jan 16th, 2013 at 10:06am:
I sent you an email with a 2.4 MB attachment.

thank you i just got it and will run some tests on it

freediver wrote on Jan 16th, 2013 at 10:08am:
Dandello, should the page count be 'recalculated' from scratch every time there is a new post? Or is the number merely incremented - in which case a fault can only be corrected by running maintenance?

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.
  

YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online



Posts: 2,467
Location: Earth

YaBB 2.6.1
Re: threads not updating
Reply #9 - Jan 16th, 2013 at 5:02pm
Post Tools
xnoddyx wrote on Jan 16th, 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:
Code
Select All
1345913802|We're now on 2.5.4|Dandello|xxxx@xxxxxx.net|1345913802|0|admin|xx|0a
 



and the CTB for that Topic.
Code
Select All
### 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.
« Last Edit: Jan 16th, 2013 at 5:04pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
freediver
Senior Member
****
Offline



Posts: 518
Re: threads not updating
Reply #10 - Jan 17th, 2013 at 9:02am
Post Tools
OK I'll give it a go.

It would not surprise me if it was a server load issue as I am overloading the server on a regular basis, according to Munin. Apparently upgrading from $10 to $100 per month wasn't enough. Unfortunately they do not inform me if my site goes into a 'cooloff', but Munin keeps working so maybe it has not happened yet.
  

Founding member of . I recently upgraded from YaBB 2.2.1 to 2.5 AE to 2.5.2.
Back to top
WWW  
IP Logged
 
freediver
Senior Member
****
Offline



Posts: 518
Re: threads not updating
Reply #11 - Jan 17th, 2013 at 9:31am
Post Tools
The two numbers match, but are incorrect. There were 77 posts in the thread at the time. I made a test post before I put the forum into maintenance mode and transferred the files.

I had to use manual transfer because of the number of thread files, which is also handy because filezilla stores your requests and then transfers them all at once.

1358297766|Bloody Carbon Tax My Lunch went up 50 cents|BlOoDy RiPpEr|xxxx@xxxx.com|1358414264|76|bloody.ripper|xx|0


### ThreadID: 1358297766, LastModified: Thu, 17 Jan 2013 19:23:57 +1000 ###

'board',"politicians"
'replies',"76"
'views',"622"
'lastposter',"freediver"
'lastpostdate',"1358414264"
'threadstatus',"0"
'repliers',"1358414265|freediver|0,1358414289|Andrei.Hicks|1,1358414534|life_goe
s_on|0,1358414556|Rider|0,1358414637|philperth2010|0"

The URL I got directed to after making reply #77:

http://www.ozpolitic.com/forum/YaBB.pl?num=1358297766/75#76
« Last Edit: Jan 17th, 2013 at 9:34am by freediver »  

Founding member of . I recently upgraded from YaBB 2.2.1 to 2.5 AE to 2.5.2.
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online



Posts: 2,467
Location: Earth

YaBB 2.6.1
Re: threads not updating
Reply #12 - Jan 17th, 2013 at 4:50pm
Post Tools
Actually, Perl starts at 0 so there's an initial post (0) and 76 replies for a number of 77 lines in the message file. (Or do you mean there were 78 lines in the message file when the ctb was saying there were 77 lines (76 + 1)?)

And at what you're now paying for service - let's just say that 1200 a year is about twice what I'm paying for a VPS (and I'm not using the cheapest one out there, either). And I actually get things like email warnings when the server has issues, or other things happen. Just saying  Wink

And since there are a lot of YaBB big boards out there and I can't find any similar reports here on YaBBForum, I suspect your server just isn't updating the ctb file properly. I'm not a server person - I leave that to JonB and xnoddyx. Maybe one of them will have an idea of where to look next or what questions to ask your host.

The YaBB code for that function hasn't changed from 2.4 - so I'm real sure it's not YaBB.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
freediver
Senior Member
****
Offline



Posts: 518
Re: threads not updating
Reply #13 - Jan 18th, 2013 at 2:48am
Post Tools
I didn't count the lines, but I got directed to the post immediately prior to mine after making that post. I got directed to this URL:

http://www.ozpolitic.com/forum/YaBB.pl?num=1358297766/75#76

after making the post marked reply #77
  

Founding member of . I recently upgraded from YaBB 2.2.1 to 2.5 AE to 2.5.2.
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online



Posts: 2,467
Location: Earth

YaBB 2.6.1
Re: threads not updating
Reply #14 - Jan 18th, 2013 at 3:33am
Post Tools
I have no idea - seriously, all we know is that the ctb file isn't properly updating or possibly the thread ctb and the board file get out of synch and that throws things off and then fixes itself later. - Or your server/Perl is taking its sweet time in updating the files.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 3 4
Topic Tools