mysql - Magento - Integrity constraint viloation: 1452, shopping cart rules -


when making discount/shopping cart rule given category or sku number, it's unable save , error created:

'zend_db_statement_exception' message 'sqlstate[23000]: integrity constraint violation: 1452 cannot add or update child row: foreign key constraint fails (`shop1`.`salesrule_product_attribute`, constraint `fk_salesrule_prd_attr_cstr_group_id_cstr_group_cstr_group_id` foreign key (`customer_group_id`) references `customer_group` (`customer_group_i)' in /var/www/shop1/public_html/lib/zend/db/statement/pdo.php:234 

i've been looking through db find problem, without luck. i'm unsure start looking now, found no obvious errors in customer_group table, think has deleted store front, while ago, maby messing customer id's?

surely obvious reason, last 1 checked! - ´customer_group´ table set myisam instead of innodb, must innodb.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -