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
Mukesh Chapagain Mar 03 '11 at 9:32 2011-03-03 09:32
source share