Jump to content
Sign in to follow this  
CaptainPower

Добавление опций - ошибка ocstore 1.5.1.3

Recommended Posts

В магазине при добавлении значения опций начались проблемы - ошибка:

Notice: Error: Duplicate entry '247-5' for key 'PRIMARY'

Error No: 1062

INSERT INTO option_value SET option_value_id = '247', option_id = '5', image = '', sort_order = '0' in /var/www/u4332374/public_html/alisonya.ru/system/database/mysql.php on line 49

в таблице базы option_value_id переваливает за 500 - если добавлять опции из phpadmin и указывать составной ключ option_id = '5' то все нормально. Откута в админке появилась такая ошибка. Такое предположение что порядковый номер '247' нового ключа ОП берет по числу уже введеных до этого опций в данной группе типа : SELECT COUNT(*) FROM option where option_id = '5'

обновлять котроллер и модель опций пробовал.

Share this post


Link to post
Share on other sites

когда вы начнете оформлять ошибки/код соответствующими тэгами? :-x

Edited by afwollis

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.