CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Invalid value for custom field ''
Pages: [1]

Author Topic: Invalid value for custom field ''  (Read 882 times)

Erich

  • I post occasionally
  • **
  • Posts: 84
  • Karma: 1
Invalid value for custom field ''
May 07, 2013, 08:45:11 pm
I recently upgraded an empty copy of my site to Joomla 2.5.11 and CiviCRM 4.3.1; both upgrades said they completed successfully.

I then tried to import contacts into this upgraded copy, using a csv file that I had previously used successfully tp populate my production database (which had been running older versions of both Joomla and CiviCRM).

However, instead of importing my contacts, I am getting the subject reason in my downloaded "errors" csv file for every single record in the file :-(

Since I was trying to import records into an empty CiviCRM database, I had specified "no duplicate checking" on the first page of the import dialog.  I was able to capture and browse a page of the civicrm_import_job_NNNNN table, and of course all of the fields and field values looked ok, so I have no idea (because of the null string) which custom field might be causing the problem.

So, I tried importing the records again, but this time I specified "do not import" for all of my custom fields except one.  The import worked.

Finally, I tried importing the records again (this time, with all custom fields included), and "Fill" (instead of "no duplicate checking") specified on the first page of the import dialog -- and the one successfully-imported custom field specified as the dedupe rule.  The import failed with the following message:

Fatal error: Cannot use string offset as an array in <site home directory>/administrator/components/com_civicrm/civicrm/CRM/Import/Parser/Contact.php on line 1047

This line reads as follows:
$contactID = $newContact['error_message']['params'][0];

Any ideas?

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Invalid value for custom field ''
May 08, 2013, 11:00:10 am
This sounds like a bug in the importer.  Not sure how easy it will be for you to do, but if you were able to replicate this on the demo site, it would help people work out the problem and suggest a fix
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Invalid value for custom field ''
July 01, 2013, 06:08:01 pm
Exact same error during import.
Fatal error: Cannot use string offset as an array in /home/xxxx/public_html/drupal/sites/all/modules/civicrm/CRM/Import/Parser/Contact.php on line 1047

In logs:
Location   https://xxxx.com/civicrm/import/contact
Referrer   https://xxxx.com/civicrm/import/contact?_qf_MapField_display=true&qfKey=8ceeb543bbdf24e47b0bbb8341ccbadd_2097
Message   Notice: Undefined offset: 0 in buildQuickForm() (line 597 of /home/xxxx/public_html/drupal/sites/all/modules/civicrm/CRM/Import/Form/MapField.php).

No backtrace generated.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Invalid value for custom field ''

This forum was archived on 2017-11-26.