the site works fine, but we cannot login to the admin page.

Steps taken already: - cleared cache and session directories - deleted cache and session directories - (bravely! - ref https://stackoverflow.com/questions/4280049/how-can-i-fix-the-unsecure-base-url-on-my-magento-installation) removed 8 rows from ..core_config_data, namely all keys with path secure/base EXCEPT the root unsecure/base and secure/base keys.

Inspect element shows "Failed to load resource: ...404" which of course should be

We are not the developers of this page, just the humble hosters moving the site to Digital Ocean.

Thank you in anticipation of your inspired genius.

2 Answers 2


Open your phpmyadmin from your host try once this sql command...

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;


You most likely need to define a FQDN, (Fully Qualified Domain Name) to map your local IP to. If its a development environment, you can usually do this via a hosts file which you can find lots of tutorials online on how to do such for the operating system you are viewing the site with.

Since the domain isn't FQDN then the cookie for the admin session cannot be set causing the login page to simply refresh with no error.


  • 1
    Thanks B00MER, this plus the answer from Teja bhagavan sorted us out - MUCH appreciated
    – user33253
    Commented Nov 27, 2015 at 0:11

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.