Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 4.7.19
-
Fix Version/s: None
-
Component/s: Import
-
Labels:None
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
-
Verified?:No
Description
I did an import from CSV with two fields: "ContactID" and "Organization Name". The goal was to create a "Employer" relationship with existing contact IDs.
The importer threw PHP warnings "explode() expects string, received array" for each contact, referencing CRM/Contact/Import/Parser/Contact.php line 850. The relationships were not created.
As a temporary fix, I changed the line
$matchedIDs = explode(',', $relatedNewContact['error_message']['params']);
to
$matchedIDs = $relatedNewContact['error_message']['params'][0];
which solved the problem on my own site.