Skip to content

Installation with Sample Data Removes Products from Category Pages on Initial Reindex #2722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
techgh0st opened this issue Dec 15, 2015 · 4 comments
Assignees
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@techgh0st
Copy link

After installation of Magento 2 Enterprise Edition for a client with sample data, reindexed via the CLI tool as shown:

php bin/magento indexer:reindex
Customer Grid index has been rebuilt successfully in 00:00:00
Category Products index has been rebuilt successfully in 00:00:00
Product Categories index has been rebuilt successfully in 00:00:00
Product Price index has been rebuilt successfully in 00:00:00
Product EAV index has been rebuilt successfully in 00:00:00
Catalog Search index has been rebuilt successfully in 00:00:00
Stock index has been rebuilt successfully in 00:00:00
Catalog Rule Product index has been rebuilt successfully in 00:00:01
Catalog Product Rule index has been rebuilt successfully in 00:00:00
Product/Target Rule index has been rebuilt successfully in 00:00:00
Target Rule/Product index has been rebuilt successfully in 00:00:00

Then cleared the cache by doing the following:

php bin/magento cache:clean
php bin/magento cache:flush

No issues were reported however all products stopped showing in their respective categories. The only fix I found for the issue was to re-save products in the backend to have them show correctly:

  1. Products -> Catalog
  2. Remove all filters so that every product is showing.
  3. On the table, select the drop down and choose: Select All
  4. The table updates to show: 2048 records found (2048 selected)
  5. Under the Actions drop down, select :Change Status -> Enable

Once this was done, all products started to show on the frontend even after further re-indexing.

@ghost
Copy link

ghost commented Dec 15, 2015

I have never seen this. Why did you reindex after installing sample data? Was crontab set up? Did you see any other errors?

@techgh0st
Copy link
Author

  1. Sample data was included with the package itself. This was not a magento installation that later installed sample data on it, but rather it is the Magento 2.0 package with the sample data installation that the client provided as it is the enterprise edition and not the community edition.
  2. Reindexing was done as the client claimed that all products stopped showing after they attempted to add a product. By default, the indexing is set to Update on Save and shortly after, no products were showing. This is when I decided to re-trace the installation, did nothing after the install other than reindex via the magento script as shown above, and resulted in the issue reported.
  3. No errors were reported by the magento installation on the issue. Just that no products were visible after the installation of Magento 2 Enterprise Edition with Sample Data package and the fix was to re-save all products.
  4. The cron tasks were indeed configured in the crontab.

@voleye
Copy link

voleye commented Mar 11, 2016

@techgh0st Thank you for your report. We have created a ticket "MAGETWO-50395" to track the progress of this issue.

@vzabaznov vzabaznov added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report labels Mar 12, 2016
@yaronish
Copy link

@techgh0st Currently we can't reproduce this bug neither for Magento 2 EE 2.0.4 nor Magento 2 EE develop branch. I'm going to close this issue but feel free to add some information or report if problem exists for you with latest released version.
Thanks.

magento-engcom-team pushed a commit that referenced this issue Jun 20, 2018
magento-engcom-team pushed a commit that referenced this issue Aug 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

5 participants