感谢你的到来
一起学习进步

Magento2.x出现 The website with id 0 that was requested wasn’t found

 

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;

 



赞(0) 打赏
未经允许不得转载:IT起义 » Magento2.x出现 The website with id 0 that was requested wasn’t found
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

跨境电商|抖音营销

微信:345497590QQ 345497590

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏