How to Fix incompatible issue on M2.2.x?

Created by Support Agent, Modified on Tue, 21 Apr at 12:14 AM by Support Agent

QUESTION: 


I updated this module to version 1.2.8, while still working on M2 version 2.2.10 for this project.

  • During compilation, these errors occur:
    Errors during compilation: Bss\CustomerAttributes\Plugin\Integration\Model\Customer\DataProvider
    Extra parameters passed to parent construct: $fileUploaderDataResolver. File: /xxxx/xxxx/xxxx/xxxx/vendor/bsscommerce/customer-attributes/Plugin/Integration/Model/Customer/DataProvider.php
    Total Errors Count: 1
  • When opening a customer in the backend, an error appears isB2BRegistrationModuleEnabled() on null, with result that customers cannot be edited/saved

How to fix it?


ANSWER:


The error happened due to the fact that module version 1.2.8 is not compatible with M2.2.x.


To resolve this issue, please edit the file app/code/Bss/CustomerAttributes/Plugin/Integration/Model/Customer/DataProvider.php as below:


Or download the attached file below and overwrite the current file on your site.


If you have any other question or concern, please feel free to contact us. We'd be happy to support! 


Count on us! Here are some information about BSS Commerce if you might be interested:


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. 


Our Magento B2B Extension by BSS Commerce is a flagship, widely used global solution, providing an all-in-one system for pricing, account management, and efficient B2B workflows. 


>>> If you want to improve your visibility, install Magento SEO Extension by BSS Commerce

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