"Error 404 not found" in the Magento admin login page

I just transferred my magento installation from one local machine server to another. Now I can not enter the admin panel. When I go to the admin login URL, I get the following error message: -

"Error: 404 not found"

Some of my module pages also show this error.

Can anyone solve the problem?

+57
php magento
Mar 03 '11 at 8:00
source share
3 answers

Finally, I found a solution to my problem.

I looked at the Magento syslog file (var / log / system.log). There I saw the exact error.

The error is as follows: -

Error recovered: argument 1 passed to Mage_Core_Model_Store :: setWebsite () should be an example Mage_Core_Model_Website, null, is called in YOUR_PATH \ application \ code \ kernel \ Mage \ Kernel \ Model \ app.php on line 555 and is defined in YOUR_PATH \ application \ code \ core \ Mage \ Core \ Model \ Store.php on line 285

Error recovered: argument 1 passed to Mage_Core_Model_Store_Group :: setWebsite () should be an example Mage_Core_Model_Website, null, is called in YOUR_PATH \ application \ code \ kernel \ Mage \ Kernel \ Model \ app.php on line 575 and is defined in YOUR_PATH \ application \ code \ core \ Mage \ Core \ Model \ Store \ Group.php on line 227

Actually, I used to have this error. But an error message like Error: 404 Not Found was new to me.

The reason for this error is that store_id and website_id must be set to 0 (zero) for the administrator. But, when you import the database to a new server, somehow these values โ€‹โ€‹are not set to 0.

Open PhpMyAdmin and run the following query in the database: -

 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; 

I wrote about this problem and solution here: -

Magento: Solving the "Error: 404 Not Found" Problem on the Admin Login Page

+138
Mar 03 '11 at 9:32
source share

I just copied and moved the Magento site to a local area so that I could work on it offline and had the same problem.

But in the end I found out that Magento was forcing redirects from http to https, and I didn't have SSL settings. So this solved my problem http://www.magentocommerce.com/wiki/recover/ssl_access_with_phpmyadmin

To a large extent, this means that the set web / secure / use_in_adminhtml value is from 1 to 0 in the core_config_data file to provide insecure access to the administration area.

+2
Apr 23 '12 at 16:00
source share

Thanks to everyone, for me this solution worked: Magento 404 page in backoffice after login

-3
May 03 '11 at 20:06
source share



All Articles