Gossamer Forum
Quote Reply
Rate It error
I'm receiving the following error when I try to rate a link on my site:

Unable to find link with ID "X".

I cannot figure out what the problem is. If anyone can offer assistance I would appreciate it.

Thanks,

Allyn
http://www.ajedmonds.com
Quote Reply
Re: Rate It error In reply to
Make sure that you have the following link in your link.html if you are using templates:

Code:
<a href="<%db_cgi_url%>/rate.cgi?ID=<%ID%>">Rate It!</a>

And if you are not using templates, use the following codes in the sub site_html_link in the site_html.pl file:

Code:
<a href="$db_cgi_url/rate.cgi?ID=$rec{'ID'}">Rate It!</a>

The X is a placeholder example. You need to use <%ID%> for templates and $rec{'ID'} for non-templates.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Rate It error In reply to
Everything looks good in the link.html, same as the code you supplied me. I'm still receiving the same error.

Allyn
Quote Reply
Re: Rate It error In reply to
Well, the problem could be is that you did not re-build your index after adding or deleting links.

Also, try deleting the following codes from your submit button codes:

Code:
name="submit3"

You do not need to name the submit field in the rate script.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited March 16, 2000).]
Quote Reply
Re: Rate It error In reply to
Now that would make me really stupid! Any other suggestions?

Allyn
Quote Reply
Re: Rate It error In reply to
I just gave you another suggestion....Read my previous edited Reply.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Rate It error In reply to
Nope, no luck. It recognizes the link ID#, but still says that it is unable to find the link with ID (4).

Quote Reply
Re: Rate It error In reply to
a) What changes have you made to the script?
b) How have you configured your $db_key variable? It should be the ID field.
c) What Mods (Modifications) have you added to the scripts?

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Rate It error In reply to
The only thing that I have done was add the Review It modifcation (which isn't working either). I've never done anything to the $db_key variable.

AE
Quote Reply
Re: Rate It error In reply to
Well, then I really don't know the problem you are experiencing....here are some suggestions.

1) Read the lengthy Topic about using both Rate.cgi and Review.cgi in the Modification Forum.

2) Uninstall all the codes you installed for the Review.cgi, or revert back to the set of files before you installed the Review.cgi Mod.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums