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) »
  • Error trying to run UpdateGreeting.php to fix Mailing Label issue
Pages: [1]

Author Topic: Error trying to run UpdateGreeting.php to fix Mailing Label issue  (Read 914 times)

matthewboh

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 2
Error trying to run UpdateGreeting.php to fix Mailing Label issue
November 05, 2011, 02:22:48 pm
I'm having a problem with mailing labels - a lot of people do not have their names on the Mailing Labels - so I found that I need to run UpdateGreeting.php in order to fix it.

Since I don't have the adressee preference set - I ran

Code: [Select]
http://<host root>/sites/all/modules/civicrm/bin/UpdateGreeting.php?name=<name>&pass=<pass>&key=<key>&ct=Individual&gt=postal_greeting&id=1&force=1
To force it to set to 1 - which is also the only default for that address option / individual.

Turned on backtrace and got this

Quote
backTrace

/var/www/lcfcadmin/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 296
/var/www/lcfcadmin/sites/all/modules/civicrm/CRM/Mailing/BAO/Mailing.php, fatal, 2044
/var/www/lcfcadmin/sites/all/modules/civicrm/bin/UpdateGreeting.php, getDetails, 161
/var/www/lcfcadmin/sites/all/modules/civicrm/bin/UpdateGreeting.php, updateGreeting, 218

Sorry. A non-recoverable error has occurred.
We experienced an unexpected error. Please post a detailed description and the backtrace on the CiviCRM forums: http://forum.civicrm.org/

Return to home page.

I checked the Mailing.php file at that line number, but am at a loss

Thanks
« Last Edit: November 05, 2011, 02:29:54 pm by matthewboh »

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: Error trying to run UpdateGreeting.php to fix Mailing Label issue
November 06, 2011, 09:55:34 am

can u just run it as:

Code: [Select]
http://<host root>/sites/all/modules/civicrm/bin/UpdateGreeting.php?name=<name>&pass=<pass>&key=<key>&ct=Individual&gt=postal_greeting

thanx

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

matthewboh

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 2
Re: Error trying to run UpdateGreeting.php to fix Mailing Label issue
November 06, 2011, 10:58:03 am
That worked! Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Error trying to run UpdateGreeting.php to fix Mailing Label issue

This forum was archived on 2017-11-26.