Derek Bullock New Member Offline I Love YaBB! Posts: 49 Joined: Feb 12th, 2014 Gender: Mood: Frustrated Zodiac sign: Unable To Open Some Posts May 28th, 2018 at 10:47pm Mark & QuoteQuote On some posts I am unable to open them. Getting this message An Error Has Occurred. Use of uninitialized value $value in substitution (s///) at Sources/YaBBC.pm line 381. « Last Edit: May 29th, 2018 at 1:37am by Derek Bullock » IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Unable To Open Some Posts Reply #1 - May 29th, 2018 at 1:56am Mark & QuoteQuote In YaBBC.pm find Code (Perl) $value =~ s/[\x22\x27]//gxsm; add Code (Perl) $value ||= q{}; above it. Note: since I don't have a copy of the original post that's having problems and knowing this section of code deals with setting an alt tag for an image, Isuspect there are img links with bad alt declarations. The above should fix that. (If it does then this fix will go into the SVN.) Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Derek Bullock New Member Offline I Love YaBB! Posts: 49 Joined: Feb 12th, 2014 Gender: Mood: Frustrated Zodiac sign: Re: Unable To Open Some Posts Reply #2 - May 29th, 2018 at 2:17am Mark & QuoteQuote Now getting the following: An Error Has Occurred. Use of uninitialized value $key in hash element at Sources/YaBBC.pm line 383. IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Unable To Open Some Posts Reply #3 - May 29th, 2018 at 3:15am Mark & QuoteQuote Okay in that section replace Code (Perl) $value ||= q{}; $value =~ s/[\x22\x27]//gxsm; $parameter{$key} = $value; with Code (Perl) if ($key) { $value ||= q{}; $value =~ s/[\x22\x27]//gxsm; $parameter{$key} = $value; } Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Derek Bullock New Member Offline I Love YaBB! Posts: 49 Joined: Feb 12th, 2014 Gender: Mood: Frustrated Zodiac sign: Re: Unable To Open Some Posts Reply #4 - May 29th, 2018 at 3:24am Mark & QuoteQuote Now getting this error message and cannot open the forum at all. Attempt to reload Sources/YaBBC.pm aborted. Compilation failed in require at ./Sources/Subs.pm line 3261. IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Unable To Open Some Posts Reply #5 - May 29th, 2018 at 3:31am Mark & QuoteQuote In YaBBC.pm lines 379 to 386 should look like: Code (Perl) foreach ( split /[ ]+/xsm, $attribut ) { my ( $key, $value ) = split /=/xsm; if ($key) { $value ||= q{}; $value =~ s/[\x22\x27]//gxsm; $parameter{$key} = $value; } } Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Derek Bullock New Member Offline I Love YaBB! Posts: 49 Joined: Feb 12th, 2014 Gender: Mood: Frustrated Zodiac sign: Re: Unable To Open Some Posts Reply #6 - May 29th, 2018 at 3:40am Mark & QuoteQuote The second } was missing. Phew. Looks like can see all posts now IP Logged