浏览文章
文章信息
【Magento2】 The website with id 0 that was requested wasn't found. Verify the website and try again.
15562
原因:数据迁移时发生的数据错乱。
解决:
SET FOREIGN_KEY_CHECKS=0; UPDATE `store` SET store_id = 0 WHERE code='admin'; UPDATE `store_group` SET group_id = 0 WHERE name='Default'; UPDATE `store_website` SET website_id = 0 WHERE code='admin'; UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN'; SET FOREIGN_KEY_CHECKS=1;建议Magento官方考虑迁移数据完整性。