Closed (fixed)
Project:
Workflow
Version:
7.x-1.0
Component:
Workflow Access: Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2012 at 20:22 UTC
Updated:
6 Feb 2013 at 20:27 UTC
When changing workflow on a certain time I get the following notice:
Notice: Undefined variable: options in workflow_rules_workflow() (line 30 of /sites/all/modules/workflow/workflow_rules/workflow_rules.module).
Comments
Comment #1
WebbehGetting the same issue.
TYPE php
DATE Thursday, August 9, 2012 - 3:15pm
USER [admin]
LOCATION dev/workflow
REFERRER dev/workflow
MESSAGE Notice: Undefined variable: options in workflow_rules_workflow() (line 30 of sites/all/modules/workflow/workflow_rules/workflow_rules.module).
SEVERITY notice
HOSTNAME
OPERATIONS
Comment #2
brycefisherfleig commentedSame for me on drupal 7.10, used with Rules module.
When I get this error, the state doesn't change, but it's occurring intermittently...
Comment #3
spcalpo commentedI get this error with version 7.x-1.0. It's an error in the workflow_rules module. Line 30 uses the wrong function variables when calling rules_invoke_event(). Instead of $options['to'] and $options['from'] it should be $old_state and $new_state. It only happens when adding comments to your workflow transitions.
Fortunately it looks like workflow dev version fixes this, so if you are seeing this error, get the latest dev workflow module.
Comment #4
anu03 commented7.x-1.x-dev works well without Notice of "Undefined variable: options in workflow_rules_workflow() "
Comment #5
nancydruThis appears to have been fixed.
Comment #6
brycefisherfleig commentedFor posterity's sake, the scheduled state change relies on drupal cron working. If you can't successfully run cron, then cron is your problem, not necessarily this module.