The website with id x that was requested wasn’t found. Verify the website and try again.

By | November 7, 2023
Spread the love

If you have the error as in the title of this page this solution can help you. In our case, this error happened when we synchronize live DB in dev DB. This error mainly come when you have unused website or store id data in config tables.

DELETE core_config_data FROM core_config_data

LEFT JOIN store_website ON core_config_data.scope_id = store_website.website_id

WHERE core_config_data.scope='websites' AND store_website.website_id IS NULL;
DELETE core_config_data FROM core_config_data

LEFT JOIN store ON core_config_data.scope_id = store.store_id

WHERE core_config_data.scope='stores' AND store.store_id IS NULL;

After run these queries the error should go away

Iconic One Theme | Powered by Wordpress