Page Index Toggle Pages: 1 ReplyAdd Poll Send Topic
Normal Topic Mod interferring with backup download (Read 1290 times)
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Mod interferring with backup download
Mar 7th, 2015 at 3:11pm
Mark & QuoteQuote  
I don't know which one yet but it's one of the ones installed here.  Cry
Luckily I can download backups via FTP and I have automated backups running every other day.
  

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: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Mod interferring with backup download
Reply #1 - Mar 10th, 2015 at 3:54pm
Mark & QuoteQuote  
Update: Not a Mod. But I don't know what the culprit is except it has to do with YaBB fopen/fclose routines.

The fix: in Admin/Backup.pm find
Code (Perl)
Select All
    # open in binmode
     fopen( READ, $filename )
       || fatal_error( q{}, "$backup_txt{46} $filename", 1 );
     binmode READ;

     # stream it out
     binmode STDOUT;
     while (<READ>) { print; }
     fclose(READ); 



replace with
Code (Perl)
Select All
    # open in binmode
     open( READ, $filename )
       || fatal_error( q{}, "$backup_txt{46} $filename", 1 );
     binmode READ;

     # stream it out
     binmode STDOUT;
     while (<READ>) { print; }
     close(READ); 



This uses Perl's native file open/close routines and bypasses any file locking or other things happening in YaBB's fopen/fclose routines.

Note: As far as we know this is a very rare occurance - at least it hasn't been reported as far as I know.
The key symptom is, if you're not using MSIE (which throws an error to the screen), when you look at the size of your downloaded compressed backup, the size is 1kb or less when the original is much much larger.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Mod interferring with backup download

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