Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Can not add links to database!!!

Quote Reply
Can not add links to database!!!
Hello,

I am getting the following error whenever a user try to add a new link into my database:


Failed to execute query: 'INSERT INTO lsql_CatLinks (LinkID,CategoryID) VALUES (?,?)' Reason: Duplicate entry '1' for key 1


Somehow, I have corrupted the lsql_CatLinks database by clicking on Primary/Index/Unique...etc. So, I am unable to add records to my database anymore...



This is what I am getting when I build:

Building Detailed pages ...

A fatal error has occured:
GT::SQL::Table (25683): Wrong argument passed to this subroutine. Usage: Must pass category id to template_set at (eval 39) line 7.


Please enable debugging in setup for more details.
Can you help please or show me what would the default DB has:


thank you in advance

Mark

This is what I have in the MySqlMan:

Code:


MySQL message:
Column LinkID set as index.




Field Type Null Key Default Extra ACTION
LinkID int(10) unsigned MUL 0 Change Drop Primary Index Unique
CategoryID int(10) unsigned PRI 0 Change Drop Primary Index Unique



Keys:

Key name Unique Field Action
PRIMARY YES CategoryID Drop
CategoryID YES CategoryID Drop
catlnndx YES CategoryID Drop
lndx No LinkID Drop
LinkID No LinkID Drop
LinkID_2 No LinkID Drop

Last edited by:

Mark2: Sep 21, 2002, 6:46 PM
Subject Author Views Date
Thread Can not add links to database!!! Mark2 2233 Sep 21, 2002, 6:21 PM
Thread Re: [Mark2] Can not add links to database!!!
Paul 2021 Sep 22, 2002, 2:47 AM
Thread Re: [Paul] Can not add links to database!!!
Mark2 2013 Sep 22, 2002, 9:23 AM
Thread Re: [Mark2] Can not add links to database!!!
Paul 2006 Sep 22, 2002, 10:02 AM
Post Re: [Paul] Can not add links to database!!!
Mark2 2001 Sep 22, 2002, 11:35 AM