Missing model variable in the construct function (M2.3.2, module v1.1.4)?

Created by Jane D, Modified on Mon, 25 May 2020 at 04:45 PM by Jane D


I use Magento 2.3.2 and the module v1.1.4. When I use: php bin/magento setup:di:compile

I see the error as below:
Incompatible argument type: Required type: \Magento\Framework\DB\Adapter\AdapterInterface. Actual type: string; File:

Incompatible argument type: Required type: \Magento\Framework\DB\Adapter\AdapterInterface. Actual type: string; File:

Total Errors Count: 2

Please help me to fix it!


The issue you have encountered with due to the fact that it is missing the variable model in the construct function.

To solve the error, please download the attached file below and overwrite the current file on your site. 

The files changed as below: 



If there is any other question or concern, please feel free to leave us a message via https://bsscommerce.com/contact

We'd be happy to support!

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
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article