Fix the issue The stock item with the \"...\" ID wasn't found after upgrading Magento

Created by Rosa Truong, Modified on Tue, 20 Apr 2021 at 02:05 PM by Rosa Truong

Issue: I upgraded my Magento version from 2.3.1 to 2.3.6. Everything is good except for the BSS Product Stock Alert module. I tried updating the module but the error still shows. The error breaks the website. A report ID is generated on the website.

 

Solution: 

The issue is caused due to that product_id is not the same with item_id after upgrading the Magento version, so when using the stockItemRepository->get(), the issue happens.

To solve it, we have modified this file app/code/Bss/ProductStockAlert/Model/Observer/ApplyProductAlertOnCollectionAfterLoadObserver.php

Please check and apply the hot-fix on the site.


If you need any further assistance, please feel free to contact us.

We're more than happy to support you.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article