The website with id 0 that was requested wasn’t found. Verify the website and try again.
In WebsiteRepository.php line 110:
The website with id 0 that was requested wasn’t found. Verify the website and try again.
这种情况一般发生在数据迁移后,数据库版本不同导出方法的不同产生的数据问题。
需要执行并重置store与产品绑定信息,后台新建store后删除老的,如后台无法登录
需要运行
解决办法 Mysql执行:
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;