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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Using Import Participants Feature, error report shows only "Array" as reason
Pages: [1]

Author Topic: Using Import Participants Feature, error report shows only "Array" as reason  (Read 1596 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Using Import Participants Feature, error report shows only "Array" as reason
February 15, 2012, 12:05:13 am
Hey there, using the Import Participants feature, things seem ok but then all my rows are rejected.  The reason for the rejection (attached file) is simply "Array".

What does this mean?  (searches on the forums turn up no clues)

I am importing standard participant fields and a single participant level custom field in 4.0.8.  Not importing the custom field doesn't solve the problem.

Please let me know if you have ideas.  Thanks!

I'm getting the following warnings in PHP (no fatal errors though):
Quote
Warning: Invalid argument supplied for foreach() in CRM_Event_Import_Parser::exportCSV() (line 668 of /sites/all/modules/civicrm/CRM/Event/Import/Parser.php).
Notice: Array to string conversion in CRM_Event_Import_Parser::exportCSV() (line 678 of /sites/all/modules/civicrm/CRM/Event/Import/Parser.php).
Notice: Undefined index: contact_type in _civicrm_add_formatted_param() (line 353 of /sites/all/modules/civicrm/api/v2/utils.v2.php).
Notice: Undefined variable: disp in CRM_Event_Import_Parser_Participant->import() (line 429 of /sites/all/modules/civicrm/CRM/Event/Import/Parser/Participant.php).
« Last Edit: February 15, 2012, 12:10:28 am by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Using Import Participants Feature, error report shows only "Array" as reason
February 15, 2012, 01:11:28 am
Which version are you using? Reminds me an old bug that has been fixed (or that I haven't experienced recently)
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Using Import Participants Feature, error report shows only "Array" as reason
February 15, 2012, 07:32:55 am
Thanks.  As I mentioned in my post, 4.0.8
Try CiviTeacher: the online video tutorial CiviCRM learning library.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Using Import Participants Feature, error report shows only "Array" as reason
February 15, 2012, 01:40:20 pm
Damn! sorry was sure we got rid of the api v2 calls before 4.0.8.

Could you print_r the variable on line 678 of /sites/all/modules/civicrm/CRM/Event/Import/Parser.php ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Using Import Participants Feature, error report shows only "Array" as reason
February 15, 2012, 03:46:54 pm
v2 was eiliminated (almost entirely) for 4.1 rather than 4.0
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Using Import Participants Feature, error report shows only "Array" as reason
February 15, 2012, 03:59:34 pm
Yeap, now that you mention it, do recall the branch ;)
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Using Import Participants Feature, error report shows only "Array" as reason
February 15, 2012, 11:09:00 pm
Ok, well I'm keen to get this fixed fast.  It seems I cannot import participants, and that is a blocker for my project.  Will pay/donate to have this resolved for 4.0.8 by someone who knows more about the import code than me.  If necessary I'll upgrade to 4.1.0, if you think that's a fix.  I'll me on IRC in the morning to discuss. thanks.

Try CiviTeacher: the online video tutorial CiviCRM learning library.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Using Import Participants Feature, error report shows only "Array" as reason
February 16, 2012, 09:11:34 am

hey stoob:

can u reproduce this on the 4.1 branch and we'll take it from there

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Using Import Participants Feature, error report shows only "Array" as reason
February 16, 2012, 09:22:09 am
I can't reproduce on the D7/4.1 sandbox.  So I guess I'll just upgrade the site to 4.1 prior to my import.  I'm a little nervous of being exposed to other critical bugs that may be lurking in the new release, but I'll give it a try... thanks!
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Using Import Participants Feature, error report shows only "Array" as reason

This forum was archived on 2017-11-26.