Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2006
    Posts
    107
    Plugin Contributions
    0

    Default Error updating database

    Hi, I'm attempting to upgrade my database from 1.3.6 to 1.3.7 but whenever I hit the 'update database now' button it gives me the following error..

    1062 Duplicate entry '0' for key 1
    in:
    [INSERT INTO zen_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Credit Card Enable Status - SOLO', 'CC_ENABLED_SOLO', '0', 'Accept SOLO Card 0= off 1= on', '17', '8', 'zen_cfg_select_option(array(\'0\', \'1\'), ', now());]


    Can anyone suggest what I am doing wrong?

    Cheers,
    Dave

  2. #2
    Join Date
    Dec 2006
    Posts
    107
    Plugin Contributions
    0

    Default Re: Error updating database

    So I spent 3 hours trying to fix this, then posted the question here, then thought to use the search button...

    The answer is here if anyone needs it

    http://www.zen-cart.com/forum/showth...t=35770&page=2

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Error updating database

    Actually, the CORRECT answer is to follow the documented upgrade instructions in the /docs folder (or in the SQL file itself) .... which instructs you to run the zc_install/index.php program via your browser in order to do the database upgrade.

    The upgrader in the zc_install program will handle those exceptions automatically for you.
    .

    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.

  4. #4
    Join Date
    Dec 2006
    Posts
    107
    Plugin Contributions
    0

    Default Re: Error updating database

    Not sure if it's a problem at my end but that's what I did, it was when I was hitting the "upgrade database" button in zc_install that it gave me the error.

    I still had my main database live and was working on a test install. Whenever I backed up my live database (using my hosts control panel) and then imported it to my test one, it gave that error when I used zc_install.

    In the end I exported the database in phpmyadmin, removed a couple of lines with the live database name in them and imported to my test database, Worked fine then.

 

 

Similar Threads

  1. v154 Trouble updating database
    By NWCE in forum Upgrading to 1.5.x
    Replies: 26
    Last Post: 25 Mar 2015, 03:45 PM
  2. v139h 1.3.9h to 1.5.1 error on updating database
    By pietpetoors in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 2 Oct 2012, 04:19 PM
  3. updating database
    By Neemisha in forum Basic Configuration
    Replies: 4
    Last Post: 3 Oct 2007, 02:58 PM
  4. How do I avoid corruption when updating database? Only allowed one database.
    By kevin_a in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 9 May 2007, 07:18 AM

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