Forums / General Questions / 1062 Duplicate entry '32767' for key 1 HELP!!!!!!!!!!!!

1062 Duplicate entry '32767' for key 1 HELP!!!!!!!!!!!!

Locked

Started by aussie5353 on 7 Aug 2007, 7:31 PM · Views: 5,277

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
7 Aug 2007, 7:31 PM
#1
aussie5353 avatar

aussie5353

New Zenner

Join Date:
Mar 2006
Posts:
5
Plugin Contributions:
0

1062 Duplicate entry '32767' for key 1 HELP!!!!!!!!!!!!

Hi,
My admin shows this message "1062 Duplicate entry '32767' for key 1" whenever I try to access anything. I have read threads from people with the same problem recently. Unfortunately I am not as competent as they seem to be. Can anyone help me with step by step instructions? I can't access customer records for billing. I'm desperate!
Thanks,
aussie5353
https://www.chromeworld.com.au

7 Aug 2007, 7:35 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: 1062 Duplicate entry '32767' for key 1 HELP!!!!!!!!!!!!

What version of Zen Cart are you using?
Did you recently do an upgrade?
Did you recently move from an old database to a new one?
Did your MySQL version recently change?

.
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.

7 Aug 2007, 7:59 PM
#3
aussie5353 avatar

aussie5353

New Zenner

Join Date:
Mar 2006
Posts:
5
Plugin Contributions:
0

Re: 1062 Duplicate entry '32767' for key 1 HELP!!!!!!!!!!!!

DrByte:

What version of Zen Cart are you using?
Did you recently do an upgrade?
Did you recently move from an old database to a new one?
Did your MySQL version recently change?
I don't know which version I'm using because I can't access anything in admin. I do know that it's an early version. I haven't done anything recently except I had to create an account for a customer who was already in the database. I used all of his information and created a 2nd account with a new password. I then deleted his initial account.

7 Aug 2007, 8:43 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: 1062 Duplicate entry '32767' for key 1 HELP!!!!!!!!!!!!

Open your phpMyAdmin, select your Zen Cart database, click on the SQL tab, abd enter this in the text box, and click go:

ALTER TABLE admin_activity_log CHANGE COLUMN log_id log_id int(15) NOT NULL auto_increment;

If you get an error, check your /includes/configure.php file, and find out what your DB_PREFIX setting is. Then change the query above by replacing admin_activity_log with your_prefix_admin_activity_log

IF THIS WORKS FOR YOU THEN IT'S TIME TO UPGRADE YOUR VERSION OF ZEN CART!!!!!

.
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.

9 Aug 2007, 9:29 AM
#5
aussie5353 avatar

aussie5353

New Zenner

Join Date:
Mar 2006
Posts:
5
Plugin Contributions:
0

Re: 1062 Duplicate entry '32767' for key 1 HELP!!!!!!!!!!!!

DrByte:

Open your phpMyAdmin, select your Zen Cart database, click on the SQL tab, abd enter this in the text box, and click go:

ALTER TABLE admin_activity_log CHANGE COLUMN log_id log_id int(15) NOT NULL auto_increment;

> 
> If you get an error, check your /includes/configure.php file, and find out what your DB_PREFIX setting is.  Then change the query above by replacing admin_activity_log with your_prefix_admin_activity_log
Thank you so much. Yippee.
12 Feb 2009, 3:11 PM
#6
barad avatar

barad

New Zenner

Join Date:
Feb 2005
Posts:
1
Plugin Contributions:
0

Re: 1062 Duplicate entry '32767' for key 1 HELP!!!!!!!!!!!!

THANKS for the tip - this same issue cropped up on our store. It worked!

12 Feb 2009, 3:31 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: 1062 Duplicate entry '32767' for key 1 HELP!!!!!!!!!!!!

barad:

THANKS for the tip - this same issue cropped up on our store. It worked!
Then ... it's time to upgrade 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.