Magento – Magento 2: Requested store is not found in product

magento-2.2.5stores

I get this message "Requested store is not found" when I want to create a new product or edit it.

Magento 2.2.5

php -f bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f

This already applies but does not solve

Any other solution?

Requested store is not found in product

Below error showing in log file.

main.CRITICAL: Requested store is not found {"exception":"[object]
(Magento\Framework\Exception\NoSuchEntityException(code: 0):
Requested store is not found at
/vendor/magento/module-store/Model/StoreRepository.php:109)"}

Please help me.

Best Answer

Try to use this query in your database :

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';
Related Topic