Page Index Toggle Pages: 1
Topic Tools
Normal Topic YaBB 'Next Edition' Baclup (Read 2,025 times)
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,987
Location: Land of the Blazing Sun!

YaBB 2.6.1
YaBB 'Next Edition' Baclup
May 3rd, 2012 at 11:37pm
Post Tools
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 | 99 Downloads )
YaBBNext-Backup.JPG

I find your lack of faith disturbing.
Back to top
IP Logged
 
Corey Chapman
YaBB Administrator
*****
Offline



Posts: 10,038
Location: Rock Hill, South Carolina

None
Re: YaBB 'Next Edition' Baclup
Reply #1 - May 4th, 2012 at 8:39pm
Post Tools
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 »  

Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online



Posts: 2,437
Location: Earth

YaBB 2.6.1
Re: YaBB 'Next Edition' Baclup
Reply #2 - May 6th, 2012 at 3:56pm
Post Tools
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 »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online



Posts: 2,437
Location: Earth

YaBB 2.6.1
Re: YaBB 'Next Edition' Baclup
Reply #3 - May 7th, 2012 at 2:21pm
Post Tools
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.)
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online



Posts: 2,437
Location: Earth

YaBB 2.6.1
Re: YaBB 'Next Edition' Baclup
Reply #4 - Nov 6th, 2012 at 9:33pm
Post Tools
This Topic was moved here from YaBB 2 - Bugs [Need Verification] [move by] Dandello.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top