Error after migrating customers

Hello
I migrate users from 1.7.0.2 to 2.4.3 and now when I click customer edit button, I receive this error:
1 exception(s):
Exception #0 (Magento\Framework\Exception\RuntimeException): Type Error occurred when creating object: Magento\Eav\Model\Entity\Attribute\Source\Config, Argument 1 passed to Magento\Eav\Model\Entity\Attribute\Source\Config::__construct() must be of the type array, null given, called in /var/www/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 122
How to fix this ?
Ari

3 answers

Profile photo of Mall Staff 171930.00 $tone November 14, 2021
Public

Hi there,

1 exception(s):
Exception #0 (Magento\Framework\Exception\RuntimeException): Type Error occurred when creating object: Magento\Eav\Model\Entity\Attribute\Source\Config, Argument 1 passed to Magento\Eav\Model\Entity\Attribute\Source\Config::__construct() must be of the type array, null given, called in

That issue is related to at least one customer attribute or customer address attribute, which has frontend input is ‘select’ or ‘multiselect type but it is missing source model PHP class (source_model).
You must debug to looking the exact attribute which raises that issue and then, you need to change frontend input of that attribute ‘frontend_input = text’ to get solved the issue.
If you still need further assistance, let’s provide me information about your instance:
+ Admin credentials and URL to the backend
+ SSH credentials and let me know the path to the M2 folder
+ phpMyadmin URL which can view your M2 database
I will help to check further and get back to you then.
Regards,
Mall.
 

#1
Profile photo of apelix 40.00 $tone November 14, 2021
Public

Hi
Thank you for you answer. I think I have been found that attribute. I will test it.
Another question: Is it possible limit customers import only for customers which are logged in recently ? Example logged in last three year and skip others ?
Regards,
Ari

#2
Profile photo of Mall Staff 171930.00 $tone November 15, 2021
Public

Hi Ari,

Another question: Is it possible limit customers import only for customers which are logged in recently ? Example logged in last three year and skip others ?

Yes, we can do it. But please make sure that the data records in the ‘log_customer’ table exist in your M1 database at the moment.

And to handle your requirement, I am afraid that it needs to append additional tweak code in step #6 of our module (And this needs additional customization fee since it is beyond the scope of our standard technical support). 
 
Regards,
Mall.
 

#3

Please login or Register to Submit Answer

Written By

Comments