I have a strange, useless and a way funny error like Magento know how to do. When executing php bin/magento setup:di:compile:

Firebear\ImportExport\Model\Import\Address Incompatible argument type: Required type: \Magento\Customer\Model\ResourceModel\Address\Attribute\CollectionFactory. Actual type: \Magento\Customer\Model\ResourceModel\Address\CollectionFactory; File: /var/www/MyWebSite/magento/app/code/Firebear/ImportExport/Model/Import/Address.php

Total Errors Count: 1

In Log.php line 92: Error during compilation

For me this error looks like :
Magento: "I want CollectionFactory"
Firebear import export extension : "ok I give you CollectionFactory"
Magento: "nope error"
So if someone sees something else please tell me, it would be really useful for me.
PS: in case of Minus please let me know why so that I can improve my post.

  • pass attribute collectionFactory instead of Address CollectionFactory. – Ronak Chauhan Sep 2 '19 at 14:36
  • but then I should override the extension ? because in my extension file both are passed : \Magento\Customer\Model\ResourceModel\Address\CollectionFactory $addressColFactory, \Magento\Customer\Model\ResourceModel\Address\Attribute\CollectionFactory $attributesFactory, – SylwekFr Sep 2 '19 at 14:50

The solution was to update the FireBear extension

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.