Uploading to a new host with the minimum of editing to links.cfg only and I suddenly get this error
Error including libraries: syntax error at /host/www.salespotter.info/cgi-bin/links/admin/site_html_templates.pl line 407, near "$output .= qq|</dl"
Compilation failed in require at /host/www.salespotter.info/cgi-bin/links/admin/nph-build.cgi line 33.
Make sure they exist, permissions are set properly, and paths are set correctly.
The rough area of the file in question:
sub site_html_print_cat {
# --------------------------------------------------------
# This routine determines how the list of categories will look.
# We now use a table to split the category name up into two columns.
# For each category you can use the following variables:
#
# $url : The URL to go to that category
# $category_name : The category name with _ and / removed.
# $category_descriptions{$subcat}: The category description (if any).
# $numlinks : The number of links inside that category (and subcategories).
# $mod : The newest link inside of that category.
#
my (@subcat) = @_;
my ($url, $numlinks, $mod, $subcat, $category_name, $description, $output, $i);
my ($half) = int (($#subcat+2) / 2);
# Print Header.
$output = qq|<table width="80%" border="0" cellspacing="0" cellpadding="0" align=center><tr><td valign="top">\n|;
foreach $subcat (sort @subcat) {
($description) = @{$category{$subcat}}[2];
# First let's get the name, number of links, and last modified date...
$url = "$build_root_url/" . &urlencode($subcat) . "/";
if ($subcat =~ m,.*/([^/]+)$,) { $category_name = &build_clean($1); } else { $category_name = &build_clean($subcat); }
$numlinks = $stats{"$subcat"}[0];
$mod = $stats{"$subcat"}[1];
# We check to see if we are half way through, if so we stop this table cell
# and begin a new one (this lets us have category names in two columns).
if ($i == $half) {
[407] $output .= qq|</td><td valign="top">\n|;
}
$i++;
# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<dl><dt><strong><a href="$url">$category_name</a></strong> <font size=2>($numlinks)</font> |;
$output .= qq|;
$output .= qq|</dt>|;
$output .= qq|;
$output .= qq|</dl>|;
}
# Don't forget to end the unordered list..
$output .= "</td></tr></table>\n";
return $output;
}
If anyone can point out the error I'd be much obliged ...
Thanks
Anna
Error including libraries: syntax error at /host/www.salespotter.info/cgi-bin/links/admin/site_html_templates.pl line 407, near "$output .= qq|</dl"
Compilation failed in require at /host/www.salespotter.info/cgi-bin/links/admin/nph-build.cgi line 33.
Make sure they exist, permissions are set properly, and paths are set correctly.
The rough area of the file in question:
sub site_html_print_cat {
# --------------------------------------------------------
# This routine determines how the list of categories will look.
# We now use a table to split the category name up into two columns.
# For each category you can use the following variables:
#
# $url : The URL to go to that category
# $category_name : The category name with _ and / removed.
# $category_descriptions{$subcat}: The category description (if any).
# $numlinks : The number of links inside that category (and subcategories).
# $mod : The newest link inside of that category.
#
my (@subcat) = @_;
my ($url, $numlinks, $mod, $subcat, $category_name, $description, $output, $i);
my ($half) = int (($#subcat+2) / 2);
# Print Header.
$output = qq|<table width="80%" border="0" cellspacing="0" cellpadding="0" align=center><tr><td valign="top">\n|;
foreach $subcat (sort @subcat) {
($description) = @{$category{$subcat}}[2];
# First let's get the name, number of links, and last modified date...
$url = "$build_root_url/" . &urlencode($subcat) . "/";
if ($subcat =~ m,.*/([^/]+)$,) { $category_name = &build_clean($1); } else { $category_name = &build_clean($subcat); }
$numlinks = $stats{"$subcat"}[0];
$mod = $stats{"$subcat"}[1];
# We check to see if we are half way through, if so we stop this table cell
# and begin a new one (this lets us have category names in two columns).
if ($i == $half) {
[407] $output .= qq|</td><td valign="top">\n|;
}
$i++;
# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<dl><dt><strong><a href="$url">$category_name</a></strong> <font size=2>($numlinks)</font> |;
$output .= qq|;
$output .= qq|</dt>|;
$output .= qq|;
$output .= qq|</dl>|;
}
# Don't forget to end the unordered list..
$output .= "</td></tr></table>\n";
return $output;
}
If anyone can point out the error I'd be much obliged ...
Thanks
Anna