Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

1062 - Duplicate entry , Help Pleaseee


golabi

Recommended Posts

Posted

here is what i got

 

1062 - Duplicate entry '3-1' for key 1

 

insert into products_description (products_name, products_description, products_url, products_id, language_id) values ('شسي', 'as', '', '3', '1')

 

[TEP STOP]

 

Thx

Posted

I didn't have the problem untill I added a new product field in my database. From then on I could modify existing articles, but I got the 1062 error when creating new articles. It dit not calculate the productID and tried to fill in the default value '0'.

 

So I created a new database and new project as I develop locally and guess what: same error, but concerning the description:

 

1062 - Duplicate entry '5-1' for key 1

insert into products_description (products_name, products_description, products_url, products_id, language_id) values ('cab', 'en', '', '5', '1')

 

Going back to categories.php in the admin, an existing product from another category showed up !

 

I'm still trying to find the logic... from other posts I think it might have to do something where sessions are stored (when installing you can chose database or files...).

 

Hopefully someone can do something with this info or has an answer... I'm backing up my projects... ready to start over :(

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...