0

All products are disappeared on the frontend. All show up again after reindex all

php bin/magento indexer:reindex

After a few hours later, all products are disappeared again on categories and search results.

I did 'bin/magento cron:install'

It looks cronjob is working

enter image description here

Magento 2.4.2

5
  • where you face this issue in local system or live server?
    – ZealousWeb
    Commented Mar 8, 2021 at 5:57
  • I can confirm this issue, seeing the exact same thing after upgrading from 2.4.1 to 2.4.2.
    – Aknot
    Commented Mar 8, 2021 at 10:36
  • @yohan have you faced this issue in your local setup?
    – ZealousWeb
    Commented Mar 11, 2021 at 14:32
  • @ZealousWeb On live server. Could you help?
    – Yohan
    Commented Mar 14, 2021 at 2:57
  • @Alldo I have same issues in the previous version too 2.4.0 ~ 2.4.1. Have you solved?
    – Yohan
    Commented Mar 14, 2021 at 2:58

2 Answers 2

0

We solved this issue by increasing the PHP memory limit (memory_limit) in both your .user.ini files and php.ini to 2048M(memory_limit = 2048M).

1
  • I will test. Thanks!
    – Yohan
    Commented Mar 16, 2021 at 20:56
-1

you can set cron job for reindexing

/opt/cpanel/ea-php71/root/usr/bin/php /home/user/public_html/bin/magento setup:cron:run >> /home/user/public_html/var/log/setup.cron.log

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.