Page Index Toggle Pages: 1 [2]  ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) Problems (Read 10222 times)
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2271
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Problems
Reply #4 - Dec 1st, 2014 at 8:29pm
Mark & QuoteQuote  
Here's a fix to be tested.
In Admin/Maintenance.pm find
Code (Perl)
Select All
    if ($save_moved) { save_moved_file(); } 



Add after
Code (Perl)
Select All
## New forum.totals rebuild ##
     my @newtots = ();
     my @myline1 = ();
     while( ($key, $value) = each %board ) {
         $ftotals = 0;
         fopen ( TOTALS, "<$boardsdir/$key.txt" );
         my @ftotals = <TOTALS>;
         fclose(TOTALS);
         chomp @ftotals;
         $ftotals = @ftotals;
         if ( !$ftotals ) {
             $msgtot = 0;
             $myline1[4] = 'N/A';
             $myline1[0] = q{};
             $myline1[5] = q{};
             $myline1[7]= q{};
             $mesg[0] = q{};
             $messby = 'N/A';
             $msgts = 0;
         }
         else {
             @myline1 = split /[|]/xsm, $ftotals[0];
             $msgtot = 0;
             $msgts = $myline1[8];
             for (@ftotals) {
                 @totalsvars = split /[|]/xsm, $_;
                 $msgtot += $totalsvars[5] + 1;
             }
             fopen ( TOTALSN, "<$datadir/$myline1[0].txt" );
             my @ftotalsn = <TOTALSN>;
             fclose(TOTALSN);
             @mesg =  split /[|]/xsm, $ftotalsn[-1];
             $messby = $myline1[6];
             if ( $messby eq 'Guest') {
                 $messby = $myline1[2];
             }
         }
         push @newtots, qq~$key|$ftotals|$msgtot|$myline1[4]|$messby|$myline1[0]|$myline1[5]|$mesg[0]|$myline1[7]|$msgts\n~;
     }
     fopen ( NTOTALS, ">$boardsdir/forum.totals" );
     print {NTOTALS} @newtots;
     fclose(NTOTALS); 



This will rebuild forum.totals from the rebuilt Message Index during Rebuild Message Index. It's been tested on a small data set and hopefully won't have problems on a big one.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2271
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Problems
Reply #3 - Dec 1st, 2014 at 5:42pm
Mark & QuoteQuote  
The errors in forum.totals were also in the backup I grabbed. It looks like at some point some change in coding really messed up forum.totals (and not just on your forum) and it appears to be specific to 2.6.0 as it isn't messed up here but was on my main offline test site.

To complicate matters, forum.totals doesn't get rebuilt during the rebuild Message Index process. So that's the first thing that needs to get fixed. I'm hoping that will take care of both problems.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 856
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Problems
Reply #2 - Dec 1st, 2014 at 4:23pm
Mark & QuoteQuote  
Be careful, the backup is still on 2.6.0
For the topic structure that is still okay.
But not in the notifications. The still functioned without problems in 2.6.0
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2271
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Problems
Reply #1 - Dec 1st, 2014 at 4:19pm
Mark & QuoteQuote  
It appears (at least partly) to be a problem with recreating the forum.totals file.  Cry
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 856
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Problems
Dec 1st, 2014 at 10:45am
Mark & QuoteQuote  
Tonight I have my forum updated to 2.6.1 Build 1603.

Thread index simply can not build up. Many forums are for me to zero, although contributions and themes are available.

This issue we had:
Topics Notifications can not rebuild.

@ Dandello

In my forum you've got admin rights. Check this out please themselves.

  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Problems

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry