Closed (won't fix)
Project:
Rules
Version:
6.x-1.0-beta3
Component:
Rules Engine
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2008 at 18:40 UTC
Updated:
17 Oct 2008 at 18:07 UTC
I had two problems using this action
1) I first tried using [title] and it did not convert to the proper title.
2) After adding an additional token provided by cck i get this fatal error
Fatal error: Unsupported operand types in /var/www/construction/sites/all/modules/rules/rules/rules.admin_rule_proxy.inc on line 26
Thanks
Comments
Comment #1
agn507 commentedI seen the same problem was posted here
http://drupal.org/node/314310
I did some more digging to figure out where it was failing and narrowed it down to rules.module around line #1017.
I added some print_r statements to figure out what was happening
the output of print_r($row) is something like this
Ugly I know but the point is $row->name has a value and $row->data has serialized information.
The line to unserialize the data fails and printing out $configurations ends up with this
Array ( [rules] => Array ( [rules_1] => ) )Followed by an error
Fatal error: Unsupported operand types in /var/www/construction/sites/all/modules/rules/rules/rules.admin_rule_proxy.inc on line 27
The actions I have verified this fails on are display tokenized message and send tokenized email.
One thing I did notice is that when i first saved this rule with the action applied I only had one token [title] in the subject. This saved correctly and reported no errors. It only started failing after adding tokens supplied by cck. It seems as if the serialized data is corrupt which causes the unserialize function to fail on $row->data.
Hopefully this is enough information..
Comment #2
fagohm, I don't know what's the issue here, but as you can see here (http://drupal.org/node/316631) , support for these actions has been completely dropped now. Update to the next dev snapshot and they are gone.
also see http://groups.drupal.org/node/10270/faq - rules provides better equivalent actions instead.
If the problem occurs with any other action, please reopen.
Comment #3
agn507 commentedWhat equivalent actions are provided? I need to make use of the tokens in the email that gets sent out and on the "Send email" actions there are no tokens provided. Could it be the token help fieldset is just not showing up and including a token will work just fine?