Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default SQL Duplicate Entry Adding New Products and Categories

    I have had my store for about two years and all of the sudden im getting the following errors.

    Creating a new product:

    1062 Duplicate entry '0-147' for key 1
    in:
    [insert into products_to_categories (products_id, categories_id) values ('0', '147')]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

    Also a similar error when creating a new product.

    Everything was working fine yesterday afternoon.

    Any assistance would be great

  2. #2
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: SQL Duplicate Entry Adding New Products and Categories

    I just had a quick look at my database and it seems every time i add a new product in product_to_categories its assigns it as product_id 0, And doesnt appear anywhere.

    Same thing happens to categories:

    1062 Duplicate entry '0-1' for key 1
    in:
    [insert into categories_description (categories_name, categories_description, categories_id, language_id) values ('Test', '
    Test

    ', '0', '1')]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

    I check in myphpadmin and its created a new category with id 0 and it doesnt show up anywhere.
    Last edited by gee38l; 21 Sep 2010 at 05:03 AM. Reason: Added

  3. #3
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: SQL Duplicate Entry Adding New Products and Categories

    Anyone?

  4. #4
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: SQL Duplicate Entry Adding New Products and Categories

    Bump anyone?

  5. #5
    Join Date
    Jul 2004
    Posts
    167
    Plugin Contributions
    0

    Default Re: SQL Duplicate Entry Adding New Products and Categories

    Did you every get a resolution? I've got the same twating problem cropped up out of the blue!

 

 

Similar Threads

  1. v150 Duplicate Categories and products
    By paulio in forum General Questions
    Replies: 2
    Last Post: 16 Mar 2012, 05:48 PM
  2. SQL Errors when importing to new database - #1062 - Duplicate entry '3' for key 1
    By countingsheep in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 17 Sep 2009, 09:43 PM
  3. Replies: 8
    Last Post: 1 Apr 2009, 05:26 PM
  4. Adding data entry fields and creating a new page
    By ericny in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 23 May 2007, 08:35 PM
  5. SQL Error : 1062 Duplicate entry '0' for key 1
    By Wazoo in forum General Questions
    Replies: 3
    Last Post: 3 May 2007, 02:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR