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 (Moderator: Dave Greenberg) »
  • Passing the site key to the Geocoding batch update script UpdateAddress.php
Pages: [1]

Author Topic: Passing the site key to the Geocoding batch update script UpdateAddress.php  (Read 2682 times)

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Passing the site key to the Geocoding batch update script UpdateAddress.php
March 12, 2009, 01:57:10 pm
I was looking at this http://wiki.civicrm.org/confluence/display/CRMDOC/Command-line+script+configuration and was trying to figure out how to pass the site key. If you run UpdateAddress.php from a URL it gives an error "Console_Getopt: Could not read cmd args", so I ran it as a shell script but it doesn't recognize the key parameter.

Does anyone know how to pass the key parameter to this script?

Thanks

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: Passing the site key to the Geocoding batch update script UpdateAddress.php
March 12, 2009, 02:00:58 pm

argh, we've not updated that script in some time. Wanna file an issue and i'll update it later tonite

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

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Passing the site key to the Geocoding batch update script UpdateAddress.php
March 12, 2009, 02:14:10 pm
Thanks. Will do.

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: Passing the site key to the Geocoding batch update script UpdateAddress.php
May 05, 2009, 05:55:39 am
I found this post useful for generating and adding a site key to the settings file

http://wiki.civicrm.org/confluence/display/CRMDOC/Command-line+Script+Configuration

Then the URL is as given:

AddressUpdate?user=<username>&pass=<pass>&key=<site_key>

Hope that makes sense... though it still hasn't quite had the effect I was hoping for!

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Passing the site key to the Geocoding batch update script UpdateAddress.php
May 05, 2009, 06:48:18 pm
Hi,
Can't tell if you're looking for help or are offering it? If the latter, thanks but after Lobo updated the script I was able to run it from the command line fine, and I think for whatever reason it doesn't work via URL.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Passing the site key to the Geocoding batch update script UpdateAddress.php

This forum was archived on 2017-11-26.