Page 1 of 1

Error when trying to edit options

Posted: Wed Mar 26, 2014 7:52 am
by Garret H
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

Re: Error when trying to edit options

Posted: Wed Mar 26, 2014 11:24 am
by melbagnato
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

Re: Error when trying to edit options

Posted: Fri Jun 27, 2014 11:23 pm
by melbagnato
Hi Garret,

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

- Mel