Ecommerce Magento 2 Magento 2 Tutorials

How to Fix Magento 2 ‘Requested Store Is Not Found’?

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.50 out of 5)
Loading...Loading...
Requested Store Is Not Found

Today, we’re going to teach you guys how to fix ‘Requested store is not found’ in your Magento 2 store.

The Requested Store Is Not Found situation mostly arises when you’re migrating your Magento 2 store to the latest version of Magento. 

And in this post, we’re going to show you exactly how to fix Magento 2 Requested Store Is Not Found error.

Method to Fix ‘Requested Store Is Not Found’ In Magento 2

When you’ve migrated your store to the latest Magento 2 version and encountered ‘Requested Store Is Not Found’ error, it is caused because you have not deleted old store data from the “core_config_data”.

So, the first thing you need to do to get rid of ‘Requested Store Is Not Found’ error is to execute the following SELECT query for deleting old store data correctly.

NOTE: Make sure you’ve created a fresh backup of your database before executing the following queries!

SELECT * FROM core_config_data WHERE scope = ‘stores’;

DELETE FROM core_config_data WHERE scope_id != 1 AND scope = ‘stores’;

After that, you need to execute the following commands in your Magento 2 store database:

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;

Lastly, restore the tables – store, store_group, store_website – just as they were before you migrated your Magento 2 store.

Now, try to access your Magento 2 store from a web browser & confirm that the error is resolved.

Conclusion

And there you go!

This is how you can fix ‘Requested Store Is Not Found’ error in your Magento 2 store.

We hope that you found this tutorial helpful. If you have any questions, please ask them in the comments below.

And if you need our professional assistance, feel free to contact us anytime.

You may also like
How to Get Current Product ID in Magento 2
How to Get Current Product ID in Magento 2?
How to Dynamically Schedule CRON Job in Magento 2
How to Dynamically Schedule CRON Job in Magento 2?

Leave Your Comment

Your Comment*

Your Name*