There Was No 404 CMS Page Configured or Found

There Was No 404 CMS Page Configured or Found

September 20, 2026 · Illustrated author avatarBy Stefan Bogdanescu
There Was No 404 CMS Page Configured or Found

Title: Resolving the “No 404 CMS Page Configured” Error on Magento

The “There was no 404 CMS page configured or found” error is a common issue faced by many Magento store owners, especially when dealing with multi-site configurations. This error typically occurs during category navigation and can be quite frustrating to troubleshoot. Let me guide you through identifying the root cause of this problem and provide practical solutions.

Understanding the 404 CMS Page Configuration

The 404 Not Found error usually happens when Magento cannot locate a corresponding CMS page for the requested URL. This is not directly related to the .htaccess or index.php files in your Magento installation but rather stems from the way you have configured your CMS pages and their association with your category URLs.

In your case, since you are dealing with multiple websites within a single Magento instance (main site and mywebsite), the issue could be due to improper configuration of the 404 error page for each website context.

Analyzing Your Current Setup

You’ve provided some key pieces of information about your setup that will help us pinpoint the problem:

  1. You have a main Magento folder and another folder (mywebsite) inside it.
  2. Both folders contain separate index.php files with proper Mage::run() configurations for their respective contexts.
  3. The .htaccess files in both folders seem to be correctly configured with appropriate RewriteBase values.

Common Causes of the “No 404 CMS Page” Error

Before we dive into specific solutions, let’s explore some common reasons why you might be experiencing this error:

Incorrect CMS Page Assignment

Ensure that your category URLs are properly assigned to corresponding CMS pages in the Magento admin panel. Go to Content > Pages and verify if there is a CMS page configured for each of the 404 error scenarios.

Missing or Inactive Website Configuration

If you have multiple websites configured in your Magento setup, make sure all website contexts (main site and mywebsite) are active and properly set up with their respective base URLs. Check your configuration files under app/etc/local.xml to ensure this is correctly defined.

Incorrect 404 Error Page Configuration

Magento allows you to configure separate CMS pages for different error scenarios like 404, 403, etc., at the website level. Go to Stores > Settings > Configuration > General > Web and check if the ‘Default Error Page’ field is set correctly for each of your websites.

Step-by-Step Resolution Process

To resolve this issue, follow these steps:

1. Verify CMS Page Assignment

  • Log in to your Magento admin panel.
  • Navigate to Content > Pages.
  • Click on the page that corresponds to your category URL (e.g., if you’re getting a 404 error for the “Men” category, look for a CMS page titled something like “Category-Men”).
  • Check if this CMS page is active and published.

2. Review Your Website Configuration

  • In the admin panel, go to Stores > Settings > Configuration > General > Web.
  • Select your store view (if you have multiple views).
  • Scroll down to the ‘Default Error Page’ field under the ‘Error Pages’ section.
  • Ensure that it is set to a valid CMS page ID for each website context.

3. Update Your Magento Core Files

If you still face issues, there might be a need to update some core files in your Magento installation:

  1. Go to app/code/core/Mage/Cms/controllers/IndexController.php.
  2. Find the function publicAction() and locate this line: $this->loadLayout()->renderLayout();.
  3. Add the following code just before it:
if (Mage::registry('cms_page') && !($page = Mage::registry('cms_page')->getContent())) {
    $this->_forward('noRoute');
}
  1. Save and close the file.

Conclusion

The “No 404 CMS Page Configured” error is primarily a configuration issue related to Magento’s CMS page assignment and website context setup. By following the steps outlined above, you should be able to identify and resolve this problem in your multi-site Magento installation.

Remember that proper CMS page configuration is crucial for a smooth user experience, especially when dealing with category URLs. Be sure to maintain accurate associations between your category structure and corresponding CMS pages.

If you need further assistance or want to explore advanced Magento configurations, feel free to visit the Magento Documentation on our website (https://laravelcompany.com). We provide comprehensive guides and tutorials for various Magento-related topics.

Catalog Configuration Errors

Our network