Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ERROR: 1062 - Duplicate entry '1' for key 1


mandingo_raja

Recommended Posts

Posted

I'm getting this error during checkout_process.php:

 

1062 - Duplicate entry '1' for key 1

 

insert into orders_status_history (orders_id, orders_status_history_id, date_added, customer_notified, comments) values ('2', '1', now(), '1', '')

Posted

Have you made any database modifications? My first guess is that the orders_status_history_id is not set to autoincrement. Or coding modifications that might have changed how the query works?

 

Good luck,

Matt

Posted

i'll check into the code...i deleted all the data in the appropriate order tables...it worked the first time through, but i got the same error on the second run...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...