Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Error in Rating & in adding a resource

Quote Reply
Error in Rating & in adding a resource
Vhen I try to rate a site I get this "Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request."

When I try to add a resource from the "public page" I get the error for empty fields ( Votes & Rating ) . Shouldn't be a preset to have them filled with 0?
Why rate.cgi fails?
Please help me.
Thank you very much!
Quote Reply
Re: Error in Rating & in adding a resource In reply to
 
Quote:
Vhen I try to rate a site I get this "Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request."

Make sure all the scripts (cgi, pl, pm) were uploaded in ASCII and that the top line of each points to the same path to perl.

Quote:
When I try to add a resource from the "public page" I get the error for empty fields ( Votes & Rating )

Are you using a Links 2.0 beta? If so, get the official release (see the path in the Links Announcements forum) as it is fixed in there.

If you do not want to bother with the official release, then go to links.def and change:

Quote:
%add_system_fields = (
isNew => 'No',
isPopular => 'No',
Hits => 0
);

to read:

Quote:
%add_system_fields = (
isNew => 'No',
isPopular => 'No',
Hits => 0,
Votes => 0,
Rating => 0
);

Then, go to add.cgi and delete:

Quote:
# Force some fields.
my %add_system_fields = (
isNew => 'No',
isPopular => 'No',
Hits => '0'
);

I hope this helps.

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/


Quote Reply
Re: Error in Rating & in adding a resource In reply to
Thanks Bob Smile
Everything works now ! Smile Smile Smile
About the voting problem ...it was a weird "#!/usr/local/bin/perl -w" in rate.cgi
When I deleted the -w it was ok

About the second problem (add.cgi) you were right! Thank you very much one more time Smile

[This message has been edited by Mark444 (edited February 13, 1999).]