Magento 2.1.3 all products not displaying after upgrade from 2.1.2
Preconditions
- MAgento 2.1.3
- Since website has been upgraded, products are not showing correctly.
Steps to reproduce
- Go to www.atlanticbooks.com.
- Select Subjects.
- Select Business Management.
Expected result
- 4706 products should be displayed
Actual result
- Only 500 products are being displayed
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
Same problem in 2.0.11 #7948
Same problem 2.1.3EE. After investigation found, that the 'selectsByRange' method(\Magento\Framework\DB\Adapter\Pdo\Mysql.php) works incorrectly.
Do you know the fix for the issue?
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.
Please update me if a permanent solution is released. Thanks.
Ok
Hello @adityag186, I just go to your store, seems you already fixed the issue. Could you let me know how to fix it? Thanks!
@ndsina Thanks, this works perfect for now
@lennartbee, I also tried rewrite 'isRangingNeeded' method to return false. But it's not work for me.
@perry3181 is your magento crun running? Try reindexing manually also
php bin/magento indexer:reindex
@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.
@ndsina you save my life! thanks!!!
Duplicate: #8018
@ndsina fixed,thank you for share.
I’m closing this issue because it is a duplicate. Please reopen this issue as needed. https://github.com/magento/magento2/issues/8018