Page Index Toggle Pages: 1 [2]  ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) Error "Assuming NOT a POSIX class" (Read 10827 times)
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2266
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Error "Assuming NOT a POSIX class"
Reply #5 - Nov 3rd, 2018 at 8:34pm
Mark & QuoteQuote  
The 2.6.1 version of that section is :
Code (Perl)
Select All
        $message =~
 s/([^\w\"\=\[\]]|[\n\b]|\&quot\;|\[quote.*?\]|\[edit\]|\[highlight\]|\[\*\]|\[td\]|\A)\\*(\w+?\:\/\/(?:[\w\~\;\:\,\$\-\+\!\*\?\/\=\&\@\#\%\(\)\[\](?:\<\S+?\>\S+?\<\/\S+?\>)]+?)\.(?:[\w\~\.\;\:\,\$\-\+\!\*\?\/\=\&\@\#\%\(\)\[\]\x80-\xFF]{1,})+?)/format_url($1,$2)/eisgm;
         $message =~
 s/([^\"\=\[\]\/\:\.\-(\:\/\/\w+)]|[\n\b]|\&quot\;|\[quote.*?\]|\[edit\]|\[highlight\]|\[\*\]|\[td\]|\A|\()\\*(www\.[^\.](?:[\w\~\;\:\,\$\-\+\!\*\?\/\=\&\@\#\%\(\)\[\](?:\<\S+?\>\S+?\<\/\S+?\>)]+?)\.(?:[\w\~\.\;\:\,\$\-\+\!\*\?\/\=\&\@\#\%\(\)\[\]\x80-\xFF]{1,})+?)/format_url($1,$2)/eisgm; 



Without the 'my $reg1', 'my $reg2', 'my $reg3', and 'my $reg4' lines.
  

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 #4 - Nov 3rd, 2018 at 3:30pm
Mark & QuoteQuote  
Hi

The problem must be in the YaBBC.pm .....in this lines!

Code (Perl)
Select All
        my $reg4 =
 qr{[^"=\[\]\/:.\-(:\/\/\w+)]|[\n\b]|\&quot;|\[quote.*?\]|\[edit\]|\[highlight\]}xsm;

         $message =~
 s/([^\w"=\[\]]|[\n\b]|\&quot;|\[quote.*?\]|\[edit\]|\[highlight\]|\[
  • ]|\[td\]|\A)\\*(\w+?:\/\/(?:[\w~;:,\$\-+!*?\/=&@#%()\[\](?:<\S+?>\S+?<\/\S+?>)]+?)[.](?:[\w~.;:,\$\-+!*?\/=&@#%()\[\]\x80-\xFF]{1,})+?)/format_url($1,$2)/eigxsm; $message =~ s/($reg4|\[
  • ]|\[td\]|\A|[(])\\*(www[.][^.](?:$reg2+?)[.]$reg3+?)/format_url($1,$2)/eigxsm;


  • When i del this lines i becomes no error.

    Sorry regex is not best friend  Grin

    lg XTC
      

    Back to top
     
    IP Logged
     
    Paste Member Name in Quick Reply Box Dandello
    Forum Administrator
    *****
    Offline


    I love YaBB 2.7!

    Posts: 2266
    Location: The Land of YaBB
    Joined: Feb 12th, 2014
    Gender: Female
    Mood: Annoyed
    Zodiac sign: Virgo
    Re: Error "Assuming NOT a POSIX class"
    Reply #3 - Nov 3rd, 2018 at 1:32pm
    Mark & QuoteQuote  
    There are 5 files using the alnum posix:
    Decoder, Display, Load, LogInOut, and YaBBC

    In Display, Load, and LogInOut the posix has the last colon missing.

    In Display the line containing the posix should be
    Code
    Select All
    $urlname =~ s/([^[:alnum:]])/sprintf('%%%02X', ord($1))/egxsm; 
    
    


    In Load it should be
    Code
    Select All
                s/%([[:alnum:]][[:alnum:]])/pack('C', hex($1))/egxsm; 
    
    


    and in LogInOut it should be
    Code
    Select All
        if ( $id =~ /[^[:alnum:]]/xsm ) { 
    
    


    YaBBC and Decoder has the correct posix already. (Did you just use a global find and replace?  Huh If so, you may have inadvertently broken YaBBC. )

    I'm in the middle of a major database reconfiguration so I don't dare upgrade Perl to the newest version until that's done. (And it may be a while - 4000+ rows to be hand-edited.)
      

    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 #2 - Nov 3rd, 2018 at 11:34am
    Mark & QuoteQuote  
    Hello

    Hmmm ....next problem.

    When i fix your fix  Cheesy i become a software error!

    Quote:
    Software error:

    Attempt to reload Sources/YaBBC.pm aborted.
    Compilation failed in require at ./Sources/Subs.pm line 3261.


    Subs.pm (line 3261)

    Code (Perl)
    Select All
            require Sources::YaBBC; 
    
    


      Sad

    lg XTC
      

    Back to top
     
    IP Logged
     
    Paste Member Name in Quick Reply Box Dandello
    Forum Administrator
    *****
    Offline


    I love YaBB 2.7!

    Posts: 2266
    Location: The Land of YaBB
    Joined: Feb 12th, 2014
    Gender: Female
    Mood: Annoyed
    Zodiac sign: Virgo
    Re: Error "Assuming NOT a POSIX class"
    Reply #1 - Nov 2nd, 2018 at 8:34pm
    Mark & QuoteQuote  
    Smiley  It should be
    Code
    Select All
    [^[:alnum:]] 
    
    


    The right colon is also missing in the
    Code
    Select All
    [:alnum 
    
    
    in Load.pm and Display.pm

    Since the problem doesn't throw an error here, I'm guessing that newer versions of Perl don't like it when the second colon is missing from the posix class while older versions son't care.
      

    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
    Error "Assuming NOT a POSIX class"
    Nov 2nd, 2018 at 6:03pm
    Mark & QuoteQuote  
    Hello

    For testing i have install a clear yabb-svn-r2032-branches-2.7 ..... but when i open the Forum after installation it give me  this sytem information error message

    Quote:
    An  Error Has Occurred. Assuming NOT a POSIX class since there is no terminating ':' in regex; marked by <-- HERE in m/[^[:alnum <-- HERE ]]/ at Sources/LogInOut.pm line 439.


    Perl-version 5.024001

    lg XTC
      

    Back to top
     
    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