Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 38
  1. #21
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 1062 Duplicate entry '0' for key 1

    Quote Originally Posted by cshart
    I am experiencing this problem in my admin area when I try to go anywhere.

    What can be done to correct this?

    cshart
    1. Run the SQL statements above, via phpMyAdmin
    2. Use phpMyAdmin to do a Database Backup, and then click on the admin_activity_log table and click the "Empty" button.
    .

    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.

  2. #22
    Join Date
    Nov 2005
    Posts
    24
    Plugin Contributions
    0

    Default Re: 1062 Duplicate entry '0' for key 1

    Dr. Byte, thank you so much for this script. I have spent the last week moving sites and this overwhelmed me. I found your script, ran it and voila. Thank you.

    Darlene

  3. #23
    Join Date
    Jun 2007
    Location
    Michigan
    Posts
    187
    Plugin Contributions
    0

    Default Re: 1062 Duplicate entry '0' for key 1

    Dr. Byte.... You are the Greatest. your script fixed my issue. Thanks

  4. #24
    Join Date
    Aug 2007
    Posts
    29
    Plugin Contributions
    0

    Default Re: 1062 Duplicate entry '0' for key 1

    Quote Originally Posted by DrByte View Post
    1. Run the SQL statements above, via phpMyAdmin
    2. Use phpMyAdmin to do a Database Backup, and then click on the admin_activity_log table and click the "Empty" button.
    Thank you so much DrByte! I just had to do this and it worked PERFECTLY! You're a sanity saver!
    Leah

  5. #25
    Join Date
    Jan 2006
    Location
    Toronto, Ontario, Canada
    Posts
    183
    Plugin Contributions
    3

    Default Re: 1062 Duplicate entry '0' for key 1

    Quote Originally Posted by jdimaging View Post
    Dr. Byte, thank you so much for this script. I have spent the last week moving sites and this overwhelmed me. I found your script, ran it and voila. Thank you.

    Darlene
    Ditto !

    Ahmad Rahman
    TRUST IT | web site design and development
    mobile: 416.828.0224 | email: [email protected]
    www.trustit.ca

    For IT solutions how you want IT, when you want IT, TRUST IT.

  6. #26
    Join Date
    Mar 2008
    Posts
    49
    Plugin Contributions
    0

    Default Re: 1062 Duplicate entry '0' for key 1 after export/import of database

    Drbyte!

    Please can you create a SQL command for phpmyadmin for zencart version 1.2.1?

    Please, I would really appreciate it.

  7. #27
    Join Date
    Jun 2007
    Location
    SA
    Posts
    91
    Plugin Contributions
    0

    Default Re: 1062 Duplicate entry '0' for key 1 after export/import of database

    Hi All

    I could really use some help with my issue:
    1062 Duplicate entry '0' for key 1
    in:
    [insert into banners_history (banners_id, banners_shown, banners_history_date) values ('52', 1, now())]


    Link to my site:
    http://www.digitalsaonline.co.za/catalog/

    I have done everything on this forum as suggested and still having the same issue

    I have cleared history on all tables that i could find listed here, have run the SQL script and have gone and DEL all my banners in PHPmyAdmin

    What else do i need to do to fix this

    Issue is coming up in both site and admin

    Admin error is:
    1062 Duplicate entry '0' for key 1
    in:
    [insert into admin_activity_log (access_date, admin_id, page_accessed, page_parameters, ip_address) values (now(), '1', 'store_manager.php', '', '198.54.202.30')]
    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.


    All help appreciated

    Thanks

  8. #28
    Join Date
    Jun 2007
    Location
    SA
    Posts
    91
    Plugin Contributions
    0

    Default Re: 1062 Duplicate entry '0' for key 1 after export/import of database

    Hi All

    Any update please or help on my post?

  9. #29
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 1062 Duplicate entry '0' for key 1 after export/import of database

    When did this start happening?
    How does that relate to things done to your webserver or your site or your database or your hosting account?
    What version of Zen Cart? Is this an upgrade? from which version(s)? When?
    What addons do you have installed?




    Side-note: the proper etiquette for "bumping" your post is to post more information about the problem, not just say "help". Related info: http://www.zen-cart.com/forum/faq.ph...aq_do_and_dont
    .

    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.

  10. #30
    Join Date
    Jun 2007
    Location
    SA
    Posts
    91
    Plugin Contributions
    0

    Default Re: 1062 Duplicate entry '0' for key 1 after export/import of database

    Quote Originally Posted by DrByte View Post
    When did this start happening?
    How does that relate to things done to your webserver or your site or your database or your hosting account?
    What version of Zen Cart? Is this an upgrade? from which version(s)? When?
    What addons do you have installed?




    Side-note: the proper etiquette for "bumping" your post is to post more information about the problem, not just say "help". Related info: http://www.zen-cart.com/forum/faq.ph...aq_do_and_dont
    Thank you so much for the reply
    My site generates income for my family and really need to get it working for my clients to purchase from me from tomorrow

    It started yesterday
    Not sure i understand your second ?
    Not an upgrade, its a install from zencart zip files, version "New Version Available v1.3.8" so i think its version 1.3.7
    Started my site a year ago and moved to new hosting company about 5 months ago, all has been working fine
    Add ons:
    I think the cart editor addon, allows me to edit client orders, thats about it

    Thanks again for the reply

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Replies: 6
    Last Post: 13 Feb 2013, 06:35 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. 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
  4. Replies: 5
    Last Post: 8 Apr 2008, 02:52 PM
  5. '1062 Duplicate entry '0' for key 1' after payment process
    By targetsp in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 18 May 2006, 03:37 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