My website meets a problem. It shows error:

"0":"The website with code default that was requested wasn't found. Verify the website and try again.","1":"

I've check store,store_group, store_websites on my db table, and all is correct.

We have no idea how to fix, anyone can help this?

system: magento 2.2.8


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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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