Closed (fixed)
Project:
Workflow
Version:
7.x-2.4
Component:
Rules
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jul 2014 at 05:54 UTC
Updated:
20 Dec 2014 at 17:04 UTC
Jump to comment: Most recent
While adding a condition to check "Content has workflow state" I get the following error
Notice: Trying to get property of non-object in _workflow_rules_workflow_get_options() (line 39 of /workflow/workflow_rules/workflow_rules.rules-callback.inc).
I also tried to upgrade Rules module to latest stable release, but the error still exists. I guess the problem is with the Workflow module (7.x.2.4).
Attached screenshot.
Thanks in advance.
| Comment | File | Size | Author |
|---|---|---|---|
| Capture.PNG | 42.78 KB | bharathkumarkn |
Comments
Comment #1
bdeusanio commentedSame problem :
I'm checking the state transition of a node to create a new revision.
On this rule, which use workflow_rules, I've got this error in line 39.
My configuration is :
rules : version 7.x-2.7
workflow : version 7.x-2.4
Workflow_rules (workflow submodule) is also activated
Comment #2
klasmeytmo commentedYou just have to add an '@' sign before it. Its working though even for that message
Comment #3
johnvAre you using Workflow Node or Workflow Field?
For Workflow Node this is indeed an error. For Workflow Field, you should use :
- condition Entity is of or Entity has Field
- condition Data Comparison.
Comment #4
bdeusanio commentedI'm using workflow Node module.
Workflow field is not activated.
@ is not a solution, this is only a "subterfuge" to undisplay the message error.
Comment #5
bdeusanio commentedThis is my configuration :
Events : the workflow state has changed
Conditions : Content has a workflow state
Data selector value of my condition element is set to node
when the condition is done, this error message is displayed
Notice : Trying to get property of non-object dans _workflow_rules_workflow_get_options() (ligne 39 dans /var/apps/drupal/sites/all/modules/workflow/workflow_rules/workflow_rules.rules-callback.inc).
I'm not using workflow field, but I'm thinking about when I saw it...
Have a nice day and tell me if you need more details to replicate the bug
Comment #6
bdeusanio commentedI have delete the event and recreate it.
The error has gone.... I think it can be closed.
Comment #8
johnvAdjacent commit should fix the problem. Please try latest dev- release.
Comment #10
davidcz commentedThe fix from #7 did not make it into 7.x-2.4
Comment #11
johnvCorrect. The pro lem is in 2.4, and fixed in the next version, until then in dev version.