Fix the incompatibility issue with Magento 2.2.x

Created by Rosa Truong, Modified on Wed, 30 Sep, 2020 at 4:50 PM by Rosa Truong

Issue:


We using Magento 2 Configurable Product Grid Table View version 1.2.7 on our site M2.2.2 and then it's throwing error.

Error: Cannot instantiate interface magento/InventorySalesApi/Api/StockResolverInterface in vendor/magento/framwork/objectManager/Factory/AbstractFactory.php: 121

Please have a look. 


Solution:


The root of the issue is that our module has the code part which works with Inventory.

However, the Inventory does just work on Magento 2.3.x and above.

Thus, our module is not compatible with Magento 2.2.x at this time.

We have given the solution to make our module work on Magento 2.2.x as below.


Step 1: Edit two files => please check the attachments for details code

app/code/Bss/ConfiguableGridView/Helper/DataProcessor.php

app/code/Bss/ConfiguableGridView/Helper/HelperClass.php


Step 2: Replace the fixed files


Step 3: Flush the cache.


Please follow our guide to solve the issue.


If you have any issues, please feel free to contact uss.

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

Feedback sent

We appreciate your effort and will try to fix the article