• Register
0 votes

Problem :

I am new to the Magento. When I try to install the Magento to Localhost it gives me below Error-

One or more indexers are invalid. Make sure your Magento cron job is running.

I have also tried the following to re index a Indexer

php bin/magento indexer:reindex

I did not find any help from above command.

Why is above Error happening? How can I fix the above error?

7 5 2
3,870 points

Please log in or register to answer this question.

2 Answers

0 votes

Solution :

I had also faced a similar issue in a recent past. I did lot of research on it and found a solution on it. This is a very common problem with a people getting started.

You need to open magento folder and hold shift +right click ->use command window here and then write as below:

php bin/magento indexer:reindex

And hit the enter wait for some time to process


To reindex in the Magento 2, go to a CLI and then to the root folder of your Magento installation and just run the below command :

php bin/magento indexer:reindex


You have to reindex all of the indexes using below cmd command.

php bin/magento indexer:reindex

Above one is not the error, whenever you install the magento it requires to build the indexes.

9 7 4
38,600 points
0 votes

This error message is mostly displayed on the Magento Admin panel when the data is not indexed properly. Troubleshooting for this error is simple. The error itself gives you hints on how to address this issue.


Indexing can be defined as How Magento transforms your data such as categories, products, and catalogs. The indexing is performed to improve the performance of your storefront.

Reindex data:

The data reindexing can be easily performed on your Magento admin panel.

  • Login to your admin panel as Administrator.
  • Navigate to system > Index management.
  • To update only one index, click on the Reindex data link in the Action column to the right. To update more than one index, select the checkbox next to its name. From the action list, click on Reindex data and then click on submit.
  • Please wait until the re-index is completed.

Set a cron job:

The user can set a cron job to reindex the data automatically. The cron job can be set by two methods;

  • cPanel
  • Command Line

Via cPanel:

  • Login to cPanel.
  • Click on the cron job, under the Advanced tab group.
  • If you have already created a cron job, you can edit it or can create a new job.
  • Select the frequency to run the cron job.
  • Write the following command to reindex your data;
  • $ php-cli /home/username/public_html/sub_folder_if_any/bin/magento      indexer:reindex

Save it as per schedule frequency. Now the cron job will run.

11 5 2
3,890 points

Related questions

0 votes
1 answer 8 views
Problem: I get error like this: There has been an error processing your request Exception printing is disabled by default for security reasons. Error log record number: 673618173351
asked Mar 19 ummesalma 22.9k points
0 votes
2 answers 312 views
Problem : I have just upgrade from Magento (form key disabled) to the Now I cannot login to a backend. My error message is 'You did not sign in correctly or your account is temporarily disabled.' I tried to reset my cookie domain, ... are many posts that are concerning magento 2, but far less talking about the magento 1. Does someone with magento 1 had and solved above issue?
asked Jan 18, 2020 jwilliam 3.9k points
0 votes
1 answer 3 views
Problem : Someone help me to fix this Please on > 'magento invalid form key please refresh the page' ?
asked Mar 17 sadi1982 36.3k points
0 votes
1 answer 2 views
Problem: Can anyone suggest a solution,"how to list cron jobs in linux?"
asked 1 day ago Humaira ahmed 8.1k points
1 vote
1 answer 437 views
Problem: I have elementary knowledge on Cron and Jenkins. I had refered online tutorials to understand Cron and Jenkins. I am currently trying to use the dedicated Amazon Ubuntu ec2 instance as my Cron server. It is executing the 16 cron jobs at the different time intervals ... & the Live environments. Is it possible to add these Cron jobs as the external jobs in my jenkins and then monitor them?
asked Jun 13, 2020 Martin K 6.6k points
0 votes
1 answer 6 views
Problem: What are my options for dealing with this issue “Exception printing is disabled by default for security reasons. magento 2”?
asked Mar 29 tuhin1 47.2k points
0 votes
2 answers 4 views
PROBLEM : Please help me on > 'magento exception printing is disabled by default for security reasons' ?
asked Mar 17 Samiur1 38.4k points
0 votes
1 answer 27 views
Problem: Please help me to find out the solution of it ... The process class relies on proc_open, which is not available on your php installation.
asked Apr 1 Ifra 24.4k points
0 votes
1 answer 169 views
Problem: I have very recently downloaded the Graphviz 2.38 MSI version then installed it under folder C:\Python34. Next step I ran pip install Graphviz everything went well. In my system's path I have also added C:\Python34\bin. When I tried to run my ... I also tried to uninstall my Graphviz and did pip uninstall graphviz then tried reinstalling it and pip install again still nothing is working.
asked Aug 28, 2020 Raphael Pacheco 4.9k points
1 vote
1 answer 43 views
Problem: I have gained fundamental knowledge on PHP programming after going through online tutorials. Now I am trying to debug the issue related with WP_cron() so I have tried to write the very short app to list the cron() tasks which are pending as shown below. <? php ... -wp-cron-test.php on line 12 Is there anything basic which I am missing about the building of a very simple plugin in PHP?
asked May 30, 2020 Martin K 6.6k points