Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在magento 2中删除存储视图后插入产品时出错_Magento_Magento2 - Fatal编程技术网

在magento 2中删除存储视图后插入产品时出错

在magento 2中删除存储视图后插入产品时出错,magento,magento2,Magento,Magento2,我使用演示软件包安装了themeforest布局。一切都很好。 例如,这个演示有一些商店视图。我删除了所有我不需要的店面,前端工作正常 问题是: 当我尝试插入新产品时,我收到以下错误: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`loja_magento`.`catalog_product_websi

我使用演示软件包安装了themeforest布局。一切都很好。 例如,这个演示有一些商店视图。我删除了所有我不需要的店面,前端工作正常

问题是: 当我尝试插入新产品时,我收到以下错误:

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`loja_magento`.`catalog_product_website`, CONSTRAINT `CATALOG_PRODUCT_WEBSITE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `store_website` (`website_id`) ON DELET), query was: INSERT INTO `catalog_product_website` (`product_id`,`website_id`) VALUES (?, ?)
我不知道如何修理它。有人能帮我吗

Magento 2.4