M2.4.3, v1.1.4: Not work with MSI disabled

Created by Esther Nguyen, Modified on Tue, 21 Apr at 11:54 PM by Support Agent

ISSUE:

In the backend, we get the following error message when you want to look at the product list also under BACKEND > CATALOG > PRODUCTS:


Fatal error: Uncaught Error: Cannot instantiate interface Magento\InventoryApi\Api\SourceRepositoryInterface in /html/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50 Stack trace: #0 /html/magento2/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Invento...') #1 /html/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(167): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Invento...') #2 /html/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(273): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Invento...', NULL, 'sourceRepositor...', 'Bss\\ProductGrid...') #3 /html/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(236): Magento\Framework\ObjectManager\Factory\AbstractFactory->getResolvedArgument('Bss\\ProductGrid...', Array, Array) #4 /html/magento2/vendor/magento/framewor in /html/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 50 


Unfortunately, we come to the conclusion that we don't want to/can't use the magento_inventory extension.


SOLUTION:


Our module has not worked properly with the site disabling MSI yet.


To resolve the issue, please download the file app/code/Bss/ProductGridInlineEditor/Block/Adminhtml/InlineEditor.php attached below to override the current file on your site.


If you need any further assistance, please feel free to contact usAs a trusted Magento 2 extensions provider with 14+ years of experience, serving 75,000+ customers worldwide, we specialize in developing 150+ high-quality Magento 2 extensions that enhance functionality, improve user experience, and support scalable growth. Our reputation is built on long-term partnerships, positive feedback, and proven performance-driven solutions.


Explore our extensions here in: https://bsscommerce.com/magento-2-extensions.html

Discover our top tier plugins:




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 at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article