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

review.cgi from Widgets bugs

 
review.cgi from Widgets bugs
Im install a revew.cgi 2.0,
and rtyeing to run it(http://localhost/cgi-bin/links-sql/review.cgi?ID=1)
but it said:Content-type: text/html
Software error:
Can't use an undefined value as a HASH reference at e:/cgi-bin/links-sql/review.cgi line 146.
For help, please send mail to the webmaster (you@your.address), giving this error message and the time and date of the error.

what I need to do for fix it?


 
Re: review.cgi from Widgets bugs In reply to
There are a few bugs in the script...Copy lines 140 - 150 in the codes you are using and may be we can help you de-bug the problem.

Regards,

Eliot Lee

 
Re: review.cgi from Widgets bugs In reply to
Ok,it`s a 140-150 lines from review.cgi:
if (defined $USER) {
my $sth = $DB->prepare ("SELECT * FROM Reviews WHERE LinkID = $id AND Username = '${$USER}{USER_Username}'");
$sth->execute();
($sth->rows) and $USER->{USER_Reviewed} = 1;
}

print &site_html_review_page ({ %$rec, %$USER, %OUT } , $dynamic);
}

sub do_review {
# --------------------------------------------------------

 
Re: review.cgi from Widgets bugs In reply to
Okay...well...I am using the following codes:

Code:

&site_html_review_page ({%$rec, %OUT}, $in, $dynamic);


It seems that the problem is with the %$USER hash, which is not defined.

Regards,

Eliot Lee

 
Re: review.cgi from Widgets bugs In reply to
Ok,thanks for help,its work fine now.
BUT! next bug:(
Im enter "Login to post a review!"(http://localhost/cgi-bin/links-sql/review.cgi?ID=1 page) its redirect me to "User Login",when im login(account have a "EDITOR" access)its redirect me to: "You have been successfully logged into the system."page.
thats all.
but how to REVIEW?

Help please




 
Re: review.cgi from Widgets bugs In reply to
You need to update your user.cgi with the codes provided in the modify.cgi Thread in this forum.

Regards,

Eliot Lee

 
Re: review.cgi from Widgets bugs In reply to
modifications modify.cgi for review 2.0?

Enybody have URL a topic for it?

 
Re: review.cgi from Widgets bugs In reply to
Im sorry,but I cant find eny topic for my subject.
can you show me? please

 
Post deleted by Alex In reply to
 
Post deleted by Alex In reply to
 
Post deleted by Alex In reply to
 
Post deleted by Alex In reply to
 
Re: review.cgi from Widgets bugs In reply to
Hi,

Try a search for modify.cgi in the forum. I've deleted the rest of the posts as it just turned into a personal attack.

Cheers,

Alex

--
Gossamer Threads Inc.