Skip to content
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

Magento 2.1.3 all products not displaying after upgrade from 2.1.2 #7968

Closed
adityag186 opened this issue Dec 27, 2016 · 16 comments
Closed

Magento 2.1.3 all products not displaying after upgrade from 2.1.2 #7968

adityag186 opened this issue Dec 27, 2016 · 16 comments
Assignees
Labels
bug report Component: Catalog Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@adityag186
Copy link

Preconditions

  1. MAgento 2.1.3
  2. Since website has been upgraded, products are not showing correctly.

Steps to reproduce

  1. Go to www.atlanticbooks.com.
  2. Select Subjects.
  3. Select Business Management.

Expected result

  1. 4706 products should be displayed

Actual result

  1. Only 500 products are being displayed
@grischunya
Copy link

I have the same error after reindex console.
If I add 1 new product it is added and displayed but after manual re-indexing - 500 products again

@perry3181
Copy link

perry3181 commented Dec 27, 2016

Same problem in 2.0.11 #7948

@ndsina
Copy link

ndsina commented Dec 28, 2016

Same problem 2.1.3EE.
After investigation found, that the 'selectsByRange' method(\Magento\Framework\DB\Adapter\Pdo\Mysql.php) works incorrectly.

@adityag186
Copy link
Author

Do you know the fix for the issue?

@ndsina
Copy link

ndsina commented Dec 28, 2016

I've just rewritten the 'isRangingNeeded' method(vendor/magento/module-catalog/Model/Indexer/Category/Product/AbstractAction.php) to return false, but it is temporary solution, I am looking for correct one.

@adityag186
Copy link
Author

Please update me if a permanent solution is released. Thanks.

@ndsina
Copy link

ndsina commented Dec 28, 2016

Ok

@perry3181
Copy link

perry3181 commented Dec 28, 2016

Hello @adityag186, I just go to your store, seems you already fixed the issue.
Could you let me know how to fix it? Thanks!

@lennartbee
Copy link

@ndsina Thanks, this works perfect for now

@perry3181
Copy link

@lennartbee, I also tried rewrite 'isRangingNeeded' method to return false. But it's not work for me.

@lennartbee
Copy link

@perry3181 is your magento crun running? Try reindexing manually also
php bin/magento indexer:reindex

@perry3181
Copy link

@lennartbee Yes, I tried rewrite and then reindex manually, but it still not work for me.
But I found that if any item changed to "Out of Stock", it will becomes visible in frontend category.

@refaelgold
Copy link

@ndsina you save my life! thanks!!!

@siment
Copy link

siment commented Jan 21, 2017

Duplicate: #8018

@shuaiZend
Copy link

@ndsina fixed,thank you for share.

@KrystynaKabannyk KrystynaKabannyk assigned antboiko and unassigned antboiko Feb 2, 2017
@xmav xmav self-assigned this Feb 6, 2017
@xmav xmav added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Feb 6, 2017
@xmav
Copy link
Contributor

xmav commented Feb 6, 2017

I’m closing this issue because it is a duplicate. Please reopen this issue as needed.
#8018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Catalog 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