Post by Garret H » Wed Mar 26, 2014 7:52 am

I updated to 1.5.6.1 a while back and tonight just went to edit an "option" -- when I try to edit it, I get the following error:

Notice: Error: Duplicate entry '0' for key 'PRIMARY'
Error No: 1062
INSERT INTO option_value SET option_id = '21', image = '', sort_order = '0' in /home3/altituf1/public_html/system/database/mysql.php on line 50

This happens after I hit the submit button, and the page does not save my option entry.

Can anyone help with this?

Thank you,
Garret

New member

Posts

Joined
Wed Jan 25, 2012 12:20 am

Post by melbagnato » Wed Mar 26, 2014 11:24 am

Hi Garret,

That's a typical database error you get when you try to add a record with a primary key (option_id) value that already exists.

Go into your database and confirm if that record is there. If it is and you still get this error I'm happy to look into it for you.

- Mel

http://online.enterpriseconsulting.com.au

Site with OpenCart extensions & code downloads, many new extensions coming soon!
Follow us on twitter for more updates

Image


User avatar
Active Member

Posts

Joined
Wed Jan 13, 2010 1:39 pm
Location - Melbourne

Post by melbagnato » Fri Jun 27, 2014 11:23 pm

Hi Garret,

all fixed. Your table had the 'auto_increment' flag disabled.

- Mel

http://online.enterpriseconsulting.com.au

Site with OpenCart extensions & code downloads, many new extensions coming soon!
Follow us on twitter for more updates

Image


User avatar
Active Member

Posts

Joined
Wed Jan 13, 2010 1:39 pm
Location - Melbourne
Who is online

Users browsing this forum: No registered users and 93 guests