0

I deleted a website instance via the Magento Backend. Since then I get this error:

Recoverable Error: Argument 1 passed to Mage_Core_Model_Store::setWebsite() must be an instance of Mage_Core_Model_Website, null given

I already deleted everything in the var/cache folder and also executed this query without success:

SET FOREIGN_KEY_CHECKS=0;
UPDATE `core_store` SET store_id = 0 WHERE code='admin';
UPDATE `core_store_group` SET group_id = 0 WHERE name='Default';
UPDATE `core_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;

The file app/etc/use_cache.ser is not existent.

Do you have any advice how to get rid of the above mentioned error?

Thanks.

3
  • Check your index.php or htaccess if you're not trying to run a website code that has been deleted. If it was used in a extension or template file this will be an issue as well.
    – versedi
    Commented Jul 4, 2016 at 16:14
  • I can not find anything in the index.php which is related to the old store that I have deleted. Where in the htaccess could be possibly something inserted which has to do with the other stores? @versedi
    – Torben
    Commented Jul 5, 2016 at 8:53
  • Check this answer: magento.stackexchange.com/a/121952/13907 or if using 2: devdocs.magento.com/guides/v2.0/config-guide/multi-site/…
    – versedi
    Commented Jul 5, 2016 at 14:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.