2

I get this message "Requested store is not found" when I want to fix it.

The requested Store Is Not Found situation come up while migrating Magento 2 store to the latest version of Magento.

1
  • 1
    Also facing the issue with some on my magento websites. I suspect from my side a cache issue, because after refreshing the page once the error is gone, and it's happening almost everytime after we deploy a new version. I suspect a flat table not being written fast enough. Sorry, not very helpfull.
    – Claims
    Commented Nov 8, 2021 at 9:23

1 Answer 1

0

You need to run the following query in your database, and then try to open the website.

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;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.