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

Created by Rosa Truong, Modified on Mon, 14 Dec, 2020 at 2:24 PM by Rosa Truong

Issue: 


We're getting the below error when installing the module on M2.2.10 and can't see anything in the updated knowledge base to cover this:

Fatal error: Interface 'Magento\Framework\View\Element\ComponentVisibilityInterface' not found in /var/www/magento2/app/code/Bss/CompanyAccount/Ui/Component/Customer/Form/ManageSubUserFieldSet.php on line 29
Fatal error: Interface 'Magento\Framework\App\Action\HttpPostActionInterface' not found in /var/www/magento2/app/code/Bss/CompanyAccount/Controller/Adminhtml/Customer/Role/Delete.php on line 34


Solution:

The root of the issue is that our module is not compatible with Magento 2.2.x at this time.

To solve this issue, please check and follow our guide below

- Step 1: Edit these files

CompanyAccount/Controller/Adminhtml/Customer/Role/Delete.php

CompanyAccount/Controller/Adminhtml/Customer/Role/MassDelete.php

CompanyAccount/Controller/Adminhtml/Customer/Role/Save.php

CompanyAccount/Controller/Adminhtml/Customer/SubUser/Delete.php

CompanyAccount/Controller/Adminhtml/Customer/SubUser/MassDelete.php

CompanyAccount/Controller/Adminhtml/Customer/SubUser/ResetPassword.php

CompanyAccount/Controller/Role/FormPost.php

CompanyAccount/Controller/SubUser/FormPost.php

CompanyAccount/Controller/SubUser/ResetPassword.php

CompanyAccount/Controller/SubUser/ResetPasswordPost.php

CompanyAccount/Ui/Component/Customer/Form/ManageRoleFieldSet.php

CompanyAccount/Ui/Component/Customer/Form/ManageSubUserFieldSet.php

CompanyAccount/view/adminhtml/requirejs-config.js

CompanyAccount/view/adminhtml/ui_component/customer_form.xml


Step 2: Add two new files

CompanyAccount/view/adminhtml/web/js/form/components/tab_group.js

CompanyAccount/view/adminhtml/web/js/modal/modal-component.js


Please check and apply these files on the site.


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

We'd like 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