Wrong custom type passed [image] to Am_CustomField::create

Facing problem when importing the members from amember3 to amember4, Actually customized the image field in amember3 but when we import member records then page broken and stop process.
showing error when doing import (admin-import3 ) as below:

Wrong custom type passed [image] to Am_CustomField::create

Solution:
As can see that field just holds url of Image so this can be imported as regular text field.
Add this code to the bottom of /amember/library/Am/Record/WithData.php:

class Am_CustomFieldImage extends Am_CustomFieldText
 {
 }

This should help.

Leave a Reply