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 CiviMail (Moderator: Piotr Szotkowski) »
  • {domain.address} token possible bug?
Pages: [1]

Author Topic: {domain.address} token possible bug?  (Read 1476 times)

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
{domain.address} token possible bug?
January 16, 2008, 06:24:53 pm
The {domain.address} token in our CiviMail mailings is being rendered without the 'state_province' field showing. This did not occur under 1.7 before we upgraded. It does not seem to be related to the 'Administration > Global Settings > Address Settings' either; these show the {state_province} field.

Has anyone seen this before? Any ideas on the cause?

In my troubleshooting, I could not figure out where in the database the domain address information is stored. I searched every table for the domain's street address with no meaningful results. Can anyone tell me where the data entered in the 'Administration > Domain Information' page is stored?

Thanks,

Matt
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

twowheeler

  • I post occasionally
  • **
  • Posts: 115
  • Karma: 11
    • Harrisburg Christian Performing Arts Center
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.1
  • PHP version: 5.3
Re: {domain.address} token possible bug?
January 16, 2008, 07:10:10 pm
Yes I can confirm that happens here as well.  I had intended to report this issue but lost track of it.  Thanks.



Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: {domain.address} token possible bug?
January 17, 2008, 10:30:38 am
Quote from: Matt2000 on January 16, 2008, 06:24:53 pm
The {domain.address} token in our CiviMail mailings is being rendered without the 'state_province' field showing. This did not occur under 1.7 before we upgraded. It does not seem to be related to the 'Administration > Global Settings > Address Settings' either; these show the {state_province} field.

Has anyone seen this before? Any ideas on the cause?

In my troubleshooting, I could not figure out where in the database the domain address information is stored. I searched every table for the domain's street address with no meaningful results. Can anyone tell me where the data entered in the 'Administration > Domain Information' page is stored?

Matt - I've updated http://issues.civicrm.org/jira/browse/CRM-2565 to make sure the state_province is properly handled in 2.0 (once the fatal error you reported has been fixed :-) ).

As far as debugging 1.9, I can tell you that the domain address is stored in civicrm_address. To find it you need to first find the civicrm_location record where entity_table = 'civicrm_domain' and entity_id = 1 (or your domain_id if it's not 1). Then find the civicrm_address record with that location_id.

Assuming the data looks good, you'll probably have to add some debug statements to the token eval code (CRM/Utils/Token.php).
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • {domain.address} token possible bug?

This forum was archived on 2017-11-26.