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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Addresses replaced by "," in contact view and tokens after 4.0 > 4.1.5 upgrade
Pages: [1]

Author Topic: Addresses replaced by "," in contact view and tokens after 4.0 > 4.1.5 upgrade  (Read 597 times)

oldgray

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: drupal 7.15
  • MySQL version: 5.1.63-0+squeeze1
  • PHP version: PHP 5.3.3-7+squeeze14
Addresses replaced by "," in contact view and tokens after 4.0 > 4.1.5 upgrade
August 15, 2012, 12:50:17 pm
The domain.address token is being output as a single comma (=20) in civimail footers.

Update: Addresses are also missing from individual contact record screens, although you can see them on the contact edit screen and in the global contact listing.

There are undefined index errors relating to some mail/token code:

"Notice: Undefined index: 1 in CRM_Mailing_Form_Test->buildQuickForm() (line 187 of /sites/all/modules/civicrm/CRM/Mailing/Form/Test.php"

also "Notice: Undefined index: 1 in CRM_Mailing_Page_Preview->run() (line 104"

There are also some error messages of a similar variety relating to the contact records.

« Last Edit: August 16, 2012, 05:15:55 am by oldgray »

oldgray

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: drupal 7.15
  • MySQL version: 5.1.63-0+squeeze1
  • PHP version: PHP 5.3.3-7+squeeze14
Re: Addresses replaced by "," in contact view and tokens after 4.0 > 4.1.5 upgrade
August 16, 2012, 10:19:22 am
$formatted = preg_replace("/{([^{}]*)\b{$token}\b([^{}]*)}/u", "\${1}$value\${2}", $formatted);


in CRM/Utils/address.php is merely spitting the tokens back out instead of substituting their values.

oldgray

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: drupal 7.15
  • MySQL version: 5.1.63-0+squeeze1
  • PHP version: PHP 5.3.3-7+squeeze14
Re: Addresses replaced by "," in contact view and tokens after 4.0 > 4.1.5 upgrade
August 16, 2012, 10:29:26 am
ah they had the address tokens in civicrm/admin/setting/preferences/address?reset=1

in the old format. they ahd been updated everywhere else.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Addresses replaced by "," in contact view and tokens after 4.0 > 4.1.5 upgrade

This forum was archived on 2017-11-26.