Tried both -dev and latest stable rules and heartbeat. Out of the box I'm not getting any messages recorded in the database. What should the fields be?

Example:-

On posting a new published page rules are called, and it goes to heartbeat function. The following settings are passed to heartbeat_rules_default_action:

array ( 'uid_param' => NULL, 'uid_target_param' => '0', 'nid_target_param' => NULL, 'message_id_param' => 'heartbeat_add_node', 'variables_param' => NULL, '#eval input' => array ( 'token_rules_input_evaluator' => array ( 'uid_param' => array ( 0 => 'user', ), 'nid_target_param' => array ( 0 => 'node', ), 'variables_param' => array ( 0 => 'node', 1 => 'user', ), ), ), )

And nothing is getting recorded from that. The settings which I assume are default for the rule are:-

User: [user:user-id]
User target: 0
Node target: [node:nid]
Choose message:
User adds node, save user activity
Message:
@username=[user:user-name-url]

@node_type=[node:type-name]

@node_title=[node:title-link]

@types=[node:type-name]s

What am I missing here?

Comments

ekes’s picture

Status: Active » Closed (fixed)

Wood - trees.

The version of token.module wasn't upgraded to 6-1.12 and thus tokens were lost for rules.

Stalski’s picture

hmm,

thx.
That's one of my biggest problems with heartbeat. I am very dependent on rules and tokens. So I indeed have to look at latest versions of those modules.
does this mean your problem was fixed when installing Token6-1.12 ?

ekes’s picture

Yes. It was silently dropping everything in the rules fields (including non-replacement text) until the site token.module was upgraded 1.11 -> 1.12 ; guess some big red error messages would have woken me up quicker :)

ekes’s picture

Thanks for the reply by the way :-)