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) »
  • Notice on contact types in API Contact
Pages: [1]

Author Topic: Notice on contact types in API Contact  (Read 1209 times)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Notice on contact types in API Contact
October 19, 2009, 08:38:50 am
I use a number of API's to load households into CiviCRM (civicrm_contact_add, civicrm_location_add, civicrm_contact_group_add) and using these I get a notice from the Contact function in BAO:
Quote
Notice: Undefined index: contact_type in C:\wamp\www\speeltuin\sites\all\modules\civicrm\CRM\Contact\BAO\Contact.php on line 424
This also occurs for line 428 and 432. Any ideas before I start digging? Much appreciated..........!
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

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: Notice on contact types in API Contact
October 19, 2009, 08:53:29 am

fixed for 3.0.2

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

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Notice on contact types in API Contact
October 19, 2009, 08:55:01 am
Thanks! Am I correct in assuming that there is no major impact apart from the notice?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

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: Notice on contact types in API Contact
October 19, 2009, 08:57:13 am

in most cases yes. But we do consider it a bug and like to fix / clean it :)

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

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Notice on contact types in API Contact
October 19, 2009, 09:03:46 am
I agree! I am just trying to decide whether to upgrade before my upcoming session on Thursday and not show them the result of the interface, or show them the interface and than upgrade later. The advantage of the latter is user enthusiasm and faith in the project  :)
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Notice on contact types in API Contact

This forum was archived on 2017-11-26.