增加优惠券 An error occurred while saving the rule data. Please review the log and try again.
2015-03-03 15:21
676 查看
Next exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`thepromg_thepromgirls`.`salesrule_customer_group`, CONSTRAINT `FK_SALESRULE_CSTR_GROUP_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID`
FOREIGN KEY (`customer_group_id`) REFERENCES `2013_04_06customer)' in /home/thepromgirls/public_html/includes/src/__default.php:63430
Stack trace:
![](https://oscdn.geek-share.com/Uploads/Images/Content/202009/01/36bc4b034fe63035ee08984c3c5b8de6)
CREATE TABLE `salesrule_customer_group` (
`rule_id` int(10) unsigned NOT NULL COMMENT 'Rule Id',
`customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group Id',
PRIMARY KEY (`rule_id`,`customer_group_id`),
KEY `IDX_SALESRULE_CUSTOMER_GROUP_RULE_ID` (`rule_id`),
KEY `IDX_SALESRULE_CUSTOMER_GROUP_CUSTOMER_GROUP_ID` (`customer_group_id`),
CONSTRAINT `FK_SALESRULE_CSTR_GROUP_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_group` (`customer_group_id`),
CONSTRAINT `FK_SALESRULE_CUSTOMER_GROUP_RULE_ID_SALESRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `salesrule` (`rule_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Rules To Customer Groups Relations'
FOREIGN KEY (`customer_group_id`) REFERENCES `2013_04_06customer)' in /home/thepromgirls/public_html/includes/src/__default.php:63430
Stack trace:
show create table `salesrule_customer_group`
CREATE TABLE `salesrule_customer_group` ( `rule_id` int(10) unsigned NOT NULL COMMENT 'Rule Id', `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group Id', PRIMARY KEY (`rule_id`,`customer_group_id`), KEY `IDX_SALESRULE_CUSTOMER_GROUP_RULE_ID` (`rule_id`), KEY `IDX_SALESRULE_CUSTOMER_GROUP_CUSTOMER_GROUP_ID` (`customer_group_id`), CONSTRAINT `FK_SALESRULE_CSTR_GROUP_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID` FOREIGN KEY (`customer_group_id`) REFERENCES `2013_04_06customer_group_xxx` (`customer_group_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `FK_SALESRULE_CUSTOMER_GROUP_RULE_ID_SALESRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `salesrule` (`rule_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Rules To Customer Groups Relations' |
CREATE TABLE `salesrule_customer_group` (
`rule_id` int(10) unsigned NOT NULL COMMENT 'Rule Id',
`customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group Id',
PRIMARY KEY (`rule_id`,`customer_group_id`),
KEY `IDX_SALESRULE_CUSTOMER_GROUP_RULE_ID` (`rule_id`),
KEY `IDX_SALESRULE_CUSTOMER_GROUP_CUSTOMER_GROUP_ID` (`customer_group_id`),
CONSTRAINT `FK_SALESRULE_CSTR_GROUP_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_group` (`customer_group_id`),
CONSTRAINT `FK_SALESRULE_CUSTOMER_GROUP_RULE_ID_SALESRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `salesrule` (`rule_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Rules To Customer Groups Relations'
相关文章推荐
- zencart后台管理中选项名称和选项内容和属性控制页面出错解决办法 WARNING: An Error occurred, please refresh the page and try again
- An error occurred while saving your credit card. Please try again.
- 迁移zencart后出现 WARNING: An Error occurred, please refresh the page and try again的解决方法
- An error was encountered. Please return to the previous page and try again.
- asp.net配置报错 “An error was encountered. Please return to the previous page and try again. ”
- 发布或者更新 apk file时,上传出现问题 -- An unexpected error occurred.Please try again later.
- Magento报错:An error occurred while saving the URL rewrite (重新索引不了怎么办)
- configure: error: Please fix the library issues listed above and try again错误解决方法
- Android An unexpected exception occurred while creating a change object. see the error log for more details
- 运行JFinal时jdk报错:A JNI error has occurred,please check your installation and try again
- eclipse中执行程序时报错'A JNI error has occurred,please check your installation and try again'
- ubuntu下Android Studio创建模拟器时报错An error occurred while creating the AVD. See idea.log for details.解决办法
- 安装rrdtool时候的报错configure: error: Please fix the library issues listed above and try again
- vSphere:" An Error occurred, please try again in another vSphere session"
- 安装rrdtool时候的报错configure: error: Please fix the library issues listed above and try again.
- xml无法显示(Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again la
- Xcode/Git Repository Error: “Please verify that the working copy is reachable and try again.”
- an error has occurred while trying to access the log file. logging may not function properly
- Android Studio ON Linux 报错:An error occurred while creating the AVD. See idea.log for details,解决方法
- vCenter Hardware Status Error-An error occurred, please try again in another vSphere session.