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) »
  • Map problem with import, but not with manual entry of contact
Pages: [1]

Author Topic: Map problem with import, but not with manual entry of contact  (Read 3123 times)

hemenm

  • Guest
Map problem with import, but not with manual entry of contact
May 02, 2007, 12:22:53 pm
I am running the newest version of Drupal and civiCRM, on a linux box, with mySQL5 and php5 with Apache.

When I add a contact to the CRM and enter all the info (name, address, phone…etc…) I am able to click on “Map this address”, but when I import a list of contacts, the link does not appear, but if I were to click on “edit” and then click “save” (with no changes made to the contact’s information) the link appears and displays the correct google map for the address. 

Is anyone else having this problem, and how do I fix it?

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: Map problem with import, but not with manual entry of contact
May 02, 2007, 04:36:43 pm

hemenm:

Quite a few folks were having issues with import speed and geocoding. We made a decision to avoid geocoding during import (which in retrospect was not a good decision). Hence you are seeing the above behavior. We will fix this for 1.8 and potentially make this an option during import and/or have a batch script which will geocode all "un-geocoded" locations in the DB.

If you'd like to enable this, u can edit

CRM/Import/Parser/Contact.php

and change line 444 (approx) FROM

            $newContact = crm_create_contact_formatted( $formatted, $onDuplicate, false );

TO

           $newContact = crm_create_contact_formatted( $formatted, $onDuplicate, true );

alternatively, u can write the batch update script and contribute it back :)

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Map problem with import, but not with manual entry of contact

This forum was archived on 2017-11-26.