Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Bad link mod problem

Quote Reply
Bad link mod problem
I installed the Bad Link mod but when I click on the "Report a Bad Link" I get a blank screen instead of badlink.html. I thought I set the permission properly.
My site is www.ohiobiz.com.

Thanks in advance.

Mark G.

Quote Reply
Re: Bad link mod problem In reply to
* Make sure that you have added ALL the appropriate SUBROUTINES in the HTML_Templates.pm module.

* Also, check your HTML codes and TAGS in the badlink.html template file.

* Make sure that the BAD LINK template files are set to 666 (rw-rw-rw-).

Regards,

Eliot Lee
Quote Reply
Re: Bad link mod problem In reply to
Eliot,

This is what I'm getting now:

Software error:
[Fri Dec 1 23:00:33 2000] HTML_Templates.pm: Compilation failed in require at nph-build.cgi line 34. BEGIN failed--compilation aborted at nph-build.cgi line 34.
For help, please send mail to the webmaster (webmaster@ohiobiz.com), giving this error message and the time and date of the error.


Here's the code from HTML_Templates.pm
sub site_html_badlink_form {
# --------------------------------------------------------
# This routine determines how the dead/bad link form page will look like.
# my ($tags, $dynamic) = @_;
my $template = defined $dynamic ? $dynamic->param('t') : undef;
(ref $tags eq 'HASH') or croak "HTML_TEMPLATES: Argument '$tags' must be hash reference";
defined $dynamic and &load_user ($dynamic, $tags);
my $output = &load_template ('badlink.html', {
%$tags,
%GLOBALS
}, undef, $template);
defined $dynamic and &clean_output($dynamic, \$output);
print $output;
}

sub site_html_badlink_success {
# --------------------------------------------------------
# This routine determines how the dead/bad link success page will look like.
# my ($tags, $dynamic) = @_;
my $template = defined $dynamic ? $dynamic->param('t') : undef;
(ref $tags eq 'HASH') or croak "HTML_TEMPLATES: Argument '$tags' must be hash reference";
defined $dynamic and &load_user ($dynamic, $tags);
my $output = &load_template ('badlink_success.html', {
%$tags,
%GLOBALS
}, undef, $template);
defined $dynamic and &clean_output($dynamic, \$output);
print $output;
}

sub site_html_badlink_failure {
# --------------------------------------------------------
# This routine determines how thedead/bad link error page will look like.
# my ($tags, $dynamic) = @_;
my $template = defined $dynamic ? $dynamic->param('t') : undef;
(ref $tags eq 'HASH') or croak "HTML_TEMPLATES: Argument '$tags' must be hash reference";
defined $dynamic and &load_user ($dynamic, $tags);
my $output = &load_template ('badlink_error.html', {
%$tags,
%GLOBALS
}, undef, $template);
defined $dynamic and &clean_output($dynamic, \$output);
print $output;
}


Thanks.

Mark G.


Quote Reply
Re: Bad link mod problem In reply to
Figured it out.

the # in front of the "my" was causing the problem.