Error Processing Request: "Invalid website id requested."

Error Processing Request: "Invalid website id requested."

September 13, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Error Processing Request: "Invalid website id requested."

Resolving “Invalid Website ID Requested” Error in Magento

Understanding the Error

The error you’re encountering is related to Magento’s website management system. When you delete a website, Magento doesn’t always update its internal references immediately, leading to conflicts that cause this error during certain operations.

The error log shows an exception thrown in Mage_Core_Model_App.php, indicating that the invalid website ID was requested by Mage_Tax_Block_Adminhtml_Notifications.php. This suggests the issue is with the tax notification system trying to access a deleted website’s data.

Steps to Resolve the Issue

1. Clear Magento Cache

The first step is to clear your Magento cache, which might resolve temporary conflicts:

rm -rf var/cache/*

If you have caching enabled via the caching configuration file, be sure to disable it temporarily before running this command.

2. Check and Update Website References

Next, check if there are any references to the deleted website in your database:

  1. Log into phpMyAdmin or use a similar tool to access your Magento database.
  2. Navigate to the core_website table.
  3. Look for entries with the same website ID as the one you deleted. Check the code, name, and other fields carefully.

If any records exist in tables other than core_website (like catalog_product_entity_int), update or delete them accordingly. Be cautious while modifying database records directly; always backup your data before making changes.

3. Reindex All Magento Indexes

After updating the database, reindex all Magento indexes to ensure the data is consistent:

php shell/indexer.php reindexall

This command rebuilds all indices that store pre-calculated data for faster performance.

4. Flush Magento Cache Again

Finally, flush the Magento cache one more time after reindexing:

rm -rf var/cache/*

Best Practices to Prevent Future Issues

To avoid similar errors in the future:

  • Always backup your database before deleting websites or making significant configuration changes.
  • Use the Magento admin interface for all website management tasks instead of directly modifying database tables.
  • Regularly update your Magento installation to ensure you have the latest bug fixes and security patches.

Conclusion

Resolving “invalid website ID requested” errors in Magento usually involves a combination of clearing cache, updating relevant database records, reindexing, and flushing the cache again. Always remember to backup your data before making changes directly to the database.

For more detailed instructions on Magento error resolution and best practices, visit Laravel Company’s Magento Error Troubleshooting Guide.

Catalog Cache Database Admin

Our network