🔥 Just Launched! Werra Premium Template for HyväSee it in Action

How to Fix “One or More Indexers are Invalid” in Magento 2?

By Sanjay JethvaUpdated on May 30, 2025 5 min read

You must have encountered a popup notification in the admin panel stating, “One or more indexers are invalid.”

Popup on Admin Panel One or more indexers are invalid

Annoying right? Well, not anymore since we have a solution for you to avoid this. 

Before jumping to the solution, let’s first understand why this error occurs in Magento 2.

What Does the Error Mean?

The “One or more indexers are invalid” error occurs generally after modifying products, changing category structure, updating stock and inventory or modifying price/attribute.

​Magento indexes large amounts of data to optimize performance. 

When a certain update occurs from your end, Magento initiates reindexing to update changes in the database tables. However, this process can sometimes lead to “One or more indexers are invalid. Make sure your Magento cron job is running” error.

To avoid this error, you will have to reindex manually for the desired changes to appear in the admin panel. 

Possible Fixes for “One or More Indexers are Invalid” in Magento 2

Step 1 : Check Indexer Status

First, verify the indexer status by running the below command in the CLI. It will generate the status of all indexers.

php bin/magento indexer:status

The status would be one of the following:

  • Ready – If the indexer is up to date, ready status will be returned by the command.
  • Processing – It means the indexer is updating currently.
  • Invalid – If Invalid state is returned – that means the indexer should be reindexed and that’s why the issue is arriving.

Step 2 : Reindex All Indexers

If indexers are invalid, you can fix that using the below command:

php bin/magento indexer:reindex

Optional Step : Check Cron Jobs

If the indexers are invalid, there are higher chances that the cron jobs are not running properly because the cron job handles indexing in Magento 2.

Once all the indexers get reindexed, the cron job should be created for the same. However, sometimes this might be missing. In such case, you can install this missing cron jobs following the below command:

php bin/magento cron:install

You can verify whether the cron job is running properly or not by checking its status.

Check cron job status:

php bin/magento cron:status

If cron jobs are not running then use the below command:

php bin/magento cron:run

Step 3: Verify the fix

After reindexing and running cron jobs, to know whether the “One or More Indexers are Invalid” issue is resolved or not – follow the below steps.

Run the following command in the Magento root directory:

php bin/magento indexer:status

If all indexers return “Ready” state, the issue is fixed!

You can check the same in the admin panel as well.

  1. Refresh the Magento Admin Panel.
  2. Go to System → Index Management and ensure all indexers show Ready (not “Reindex Required”).
  3. If the warning “One or more indexers are invalid” disappears, it’s resolved.
Check the Indexer Status

Frequently Asked Questions 

1. How to Reindex Specific Indexers in Magento 2?

Run the below command and replace the indexer_code with your actual indexer name: 

php bin/magento indexer:reindex indexer_code

2. What’s the difference between “Update on Save” and “Update on Schedule”?

“Update on Save” reindexes data instantly when changes are made and “Update on Schedule” runs reindexing via cron jobs, to improve performance for large catalogs.

3. How do I set up a cron job for indexing?

Ensure cron is configured and add it to your crontab:

Run: crontab -e

Add: */5 * * * * php /path/to/magento/bin/magento cron:run >> /dev/null 2>&1

Then save and exit. Verify with: php bin/magento cron:status

Ensure indexers are set to “Update on Schedule” using: php bin/magento indexer:set-mode schedule

Error Fixed? – Learn More Here

With these steps, you will be able to solve your “One or more indexers are invalid” error in Magento 2. Try out the solution now! 

Here are some helpful resources for you:

Sanjay Jethva Full Image
Article bySanjay Jethva

Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe. His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.