Magento 404 and/or cannot login to admin page after migrating site or restoring database

Magento Administrator Login won't work after moving site - IRRITATING!!!

Magento dataabse thngs have to be ZEROS - yours are probably ONES

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

ALSO delete var/cache - completely

ALSO: If you start getting the admin page after SUCCESSFUL login, DLETE COOKIES or open Incognito window!!! (You can tell by putting in bad password to get error message?)


Cannot seem to create new Magento admin groups in system.xml and adminhtml.xml

When learning to create a module that adds new administration groups to the Magento admin panel, follow these instructions:

However, something they fail to mention is that after you have created your new admin groups in system.xml, and after you have created your adminhtml.xml file (to allow permissions) you must LOG OUT AND LOG BACK IN (as administrator) to re-load the ACL and allow the new permissions to take effect!!! A tiny but hugely important detail. Failing to do so leads to hours of troubleshooting!!!

You heard it here first...


Subscribe to RSS - admin