Magento2: Magento 2.1.3 all products not displaying after upgrade from 2.1.2

Created on 27 Dec 2016  路  16Comments  路  Source: magento/magento2


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
Catalog Ready for Work bug report

Most helpful comment

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.

All 16 comments

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(MagentoFrameworkDBAdapterPdoMysql.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鈥檓 closing this issue because it is a duplicate. Please reopen this issue as needed.
https://github.com/magento/magento2/issues/8018

Was this page helpful?
0 / 5 - 0 ratings