YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


 
Page Index Toggle Pages: 1
Topic Tools
 
YaBB 'Next Edition' Baclup (Read 1,671 times)
 May 3rd, 2012 at 11:37pm
There are no actions to perform.  

JonB 
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 3,614
Land of the Blazing Sun!


None
YaBB 'Next Edition' Baclup
When you try to run YaBB Backup in the current forum installed on YaBBforum.com -

An Error Has Occurred! Use of qw(...) as parentheses is deprecated at /home/yabbforum/cgi-bin/community/Admin/Backup.pl line 225.

Lips Sealed
« Last Edit: May 3rd, 2012 at 11:54pm by JonB »  
YaBBNext-Backup.JPG (26 KB | 100 )
YaBBNext-Backup.JPG
I find your lack of faith disturbing.
 
IP Logged  
 Reply #1 - May 4th, 2012 at 8:39pm
There are no actions to perform.  

Corey Chapman 
YaBB Administrator
*****
Offline
Posts: 10,015
Rock Hill, South Carolina


YaBB 2.5
Re: YaBB 'Next Edition' Baclup
There are lots of errors and warnings throughout YaBB for deprecated code suddenly.  I noticed this the other night when I was fixing some issues here, and that was the cause (in Subs.pl due to the way defines and arrays were coded).  There must have been an update to Perl which no longer allows that deprecated code.
« Last Edit: May 4th, 2012 at 8:40pm by Corey Chapman »  
...
722568493  
IP Logged  
 Reply #2 - May 6th, 2012 at 3:56pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 1,852
Earth


YaBB 2.5
Re: YaBB 'Next Edition' Baclup
I know that the newest version of ActiveState Perl throws non-fatal errors on 'defined' hashes (which Subs.pl has a couple of.) Haven't seen these other errors, but ActiveState is always a little behind the newest regular Perl version and sometimes throws slightly different errors.

I just tested backup on my testbed running mySQL and it didn't throw errors - but I'm not where I can look at the backed-up files so can't confirm they're okay.

My online testbed:
Apache version 2.2.16
mySQL version 5.0.95-community
Perl version 5.8.8

Found this :http://blogs.perl.org/users/rurban/2010/09/qw-in-list-context-deprecated.html - apparently that qw(...) became  depreciated some time ago. Funny but my syntax checker didn't catch it and this is the first time I've run across - apparently it kicked in around Perl 12?.

The line it's flagging reads :
Code Select All
	foreach $module qw(Compress::Zlib Compress::Bzip2) {
 



It should read
Code Select All
	foreach my $module (qw(Compress::Zlib Compress::Bzip2) ) {
 



or clearer :
Code Select All
    my @lab_lst = qw(Compress::Zlib Compress::Bzip2);
    foreach my $module(@lab_lst) {
 



There are a couple more of these in Backup.pl and one in ModuleChecker.pl. I didn't find any in Sources/
« Last Edit: May 7th, 2012 at 4:01am by Dandello »  
WWW  
IP Logged  
 Reply #3 - May 7th, 2012 at 2:21pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 1,852
Earth


YaBB 2.5
Re: YaBB 'Next Edition' Baclup
After further research - YaBB's host must have gone to Perl14. It looks like Perl12 shows the 'going-to-be-toast syntax' warnings when the warning pragma is turned on. (But YaBB doesn't run properly when the warning pragma is turned on.)
 
WWW  
IP Logged  
 Reply #4 - Nov 6th, 2012 at 9:33pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 1,852
Earth


YaBB 2.5
Re: YaBB 'Next Edition' Baclup
This Topic was moved here from YaBB 2 - Bugs [Need Verification] by Dandello.
 
WWW  
IP Logged  
Page Index Toggle Pages: 1
Topic Tools
 

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser

YaBB Facebook Group Page

Vulnerability Scanner

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 3.0 Beta!
YaBB Forum Software © 2000-2011. All Rights Reserved.