I have tried to get the rate.cgi to work and I keep getting the following error message:
Can't call method "param" on unblessed reference at ../Links/HTML_Templates.pm line 1323.
Line 1323 in the HTML_Templates.pm is as follows:
my $template = defined $dynamic ? $dynamic->param('t') : undef;
in the sub site_html_rate_form routine.
When I test the script via telnet, I get the following error message:
[Sun Jul 23 16:47:16 2000] rate.cgi: Use of uninitialized value at rate.cgi line
51.
Line 51 in the rate.cgi is as follows:
elsif ($in->param('ID') =~ /^\d+$/) {
I have made no changes to the script. I tested the External Rate Mod and the Ratings were added to the Rate_Track and Build_Update tables, HOWEVER, I got the same param error above and the success screen never showed.
I am linking the rate.cgi as follows in my link.html template file:
<a href="<%build_rate_url%>?ID=<%ID%>">
Keep in mind that I have defined <%build_rate_url%> in the Links.pm as follows:
$LINKS{build_rate_url} = $LINKS{db_cgi_url} . "/rate.cgi";
And then in the HTML_Templates.pm, I have added this as a global variable.
However, this is not causing the problems. The problem seems to be with the rate.cgi script.
Any thoughts about how to fix these errors?
I did search the forum and I saw unblessed reference errors associated with the search.cgi script, but not the rate.cgi script.
TIA.
Regards,
Eliot Lee
Code:
Can't call method "param" on unblessed reference at ../Links/HTML_Templates.pm line 1323.
Line 1323 in the HTML_Templates.pm is as follows:
Code:
my $template = defined $dynamic ? $dynamic->param('t') : undef;
in the sub site_html_rate_form routine.
When I test the script via telnet, I get the following error message:
Code:
[Sun Jul 23 16:47:16 2000] rate.cgi: Use of uninitialized value at rate.cgi line
51.
Line 51 in the rate.cgi is as follows:
Code:
elsif ($in->param('ID') =~ /^\d+$/) {
I have made no changes to the script. I tested the External Rate Mod and the Ratings were added to the Rate_Track and Build_Update tables, HOWEVER, I got the same param error above and the success screen never showed.
I am linking the rate.cgi as follows in my link.html template file:
Code:
<a href="<%build_rate_url%>?ID=<%ID%>">
Keep in mind that I have defined <%build_rate_url%> in the Links.pm as follows:
Code:
$LINKS{build_rate_url} = $LINKS{db_cgi_url} . "/rate.cgi";
And then in the HTML_Templates.pm, I have added this as a global variable.
However, this is not causing the problems. The problem seems to be with the rate.cgi script.
Any thoughts about how to fix these errors?
I did search the forum and I saw unblessed reference errors associated with the search.cgi script, but not the rate.cgi script.
TIA.
Regards,
Eliot Lee