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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Array to string conversion when using REST API to create contact
Pages: [1]

Author Topic: Array to string conversion when using REST API to create contact  (Read 716 times)

rshun

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 7.21
  • MySQL version: 5.5
  • PHP version: 5.4
Array to string conversion when using REST API to create contact
January 21, 2013, 09:20:15 am
Hi,

  I have no idea why I got Array to string conversion when I try to use REST API to create contact.  But I can create contact in civicrm successfully.

Notice: Array to string conversion in C:\xampp\htdocs\drupalchinese\sites\all\modules\civicrm\CRM\Utils\Address.php on line 208

Notice: Array to string conversion in C:\xampp\htdocs\drupalchinese\sites\all\modules\civicrm\CRM\Utils\Address.php on line 208
{ "is_error":0, "undefined_fields":["contact_type","first_name","last_name","email","display_name"], "version":3, "count":1, "id":38, "values":[{ "id":38, "contact_type":"Individual", "contact_sub_type":"null", "do_not_email":null, "do_not_phone":null, "do_not_mail":null, "do_not_sms":null, "do_not_trade":null, "is_opt_out":null, "legal_identifier":null, "external_identifier":null, "sort_name":"S, R", "display_name":"R S", "nick_name":null, "legal_name":null, "image_URL":null, "preferred_communication_method":null, "preferred_language":"en_CA", "preferred_mail_format":null, "hash":"9ae3077751c5f4ab6fa32f09e5d2ae0e", "api_key":null, "first_name":"R", "middle_name":null, "last_name":"S", "prefix_id":null, "suffix_id":null, "email_greeting_id":"1", "email_greeting_custom":null, "email_greeting_display":null, "postal_greeting_id":"1", "postal_greeting_custom":null, "postal_greeting_display":null, "addressee_id":"1", "addressee_custom":null, "addressee_display":null, "job_title":null, "gender_id":null, "birth_date":null, "is_deceased":null, "deceased_date":null, "household_name":null, "primary_contact_id":null, "organization_name":null, "sic_code":null, "user_unique_id":null }] }

Thanks,

R

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Array to string conversion when using REST API to create contact

This forum was archived on 2017-11-26.