Magento Tutorials

Magento 2 Error: One or more indexers are invalid

In Magento 2, after you change your system configurations, there will be a system message saying “One or more indexers are invalid. Make sure your Magento cron job is running.

One or more endexers are invalid
One or more endexers are invalid – Magento 2

What is Magento cron job?

Several Magento features require at least one cron job, which schedules activities to occur in the future. A partial list of these activities follows:

  • Catalog price rules
  • Newsletters
  • Generating Google sitemaps
  • Customer Alerts/Notifications (product price change, product back in stock)
  • Reindexing
  • Private sales (Magento Commerce only)
  • Automatic updating of currency rates
  • All Magento e-mails (including order confirmation and transactional)

Magento depends on proper cron job configuration for many important system functions, including indexing. Failure to set it up properly means Magento won’t function as expected.

How to solve it?

To get rid of this message, you need to perform reindex task using command line.

ssh login

1. Open your command line tool (SSH or Terminal)

magento 2 root folder

2. Go to your Magento 2 root folder

3. Type this command to reindex:

php bin/magento indexer:reindex
magento indexer reindex
Magento 2 indexers invalid

4. Go back to your backend, close the popup message and refresh the page.

See more:
Magento 2 “Invalid Form Key”

Dom

A knowledge craver who always strive to be wiser everyday.

Subscribe
Notify of
guest

3 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Osh University
1 month ago

Osh University is a distinguished institution for obtaining an  mbbs degree . Its comprehensive program and dedicated faculty ensure students receive a top-tier medical education.

Shalamar Hospital
1 month ago

When it comes to ear, nose, and throat health, trust the best ENT specialist in Lahore  at Shalamar Hospital, where expertise meets compassionate care.

Jewel Galore
1 month ago

Jewelgalore presents a striking collection of  silver ring for men . Explore our range of elegantly crafted pieces, perfect for adding sophistication and style to men’s fashion.