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

"Can't find link ID" error message

Quote Reply
"Can't find link ID" error message
I thought I had installed everything OK but when I click on a link I get the following error ---

Error: Can't find link id: (number of link)

Before someone tells me that I should check before posting -I have searched the foums and the only thing I found was a thread that suggested checking the paths in links.cfg but my paths there are correct.

(ALSO: I would like to suggest that some one gets it together to provide a comprehensive and simple to use FAQ section so that people do not have to seach loads of posts hoping to get something relevant. Is this a good idea or is a there a reason no one has done this?)


Quote Reply
Re: Can't find link id error In reply to
Stu posted a question about this in the Discussion forum a few hours ago - I am in the process of setting one up at....

www.perlmad.com

Should be ready tonight or tommorrow.

Installations:http://wiredon.net/gt
MODS:http://wiredon.net/gt/download.shtml

Quote Reply
Re: Can't find link id error In reply to
Good news. I have already bookmarked your site. BUT going back to my question:

Can someone please shed some light on my links ID error? Please!!

Thanks

Quote Reply
Re: Can't find link id error In reply to
Does a link with that ID exist in the database?

Installations:http://wiredon.net/gt
MODS:http://wiredon.net/gt/download.shtml

Quote Reply
Re: Can't find link id error In reply to
Paul,
In answer to your question All the links are in links.db but there is only one number on the whole page at linksid.txt
Alan


Quote Reply
Re: Can't find link id error In reply to
linksid.txt should have a number in it relating to the number of links in your database.

So if you have 10 links, linksid.txt should have 10 in it.

Make sure in link.html you have

<a href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>

Installations:http://wiredon.net/gt
MODS:http://wiredon.net/gt/download.shtml

Quote Reply
Re: Can't find link id error In reply to
Hi,

I have three links and eight categories. The number in linksid.txt is 11 so I guess "total links" includes categories.

Link.html is still as originally supplied - as follows:

<ul><li><a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>

<%if Description%>
<span class="descript">- <%Description%></span>
<%endif%>

<%if isNew%>
<small><sup class="new">new</sup></small>
<%endif%>

<%if isPopular%>
<small><sup class="pop">pop</sup></small>
<%endif%>

<small class="date">(Added: <%Date%> Hits: <%Hits%> Rating: <%Rating%> Votes: <%Votes%>) <a href="<%db_cgi_url%>/rate.cgi?ID=<%ID%>">Rate It</a></small>

</ul>

Alan

Quote Reply
Re: Can't find link id error In reply to
no LINKSid.txt should have 3 in it not 11

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Can't find link id error In reply to
Paul,

I added another link (making a total of four) and now linksid.txt says 12 which still ties in with the 8 categories. I don't know what the extra eight refers to if not the categories. I am getting pretty confused here. Also the links work from the Rate It page site link but not from the search results.

Quote Reply
Re: Can't find link id error In reply to
As I said, it should say 4 in it now. Edit the file.

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Can't find link id error In reply to
OK. Done that - it now says 4 but it makes no difference, I still get the same error. I have just found some old posts that seem to say that this could be caused by not having a links.db.bak file. Is this right?? If this is essential 1) why wasn't this in the download and 2) how do I create a blank file like this. I know how to create html, cgi and txt files to upload but not this .db.bak file - and cuteftp only allows me to create new folders not files. Sorry I am so new to all this - I appreciate your help.

Quote Reply
Re: Can't find link id error In reply to
Open links.db and choose a link ID that you know exists and then in your browser go to www.yourdomain.com/cgi-bin/jump.cgi?ID=ID_NUMBER_THAT_EXISTS

Do you still get the error?

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Can't find link id error In reply to
If I go to http://www.mydomain/cgibin/links/jump.cgi?ID=10 I get the same error message as before: "Error: Can't find link id: 10"




Quote Reply
Re: Can't find link id error In reply to
Um but I thought you said you only had 4 links in your database so why are you using ID=10

You should be using ID=1 ID=2 ID=3 ID=4

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Can't find link id error In reply to
Its comlicated - I had already deleted a number of test links and the link ids were all over the place - not in order. They are all definitely gone now. I have also deleted every link and started again and I now have ID=1 ID=2 ID=3 ID=4 etc and I have updated built pages with these links included BUT I still get the same error when linking from built pages or from search results. Linking from the Rate a Resource page link is OK. When I update pages I get a cgi error message about backup in the admin update page but the built pages update OK.

Why is it that the site links on the Rate a Resource page work OK (i mean the one when you get when you click on rate it) but the same links on the search results pages give an error?