Page Index Toggle Pages: 1 ... 11 12 [13] 14 15  ReplyAdd Poll Send Topic
Very Hot Topic (More than 25 Replies) Conversion (Read 45240 times)
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Conversion
Reply #180 - Sep 11th, 2017 at 4:37pm
Mark & QuoteQuote  
What does line 2249 in BoardIndex.pm say?
It should be
Code (Perl)
Select All
            $boardv ||= q{}; 



Hold off on any more conversions until I've uploaded the new convert2x mod version to the SVN or use the attached zips - The German Language files are not yet compatible with this version of 2.7 and you have to install the Converter using YabMod.
  

2_7_noconv.zip ( 2029 KB | 138 Downloads )
convert2x.zip ( 46 KB | 138 Downloads )

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: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Conversion
Reply #181 - Sep 11th, 2017 at 4:49pm
Mark & QuoteQuote  
Code (Perl)
Select All
            $boardv ||= q{}; 



This is how it is. Why then this error message and so many N / A after the maintenance functions.
  

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


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Conversion
Reply #182 - Sep 11th, 2017 at 5:09pm
Mark & QuoteQuote  
Dandello wrote on Sep 11th, 2017 at 4:37pm:
Hold off on any more conversions until I've uploaded the new convert2x mod version to the SVN or use the attached zips - The German Language files are not yet compatible with this version of 2.7 and you have to install the Converter using YabMod.



I'll look at that later. But I have a different idea. I must first see whether this can be done, as I think myself.
  

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: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Conversion
Reply #183 - Sep 11th, 2017 at 5:49pm
Mark & QuoteQuote  
pyragony54 wrote on Sep 11th, 2017 at 4:49pm:
This is how it is. Why then this error message and so many N / A after the maintenance functions.


I suspect the older converter in the SVN may not be behaving well with the new 2.7 code.
Edited:
And the problem is very probably the 'admin' to 'admin_fix' Board conversion. In forum.master make sure there's no '$board{'admin'} lurking in there - 2.7 chokes on that board name. Also check forum.control and forum.totals and make sure $control{'admin_fix'}and $totals{admin_fix'} have data. For those it's less critical but they still have the potential of choking BoardIndex.


The version of 2.7 in the zip doesn't contain any of the conversion utilities - that's why you have to install those as a mod. I've gotten good conversions off the original data I have from your forum. It takes me 20 minutes or so from setup to finish import and conversion.  I'm putting off converting the BoardMod mirror and the YaBB Forum mirror to 2.7 until we're more comfortable that the bugs have been dealt with.
  

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: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Conversion
Reply #184 - Sep 11th, 2017 at 5:55pm
Mark & QuoteQuote  
So it's funny. I have now installed 1874, the error message is gone. However, after the topic build up in the maintenance functions again some forums on N / A. If I make a contribution and delete it, everything is displayed normally.
  

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


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Conversion
Reply #185 - Sep 11th, 2017 at 6:04pm
Mark & QuoteQuote  
Dandello wrote on Sep 11th, 2017 at 5:49pm:
And the problem is very probably the 'admin' to 'admin_fix' Board conversion. In forum.master make sure there's no '$board{'admin'} lurking in there - 2.7 chokes on that board name. Also check forum.control and forum.totals and make sure $control{'admin_fix'}and $totals{admin_fix'} have data. For those it's less critical but they still have the potential of choking BoardIndex.



Love Dandello.

You have my FTP access to yabbtest.
Please see for yourself, you do more easily and you may see more, where the error is. This helps us more.
  

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: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Conversion
Reply #186 - Sep 11th, 2017 at 6:16pm
Mark & QuoteQuote  
Hm... that's odd - especially as the error is actually coming from Variables/user.log

When this error shows up again, save a copy of Variables/user.log and PM it to me so I can look at it. Then send a copy of the 'fixed' version so I can compare.
  

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: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Conversion
Reply #187 - Sep 11th, 2017 at 6:17pm
Mark & QuoteQuote  
I wanted to open a new topic and then delete it.

Quote:
An Error Has Occurred. Argument "" isn't numeric in numeric ge (>=) at Sources/MoveSplitSplice.pm line 991.


The topic has been deleted correctly
  

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: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Conversion
Reply #188 - Sep 11th, 2017 at 6:34pm
Mark & QuoteQuote  
Another pesky undefined variable.  Embarrassed
In MoveSplitSplice.pm find
Code (Perl)
Select All
       if (   ${ $uid . $newboard }{'threadcount'} == 1
             || ${ $board_totals{$newthreadid} }[0] >=
             ${ $uid . $newboard }{'lastposttime'} ) 



replace with
Code (Perl)
Select All
              if (   ${ $uid . $newboard }{'threadcount'} == 1
             || ( ${ $board_totals{$newthreadid} }[0] && ${ $uid . $newboard }{'lastposttime'} && ${ $board_totals{$newthreadid} }[0] >=
             ${ $uid . $newboard }{'lastposttime'} ) ) 


This is now checking to make sure all the variables related to the '>=' have values.
  

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: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Conversion
Reply #189 - Sep 11th, 2017 at 6:52pm
Mark & QuoteQuote  
Unfortunately no success

An Error Has Occurred. Argument "" isn't numeric in numeric ge (>=) at Sources/MoveSplitSplice.pm line 991.


Stop,works!!!!!
  

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


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Conversion
Reply #190 - Sep 11th, 2017 at 6:53pm
Mark & QuoteQuote  
pyragony54 wrote on Sep 11th, 2017 at 6:04pm:
And the problem is very probably the 'admin' to 'admin_fix' Board conversion. In forum.master make sure there's no '$board{'admin'} lurking in there - 2.7 chokes on that board name. Also check forum.control and forum.totals and make sure $control{'admin_fix'}and $totals{admin_fix'} have data. For those it's less critical but they still have the potential of choking BoardIndex.


Controlled and nothing suspicious found.
  

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: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Conversion
Reply #191 - Sep 12th, 2017 at 4:09am
Mark & QuoteQuote  
I now have an install showing the N/A in the BoardIndex. It's bed time so I'll track this down in the morning.
Edited:
I know what is happening - forum.totals is recording the wrong info. Now to track down why. I think this is another one of those 'how the heck did it work in the first place?'
« Last Edit: Sep 12th, 2017 at 11:15am by Dandello » 
Reason: More info 

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


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Conversion
Reply #192 - Sep 12th, 2017 at 12:49pm
Mark & QuoteQuote  
Okay, this was one of those mysterious "if the string ends in 0 let's not read it."  Really?  Shocked Smiley

A tentative fix - some of this will end up in the Importer rather than running the fix every single time you rebuild the MessageIndex.

In Maintenance.pm find
Code (Perl)
Select All
            for (@tempboard) {
                 s/^.*?[|]//xsm;
             }
             @tempboard = reverse sort { lc($a) cmp lc $b } @tempboard;
             my $prnbrd = join q{}, @tempboard;
             open my $NEWBOARD, '>', "$boardsdir/$boardname.txt" 


replace with
Code (Perl)
Select All
            chomp @tempboard;
             for (@tempboard) {
                 s/^.*?[|]//xsm;
             }
             @tempboard = reverse sort {
                  (split /[|]/xsm, $a )[4] <=>
                    (split /[|]/xsm, $b )[4]
             } @tempboard;
 #'0' issues with status
             my @fixer = ();
             foreach (@tempboard) {
                 my @fix = split /[|]/xsm;
                 if ( $fix[8] eq '0' ) {
                     $fix[8] = 'x';
                 }
                 my $fix = join '|', @fix;
                 push @fixer, $fix;
             }
             my $prnbrd = join qq{\n}, @fixer;
             open my $NEWBOARD, '>', "$boardsdir/$boardname.txt" 


Find
Code (Perl)
Select All
        my @ftotals = <$TOTALS>;
         close $TOTALS or croak "$croak{'close'} TOTALS";
         chomp @ftotals; 


add after
Code (Perl)
Select All
        @ftotals = reverse sort {
                  (split /[|]/xsm, $a )[4] <=>
                    (split /[|]/xsm, $b )[4]
             } @ftotals; 


In Post.pm find:
Code (Perl)
Select All
        else { $mstate = '0'; } 


Replace with
Code (Perl)
Select All
        else { $mstate = 'x'; } 


There may be other places with sorting issues but I'm not finished looking for them.
  

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: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Conversion
Reply #193 - Sep 12th, 2017 at 3:05pm
Mark & QuoteQuote  
Well, let's go on. Everything worked on, now comes the following error message with rebuild message index.

Quote:
An Error Has Occurred. Use of uninitialized value $fix[8] in string eq at /var/www/vhosts/yabbtest.de/cgi-bin/yabb2/Admin/Maintenance.pm line 250.


Dandello wrote on Sep 12th, 2017 at 4:09am:
It's bed time so I'll track this down in the morning.


I'll get up again. 9 hours we have time difference.

Dandello wrote on Sep 12th, 2017 at 12:49pm:
Okay, this was one of those mysterious "if the string ends in 0 let's not read it."  Really?


These were the little evil poison dwarfs

  

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: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Conversion
Reply #194 - Sep 12th, 2017 at 4:44pm
Mark & QuoteQuote  
Replace
Code (Perl)
Select All
                 if ( $fix[8] eq '0' ) {
                     $fix[8] = 'x';
                 }
  


with
Code (Perl)
Select All
                $fix[8] =~ s/0/x/gxsm; 



If the above doesn't behave then use
Code (Perl)
Select All
                 if ( !$fix[8] || $fix[8] eq '0' ) {
                     $fix[8] = 'x';
                 }
  


That whole block will be moved to the Importer/Converter.

What I had noticed - after breaking forum.totals apart to I could sort it in a spreadsheet - every Board with missing data had a status of '0' in the first or last entry in the board's txt file. The data was intact in the txt file, it just wasn't being properly read.  Cry
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 ... 11 12 [13] 14 15 
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Conversion

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