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.
Get to know us
BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.
Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.
Discover our extensions: https://bsscommerce.com/magento-2-extensions.html
Here are our most powerful plugins:
- BSS Commerce’s Magento 2 B2B Extension enhances B2B performance with streamlined workflows and tailored pricing strategies.
- BSS Commerce’s Magento 2 SEO Extension improves rankings and maximizes organic growth through advanced SEO automation.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article