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) »
  • Problem with Location API
Pages: [1]

Author Topic: Problem with Location API  (Read 1565 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
Problem with Location API
March 11, 2009, 09:04:57 am
 ???
I am developing an import script for a demo database, and I am getting errors with the Location API. The error is:

Notice: Undefined index: is_primary in C:\wamp\www\drupal-6.9\sites\all\modules\civicrm\api\v2\Location.php on line 199

I am going to dig into the Location API, but perhaps I am overseeing something obvious? Quite possible as I am a newby!!!
Any help is appreciated.

I have attached my PHP-function from which I access the API.
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: Problem with Location API
March 11, 2009, 09:10:21 am

this is fixed in 2.2

if you are starting development of a new site, we strongly encourage using 2.2 (avoids an upgrade later). The final release will be out by end of this week or early next week

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: Problem with Location API
March 11, 2009, 09:12:44 am
Thanks for the quick answer.....I will upgrade.
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) »
  • Problem with Location API

This forum was archived on 2017-11-26.