有时候,MAGENTO在修改之后会报错
The website with id 1 that was requested wasn't found. Verify the website and try again.
或是
The store that was requested wasn't found. Verify the store and try again.
需要在备份数据库后执行
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;