Closed (fixed)
Project:
Rules
Version:
6.x-1.0-alpha5
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2008 at 10:02 UTC
Updated:
4 Sep 2008 at 19:42 UTC
Heya - I've installed this and I realize it's still in development, but I'm curious if I'm missing something. Right now it seems to only allow me to assign 'node' or 'user' based actions to rulesets, but ignores 'system' actions (like sending an email and URL redirects). Is this feature still in development or do I need to do something to expose system actions to the rules module?
I've attached a screenshot of the menu I'm talking about, and a screenshot of my actions menu with the 'missing' actions.
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| Picture 7.png | 46.25 KB | elly | |
| Picture 6.png | 24.95 KB | elly |
Comments
Comment #1
amitaibuRules still doesn't implement core actions. The actions that you see are the actions ported to D6. In other words what you see is ok.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
cindyr commentedRe-opening this same issue, so... is there a way to get it to send email? Is this a future feature?
If not, can you suggest a method for me to send an email when a node of a particular content type is created, using Drupal 6?
Thanks,
cindyr
Comment #4
fagoof course this is possible - I've just ported the system actions, which include actions for sending mail. Install the development snapshot, or the next ALPHA release which is coming...
Comment #5
cindyr commentedVery cool! Thanks!
Comment #6
cindyr commentedI just downloaded the development snapshot, and here are a few issues I found. I hope this is useful.
1. There is a preset rule, to publish content whenever it's about to be viewed. So when I click on a page that is already published, it returns the following error:
An error occured during rule evaluation. This is the evaluation log:
0 ms Content is going to be viewed has been invoked.
8.157 ms Included MODULE.rules.inc files.
9.548 ms Executing the rule Example rule on rule set Content is going to be viewed
9.812 ms Condition Content is Page evaluated to TRUE.
9.972 ms Action execution: Publish content
10.123 ms Unable to find action of name rules_action_node_publish with the label Publish content. Perhaps the according module has been deactivated.
10.2 ms Evaluation of Content is going to be viewed has been finished.
The good news is, deleting the action causes the page to load properly.
2. When I edit a rule and try to add a new action, it loads the page properly but with an error:
warning: Invalid argument supplied for foreach() in /.../sites/all/modules/rules/rules/rules.admin_rule_proxy.inc on line 283.
3. The Send Email action is still not available. There is a System action loaded now, when selecting an action to add, the only one under System is "Show a configurable message on the site". Still no email. :(
Comment #7
fago@1: yes, I have removed this action. There is an upgrade path, but only from workflow-ng.
@2: Does this happen for every rule?
@3: hm, always go the modules page and press submit after upgading the module. this makes sure the cache is cleared. Does this help?
Comment #8
cindyr commentedExcellent! Thanks so much for working on this, and so quickly too. I downloaded 6.x-1.0-alpha5 and it has the Send Email rules it, hooray! Thanks so much for working on this!
Now I'm not sure if this is a bug or a user error... I'm choosing to send an email to an arbitrary address. The trigger and send functions are working great, but I'd like it to include the node in the body of the message, but the PHP evaluation isn't working right. I actually can work around this if I can't get it to work, but optimally I'd like for it to include the node that was just created.
The message being delivered looks just like what I put in the action message field - it's not evaluating the php code:
Am I doing this wrong?
Comment #9
fagoyeah, it's
. furthermore $node is an object, no string. you might useprint node_view($node);Comment #10
cindyr commentedI forgot to say thanks. THANKS!
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.