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) »
  • Issues with UpdateGreeting.php in 4.0.5
Pages: [1]

Author Topic: Issues with UpdateGreeting.php in 4.0.5  (Read 450 times)

damaxl

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
  • CiviCRM version: 4.1.2 DE
  • CMS version: Drupal 7.12 / 7.14
  • MySQL version: 14.12
  • PHP version: 5.2.6
Issues with UpdateGreeting.php in 4.0.5
March 09, 2012, 12:08:26 pm
Today we tried to update the address data for contacts. UpdateGreeting.php should do this job, but unfortunately we had to give in, because nothing was changed at all.

Issue #1
In UpdateGreeting.php the line require_once '../civicrm.config.php'; in function initialize( ) had to be changed to require_once '<drupal root>/sites/default/civicrm.settings.php'; because the name of the referenced file and the relative path were wrong. CiviCRM's installation directory is <drupal root>/sites/default/modules/civicrm

Issue #2
There is a description how to use UpdateGreeting.php in the wiki page
http://wiki.civicrm.org/confluence/display/CRMDOC40/Update+Greetings+and+Address+Data+for+Contacts
The example (green box) doesn't work because the '>' has to be left off and the url to UpdateGreeting.php has to be set in double quotes (correct syntax see below).

Issue #3
Starting UpdateGreeting.php without parameter id causes an error Incorrect greeting value id .

Issue #4
When trying to update the field postal greeting with the command ...
curl "http: //localhost/drupal/sites/default/modules/civicrm/bin/UpdateGreeting.php?name=myadmin&pass=mypass&key=1234567890&ct=Individual&gt=email_greeting&id=6"
... two blank lines appear, followed by a message Greeting is updated for contact(s). (Done).. id=6 i a new postal greeting option in Administer >> Option Lists >> Postal Greetings.

But looking at contacts nothing changed.

Now the question is, did we do something wrong or doesn't UpdateGreeting.php do what it should do?

CiviCRM 4.0.5 / Drupal 4.8 / Debian Lenny / PHP PHP 5.2.6 / MySQL 14.12


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Issues with UpdateGreeting.php in 4.0.5

This forum was archived on 2017-11-26.