Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2271 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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) if ($save_moved) { save_moved_file(); } Add after Code (Perl)## 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. WWW IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2271 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 856 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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)} IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2271 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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. Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 856 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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)} IP Logged