> [!INFO]
> **Website**: [The S Group](https://www.sashas.org/)
> **Author**: Alexander Lukyanov
> **Published**: 2015-02-11
> **Summary**: Learn how to resolve issues and optimize your Adobe Commerce Admin 404 page not found setup with our step-by-step technical guide.

# Adobe Commerce Admin 404 page not found

 ![Adobe Commerce Admin 404 page not found - Adobe Commerce Technical Guide Guide](https://www.sashas.org/images/blog/img-magento-admin-404-page-not-found.html-i.0.png)

 the Admin 404 Page Not Found issue usually appears when the database has been moved and loses integrity keys.  Also it may happen when you migrate website to different hosting. you will not notice that the issue exists until you try to log in to Adobe Commerce admin panel.  The magento Admin 404 Page Not Found issue will be shown in this case. The issue will show admin 404 page not found and it doesn't mean that this page not exist.  if you will check Adobe Commerce admin log:

   var/log/system.log   you will see lines reporting this issue.

 ## Adobe Commerce Admin 404 page not found log entry

 The log entry for Admin 404 Page Not Found issue will look like:

   Recoverable Error: Argument 1 passed to Mage_Core_Model_Store::setWebsite() must be an instance of Mage_Core_Model_Website, null given, called in YOUR_PATHppcodecoreMageCoreModelApp.php on line 555 and defined in YOUR_PATHppcodecoreMageCoreModelStore.php on line 285

   Recoverable Error: Argument 1 passed to Mage_Core_Model_Store_Group::setWebsite() must be an instance of Mage_Core_Model_Website, null given, called in YOUR_PATHppcodecoreMageCoreModelApp.php on line 575 and defined in YOUR_PATHppcodecoreMageCoreModelStoreGroup.php on line 227   Also you may see this PHP Notice message:

   Notice: Undefined index: 0 in app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92

 ## The solution to the Adobe Commerce Admin 404 Page Not Found issue

 The solution to this issue is to set default values for magento database.  To do this you need to open PhpMyAdmin or any other mysql client and execute the following mysql query below. Please make sure to add table prefix in case you have prefix for your magento store

   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;

 After the query is completed you can check access to magento admin panel. This query will fix the magento Admin 404 Page Not Found issue and allow you to log in to Adobe Commerce admin panel.   It sets store_id for magento admin store view to the default 0 value and resets customer group id for not logged users  to the default zero value. Hope it was helpful and it solved your magento Admin 404 Page Not Found issue.

## Frequently Asked Questions

### Adobe Commerce Admin 404 page not found log entry

The log entry for Admin 404 Page Not Found issue will look like: Recoverable Error: Argument 1 passed to Mage_Core_Model_Store::setWebsite() must be an instance of Mage_Core_Model_Website, null given, called in YOUR_PATHppcodecoreMageCoreModelApp.php on line 555 and defined in YOUR_PATHppcodecoreMag

### The solution to the Adobe Commerce Admin 404 Page Not Found issue

The solution to this issue is to set default values for magento database. To do this you need to open PhpMyAdmin or any other mysql client and execute the following mysql query below. Please make sure to add table prefix in case you have prefix for your magento store SET FOREIGN_KEY_CHECKS=0; UPDATE



## Navigation & Categories
- [Experience](https://www.sashas.org/customer-experience.html)
  - [Catalog Enhancements](https://www.sashas.org/customer-experience/catalog-enhancements.html)
  - [Cart & Checkout](https://www.sashas.org/customer-experience/cart-checkout.html)
  - [Customers](https://www.sashas.org/customer-experience/customers.html)
  - [Shipping](https://www.sashas.org/customer-experience/shipping.html)
  - [Payments](https://www.sashas.org/customer-experience/payments.html)
- [Management](https://www.sashas.org/site-management.html)
  - [Sales & Fulfillment](https://www.sashas.org/site-management/sales-fulfillment.html)
  - [Catalog](https://www.sashas.org/site-management/catalog.html)
  - [Customer Support](https://www.sashas.org/site-management/customer-support.html)
  - [Marketing & Promotions](https://www.sashas.org/site-management/marketing-promotions.html)
  - [Content Management](https://www.sashas.org/site-management/content-management.html)
  - [Reporting & Analytics](https://www.sashas.org/site-management/reporting-analytics.html)
- [Optimization](https://www.sashas.org/optimization.html)
  - [Performance](https://www.sashas.org/optimization/performance.html)
  - [Monitoring](https://www.sashas.org/optimization/monitoring.html)
  - [Troubleshooting & Debugging](https://www.sashas.org/optimization/troubleshooting-debugging.html)
- [Blog](https://www.sashas.org/blog)
- [About Us](https://www.sashas.org/about-us.html)
- [Contact Us](https://www.sashas.org/contact.html)
- [Privacy Policy](https://www.sashas.org/privacy-and-refund-policy.html)
- [Refund Policy](https://www.sashas.org/refund-policy.html)
