Page Index Toggle Pages: 1 [2]  ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) Error "Assuming NOT a POSIX class" (Read 7564 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: Error "Assuming NOT a POSIX class"
Reply #15 - Nov 6th, 2018 at 11:22pm
Mark & QuoteQuote  
2.6.11 doesn't have 'use strict' and 'use warnings' in the *.pm files. 2.7 does. So undo all the suggested fixes and comment out 'use warnings' starting with Subs.pm.

Oh, and the alnum fix for LogInOut and display should be:

 
Code
Select All
s/([[:^alnum:]])/sprintf('%%% 02X', ord($1))/egxsm 

(remove the space between the % and the 02X)
  Smiley I really shouldn't code when I'm tired.
  

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: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Error "Assuming NOT a POSIX class"
Reply #16 - Nov 8th, 2018 at 1:29pm
Mark & QuoteQuote  
Okay - Activestate Perl 5.024 actually has all the Perl Modules I need for my own coding so I was able to install it without wrecking everything. (There have been versions that didn't have TK in the PPM.)

I'll be uploading the alnum fixes to the SVN shortly. The other error appears to be a regex issue in YaBBC.pm - comment out 'use warnings;' at the top of that file for the short term fix.

5.024 doesn't have the './'deprecated yet as I'm able to run older versions of YaBB that have been fixed to run under 5.022 without any problems.

Edited:
Okay - found the regex causing all the problems. This code is in two places in YaBBC.pm (four places with the added capture checks).
Code
Select All
(?:[\w~.;:,\$\-+!*?\/=&@#%()\[\]\x80-\xFF]{1,}) 


The highlighted section is what's causing the problems but the regex won't properly render urls without it.

I've just uploaded a version of YaBBC.pm to the SVN that has the places this is used put under 'no warnings' so as to not trigger the error. Fixing this regex is beyond me, I'm afraid.  Embarrassed
« Last Edit: Nov 8th, 2018 at 5:12pm 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 XTC
Global Moderator
*****
Offline


YaBB 2.6.0/1/11 Mods

Posts: 174
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Mood: Freaky
Zodiac sign: Aquarius
Re: Error "Assuming NOT a POSIX class"
Reply #17 - Nov 9th, 2018 at 3:59am
Mark & QuoteQuote  
Thx dandello

I check that out tomorrow .... Smiley

lg XTC
  

Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box XTC
Global Moderator
*****
Offline


YaBB 2.6.0/1/11 Mods

Posts: 174
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Mood: Freaky
Zodiac sign: Aquarius
Re: Error "Assuming NOT a POSIX class"
Reply #18 - Nov 11th, 2018 at 8:08am
Mark & QuoteQuote  
Hello

Have upload the actual branches 2038 Sources .....and the Forum runs without error messages.

Only at in the YaBB.pl the "use lib '.'; " line for my webspace perl.

There are many code changes in the YaBBC.pm  Shocked .... you are the best  Smiley Smiley

lg XTC
  

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: Error "Assuming NOT a POSIX class"
Reply #19 - Nov 11th, 2018 at 1:24pm
Mark & QuoteQuote  
I had put off refactoring YaBBC and when I started I realized there was a lot of repeated code that could be refactored. And then there was the issue of warnings picking up things that had never been warned about.

I'll be looking into the '.' issue later this week. (Assuming I can get my test version of YaBB 2.7 to pop up with the related errors.)

  Edited:
Smiley There may still be a minor regex problem in YaBBC.pm.

With any luck I'll have a corrected verison in the SVN tomorrow. I'm also working on the '.' issue and some other security things. ( I was able to find instructions on how to invoke the "disable ./" for 5.024.)
« Last Edit: Nov 13th, 2018 at 2:03am by Dandello »  

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: Error "Assuming NOT a POSIX class"
Reply #20 - Nov 15th, 2018 at 12:22am
Mark & QuoteQuote  
Both the corrected YaBBC AND a version of YaBB 2.7 that doesn't use any './' and so doesn't need the work around. (It uses a safer workaround.) Note the 2.7 will not be able to use './'  in Paths.pm but will need the full directory path instead for those places that used to use the './'.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Error "Assuming NOT a POSIX class"

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