magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Magento 2.1.3 all products not displaying after upgrade from 2.1.2

Open adityag186 opened this issue 9 years ago • 16 comments

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

adityag186 avatar Dec 27 '16 12:12 adityag186

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

grischunya avatar Dec 27 '16 12:12 grischunya

Same problem in 2.0.11 #7948

perry3181 avatar Dec 27 '16 16:12 perry3181

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

ndsina avatar Dec 28 '16 07:12 ndsina

Do you know the fix for the issue?

adityag186 avatar Dec 28 '16 10:12 adityag186

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.

ndsina avatar Dec 28 '16 10:12 ndsina

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

adityag186 avatar Dec 28 '16 10:12 adityag186

Ok

ndsina avatar Dec 28 '16 10:12 ndsina

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

perry3181 avatar Dec 28 '16 13:12 perry3181

@ndsina Thanks, this works perfect for now

lennartbee avatar Jan 04 '17 12:01 lennartbee

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

perry3181 avatar Jan 05 '17 08:01 perry3181

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

lennartbee avatar Jan 05 '17 08:01 lennartbee

@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.

perry3181 avatar Jan 05 '17 08:01 perry3181

@ndsina you save my life! thanks!!!

refaelgold avatar Jan 11 '17 09:01 refaelgold

Duplicate: #8018

siment avatar Jan 21 '17 15:01 siment

@ndsina fixed,thank you for share.

shuaiZend avatar Jan 23 '17 06:01 shuaiZend

I’m closing this issue because it is a duplicate. Please reopen this issue as needed. https://github.com/magento/magento2/issues/8018

xmav avatar Feb 06 '17 14:02 xmav