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) »
  • Not All Tokens Are Working
Pages: [1]

Author Topic: Not All Tokens Are Working  (Read 1156 times)

b0b_Zuruncle

  • Guest
Not All Tokens Are Working
May 16, 2010, 08:58:42 pm
Good Evening:

We've successfully installed Civicrm with Drupal

Everything seems to be working well except certain tokens when sending e-mails are not

Specifically the {action.unsubscribeUrl} is not generating a link back to the install

We've been testing using the snippet of code from the documentation

To unsubscribe from this mailing, click <a href="{action.unsubscribeUrl}" >here</a>

Other tokens are working just fine such as {contact.email_greeting} etc...

Any suggestions?

Thank you

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: Not All Tokens Are Working
May 16, 2010, 09:42:12 pm

what does it evaluate to?

can u also try the token, action.unsubscribe and see if that gets replaced

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

b0b_Zuruncle

  • Guest
Re: Not All Tokens Are Working
May 17, 2010, 07:33:29 am
Good Morning and thank you for your reply

Neither tag is "evaluating" to anything

The received e-mail has the following link(s) embedded

http://{action.unsubscribeUrl}/

or

http://{action.unsubscribe}/

Again, thanks

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Not All Tokens Are Working
May 17, 2010, 07:50:55 am
Just to be sure, you are using civimail, not the regular "send an email" feature ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Will Brownsberger

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 2
Re: Not All Tokens Are Working
May 17, 2010, 08:52:53 am
Having the same experience -- but it is intermittent.  I am running 3.1.4.

Some of my tokens were not being instantiated, sending from the test mailer at step 4 of the Civimail send dialog.  Others were being instantiated fine.

Some custom fields were instantiated; others from other custom field groups not.  It did seem that all fields from a given custom field group were consistently instantiated or not instantiated, but I can't be sure of that.  The non-custom fields that I had tested were instantiated.

Was experimenting (grasping at irrelevant straws, changed custom group setting from inline to tab) and the problem stopped -- can't see anything that I did that stopped it, because I changed it back and that didn't cause the problem to reappear.

I was running 3.0.1 and had this problem for a while, and, in the same way it mysteriously disappeared (although it took several days).

/w.

b0b_Zuruncle

  • Guest
Re: Not All Tokens Are Working
May 17, 2010, 09:30:23 am
We have been testing with sending individual mailings to a test account

Shouldn't all the tags work regardless if you are sending a single e-mail or bulk?

Also, I attempted to send a bulk e-mail to a small sample group and got this

Sorry. A non-recoverable error has occurred.

We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site adminstrator for assistance.

Error type: Could not find a valid key.


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: Not All Tokens Are Working
May 17, 2010, 01:07:26 pm

the action tags only work when sending a bulk e-mail (since it is similar to a mailing list action, i..e. there is an associated group etc)

seems like there are some other non-token issues with your install which u'll need to check and resolve. Ensure that your hostname is the same across all settings files and databases (i.e. example.com OR www.example.com not both)


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

b0b_Zuruncle

  • Guest
Re: Not All Tokens Are Working
May 22, 2010, 10:18:10 am
Thank you for your response

I was wondering why the unsubscribe actions don't work for individual mailings

The functionality would be nice because I do mailings to select people (few at a time) and I want them to have the same ability to opt out

Plus I do not want to maintain multiple templates for bulk and single mailings where I need to change/remove unsubscribe tags

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: Not All Tokens Are Working
May 23, 2010, 04:31:50 pm

You subscribe / unsubscribe from a "civicrm group" and not an individual email

you can potentially incorporate optout tokens in an individual mailing. If you'd like to develop this feature. please read


http://en.flossmanuals.net/CiviCRM/DevelopIntro
http://civicrm.org/category/civicrm-blog-categories/civicrm-architecture-series

and ping us on IRC with questions. If you are not a programmer, consider hiring someone who can add this feature. It would be a good extension to add

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Not All Tokens Are Working

This forum was archived on 2017-11-26.