9Volt+ Posting Error (Perl)

  • /dev/null
  • Newbie
  • Newbie
  • User avatar
  • Posts: 8
  • Loc: Beleriand

Post 3+ Months Ago

I've just installed the 9Volt+ Forum.
When I try to post a thread, I get the following error:

Code: [ Select ]
syntax error at /home/apache/crazy-bucket/cgi-bin/theCollective/bbs-post.cgi line 580, near "/<title><!--Title will be here --></title"
Can't find string terminator ' " ' anywhere before EOF at /home/apache/crazy-bucket/cgi-bin/theCollective/bbs-post.cgi line 583.
  1. syntax error at /home/apache/crazy-bucket/cgi-bin/theCollective/bbs-post.cgi line 580, near "/<title><!--Title will be here --></title"
  2. Can't find string terminator ' " ' anywhere before EOF at /home/apache/crazy-bucket/cgi-bin/theCollective/bbs-post.cgi line 583.


Here's the snippet from bbs-post.cgi:

Code: [ Select ]
sub headerFooterThreads {
# ------------------------------------------------
open (FILE, "$bbsArray[3]/thread.cgi") || &fatalError("Unable to open the Thread Template file for reading.",2);
@BBSThreads = <FILE>;
close(FILE);

for ($bbsThreadz = 0; $bbsThreadz < @BBSThreads; $bbsThreadz++) {
    if ($BBSThreads[$bbsThreadz] =~ /<title><!--Title will be here --></title>/) { $BBSThreads[$bbsThreadz] = "<title>$siteTitle &raquo; $bbsArray[1] &raquo; $_[0]</title>"; }
    if ($BBSThreads[$bbsThreadz] =~ /<!-- Message will be here -->/) { $foundIt = 1; last; }
}
unless ($foundIt) { die "HTML comments not found in the Thread Template."; }

for ($threadLoop = 0; $threadLoop < $bbsThreadz; $threadLoop++) { push(@headerThreads, $BBSThreads[$threadLoop]); }
for ($threadLoop = $bbsThreadz; $threadLoop < @BBSThreads; $threadLoop++) { push(@footerThreads, $BBSThreads[$threadLoop]); }
}
  1. sub headerFooterThreads {
  2. # ------------------------------------------------
  3. open (FILE, "$bbsArray[3]/thread.cgi") || &fatalError("Unable to open the Thread Template file for reading.",2);
  4. @BBSThreads = <FILE>;
  5. close(FILE);
  6. for ($bbsThreadz = 0; $bbsThreadz < @BBSThreads; $bbsThreadz++) {
  7.     if ($BBSThreads[$bbsThreadz] =~ /<title><!--Title will be here --></title>/) { $BBSThreads[$bbsThreadz] = "<title>$siteTitle &raquo; $bbsArray[1] &raquo; $_[0]</title>"; }
  8.     if ($BBSThreads[$bbsThreadz] =~ /<!-- Message will be here -->/) { $foundIt = 1; last; }
  9. }
  10. unless ($foundIt) { die "HTML comments not found in the Thread Template."; }
  11. for ($threadLoop = 0; $threadLoop < $bbsThreadz; $threadLoop++) { push(@headerThreads, $BBSThreads[$threadLoop]); }
  12. for ($threadLoop = $bbsThreadz; $threadLoop < @BBSThreads; $threadLoop++) { push(@footerThreads, $BBSThreads[$threadLoop]); }
  13. }


Line 581 contains the "<!--Title will be here -->" marker.
I don't know anything about Perl, so I can't figure out where the missing string terminator is. O____o
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

I'm not a Perl guru either, and although I've seen and suggested the 9volt+ board elsewhere here, I haven't had the need to download or install it personnaly.

However, by the looks of it, Line 582 is what actually places the title on the pages of the forum:

Code: [ Select ]
[$bbsThreadz] = "<title>$siteTitle &raquo; $bbsArray[1] &raquo; $_[0]</title>"; }


So I'm guessing there is probably a setup or admin area where you inputed what you wanted for a title for the site/page/forum. Double check to make sure you don't have any unclosed quotation marks in the Title. You might even try completely removing any quotation marks or apostraphes that may be in the title (if any). Usually with Perl any string needs to be terminated with the quotation marks. If you inadvertantly have an unclosed quotation mark in your title it may be what's causing that.

Like I said, I'm not an expert with Perl...I've modified several scripts, but that would be my best guess.

I do know that they (poetic pollution) are pretty responsive, so if you haven't already done so, you might want to post your question on their support forum as well.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 87 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.