Skip to content

Instantly share code, notes, and snippets.

@davidalexander
Created September 9, 2014 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidalexander/bc13f26b134e72d391e8 to your computer and use it in GitHub Desktop.
Save davidalexander/bc13f26b134e72d391e8 to your computer and use it in GitHub Desktop.
Magento Admin gives 404 due to admin website not having id of 0
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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment