Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Nov 2010
    Posts
    18
    Plugin Contributions
    0

    Default ERROR message help 1062 Duplicate entry '1-1' for key 1

    I am getting the following error message when i try to add a option values.

    msg:

    1062 Duplicate entry '1-1' for key 1
    in:
    [insert into zen_products_options_values (products_options_values_id, language_id, products_options_values_name, products_options_values_sort_order) values ('1', '1', '$25', '0')]
    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 am using zen cart v. 1.3.9h - I just upgraded from 1.3.9g a few days ago.

    I looked through the forum for answers and didn't find anything.

    Thank you so much for anyone who can direct me in this problem :)

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: ERROR message help 1062 Duplicate entry '1-1' for key 1

    That means you're trying to enter a record in the database, but that record already exists.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Nov 2010
    Posts
    18
    Plugin Contributions
    0

    Default Re: ERROR message help 1062 Duplicate entry '1-1' for key 1

    Thank you for your quick response!

    I don't have any attributes at all. Do you know what file i need to delete it from?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: ERROR message help 1062 Duplicate entry '1-1' for key 1

    What option names do you have set up?
    What other option values are showing? Either in the Option Values Manager or the Option Values Sorter.

    Have there ever been any attributes in this store?

    What addons are installed?

    What 3rd-party tools have you used to load/edit/manage product and/or attribute details in your store?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Nov 2010
    Posts
    18
    Plugin Contributions
    0

    Default Re: ERROR message help 1062 Duplicate entry '1-1' for key 1

    What option names do you have set up? just 'price'

    What other option values are showing? Either in the Option Values Manager or the Option Values Sorter. There are no other options showing up

    Have there ever been any attributes in this store? Yes - I had an upload one but then deleted all of them to start over and see if that worked... but it didn't

    What addons are installed? none

    What 3rd-party tools have you used to load/edit/manage product and/or attribute details in your store? none

  6. #6
    Join Date
    Nov 2010
    Posts
    18
    Plugin Contributions
    0

    Default Re: ERROR message help 1062 Duplicate entry '1-1' for key 1

    here is what the screen looks like prior to the error message

    wow... you can't really see it.

    let me try again
    Attached Images Attached Images  

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: ERROR message help 1062 Duplicate entry '1-1' for key 1

    Very unusual.

    Try running the following statement using Admin->Tools->Install SQL Patch:
    Code:
    delete from products_options_values where products_options_values_id > 0;
    And then try adding your Option Value again ... this time please list all the steps you take to do it, including the names of menu items selected, etc.

    Does it make a difference if you leave out the $ you'd used in the value description?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Nov 2010
    Posts
    18
    Plugin Contributions
    0

    Default Re: ERROR message help 1062 Duplicate entry '1-1' for key 1

    I don't know what I would do without this forum!!!!!!!!!!!!! Thank you so very much!

    That worked!!!!!!!!

  9. #9

    Default Re: ERROR message help 1062 Duplicate entry '1-1' for key 1

    Hi,

    I'm working on a site for a client and I've had the exact same error message when trying to set up Option Values. I can set up Option Names no problem but as soon as I try to set up options I get this message: 1062 Duplicate entry '1-1' for key 1

    I've tried the SQL patch above but I get:

    Not Acceptable

    An appropriate representation of the requested resource /zc_admin/sqlpatch.php could not be found on this server.


    Anybody any ideas? Thanks.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: ERROR message help 1062 Duplicate entry '1-1' for key 1

    Quote Originally Posted by cyberfrog View Post
    I've tried the SQL patch above but I get:

    Not Acceptable

    An appropriate representation of the requested resource /zc_admin/sqlpatch.php could not be found on this server.
    That's because your hosting company's mod_security rules are being triggered by words in that SQL statement that it thinks are normally used by hackers.
    Use phpMyAdmin instead of the SQL Patch method.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. ERROR message help 1062 Duplicate entry for key 1 in db_cache
    By shartlesville in forum General Questions
    Replies: 4
    Last Post: 30 Aug 2012, 03:21 AM
  2. DB Import Error #1062 - Duplicate entry '1' for key 1
    By aushy in forum Installing on a Windows Server
    Replies: 6
    Last Post: 19 Oct 2011, 11:38 AM
  3. 1062 Duplicate entry '0' for key 1 Error - 1.3.6-->1.3.8a
    By Ellume in forum Upgrading from 1.3.x to 1.3.9
    Replies: 24
    Last Post: 10 Jun 2008, 07:34 AM
  4. Error: 1062 Duplicate entry '0-78' for key 1
    By G33K-Chik in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 15 Apr 2008, 08:47 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