Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Apr 2010
    Posts
    2
    Plugin Contributions
    0

    Default 1062 Duplicate entry - on upgrade

    Hi,
    I wonder if there iss anyone with the time and patience to help a "newbie" to Zen Cart.
    Our site was designed by a firm who basically showed us the admin control panel and left us to it. The site has worked very well for us and has/is generating a substantial amount of business. Unortunately it's too much traffic and we've gone over our allotted bandwith quite substantially. As a consequence of this and of being hacked a number of times we are trying to migrate the site to a dedicated server and perform the 1.37 to 1.38 upgrade.
    After much headbanging and a generous amount of help from our new host we had the site running on the new server (as a test site) and decided to peform the upgrade.
    Having followed the upgrade instructions and gotten id of all the errors I hit the Database upgrade button, it the tells me that i need a 1,37 to 1,38 upgrade - I hit the button and get the following error message:-
    1062 Duplicate entry 'Customers who have never completed a purchase' for key 2
    in:
    [INSERT INTO query_builder (query_category, query_name, query_description , query_string) VALUES ('email,newsletters', 'Customers who have never completed a purchase', 'For sending newsletter to all customers who registered but have never completed a purchase', 'SELECT DISTINCT c.customers_email_address as customers_email_address, c.customers_lastname as customers_lastname, c.customers_firstname as customers_firstname FROM TABLE_CUSTOMERS c LEFT JOIN TABLE_ORDERS o ON c.customers_id=o.customers_id WHERE o.date_purchased IS NULL');]


    Duh???
    anyone help someone who is way out of his depth ??ards


    Cheers

    Chris

  2. #2
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: 1062 Duplicate entry - on upgrade

    You might try using UPDATE instead of INSERT INTO.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  3. #3
    Join Date
    Jan 2009
    Location
    The Netherlands/Germany
    Posts
    142
    Plugin Contributions
    12

    Default Re: 1062 Duplicate entry - on upgrade

    the insert into is baked in the update...

    you might want to get in your database and delete the Customers who have never completed a purchase entry by hand
    I came, I saw, I got zenned... :)

  4. #4
    Join Date
    Apr 2010
    Posts
    2
    Plugin Contributions
    0

    application error Re: 1062 Duplicate entry - on upgrade

    All good now except i'm getting the customer return login error.
    have created new customer and he logs in and out ok, have made sure that the
    tpl_login_default.php
    tpl_timeout_default.php
    have the additional lines in them but still no luck.
    My admin login is fine and the site seems to be selling items as well (to the new customer).

    Also,

    How do I migrate the current database (v 1.3.7) when i want to go live on the new site v 1.3.8 - is it just a case of backup and restore or will i then end up having a 1.3.7 database on my new site??

    Thanks for the advice

    Chris

 

 

Similar Threads

  1. 1062 Duplicate entry
    By pkohn11 in forum General Questions
    Replies: 4
    Last Post: 5 Apr 2011, 09:09 PM
  2. 1062 Duplicate Entry
    By AlexanderL in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 24 Jan 2011, 07:46 PM
  3. Error 1062 Duplicate Entry
    By Betsysue in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 31 May 2008, 04:12 PM
  4. HELP?!! 1062 Duplicate entry
    By ljdream00 in forum General Questions
    Replies: 1
    Last Post: 4 Aug 2007, 10:11 PM

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