After a fresh install of Drupal 5.7, I added and enabled the latest Token and Workflow-ng modules only. The token substitutions fail right "out of the box". For example, if I activate the sample rule called Print the content title of pages and stories and at the top of nodes, it prints:

Workflow-ng example: The title of this post is [node:title].

If I create ANY rules with token replacement, they aren't replaced. I've tried:

* Changing the weight of Token in the system table.
* Doing a fresh install on an entirely different system running PHP/MySQL version 4.x.
* Disabling/Re-enabling the modules.

The only way I've got token substitution to work is with version 5.x-1.3 - and even then not all fields were substituted. Versions 5.x-1.4 and above fail in this respect.

Comments

WISEOZ’s picture

Category: support » bug

This is happening with my implementation as well. Tokens are not working in emails I am trying to send from workflow-ng rules.

Any update on this issue?

fago’s picture

please report the token + wng versions you both have used.

fago’s picture

Status: Active » Postponed (maintainer needs more info)

please report the token + wng versions you both have used.

WISEOZ’s picture

I am using 5.x-2.x-dev of Workflow-ng and 5.x-1.x-dev of Token.

fago’s picture

Title: Token substitution/replacement fails » Token substitution/replacement fails for the example
Status: Postponed (maintainer needs more info) » Fixed

I just tried it with the recent token and workflow-ng dev versions - no problems.

But I noticed that the example was broken. I've fixed that in 2.x-dev.

WISEOZ’s picture

What do you mean by "the example was broken"? What do I need to do to make this work for me?

fago’s picture

update to 2.1.

WISEOZ’s picture

Status: Fixed » Active

I upgraded to 2.1 but am still not seeing any token data appear in my emails.

fago’s picture

does it work with the example now?

WISEOZ’s picture

What example? It doesn't work for certain tokens I've selected to display in the email. Is that what you mean?

fago’s picture

I'm referring to the provided default configuration as example "Workflow-ng example: The title of this post is [node:title].".

Are other tokens working then? Does the default configuration work? -> Activate it.

WISEOZ’s picture

I got it working using [node:title]. I'll make use of that one for my purposes and not worry about the CCK field I was trying to use. Thanks for helping me out.

fago’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

slosa’s picture

what do you mean by activate it? Activate what?