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

Webbeh’s picture

Getting 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

brycefisherfleig’s picture

Same 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...

spcalpo’s picture

I 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.

anu03’s picture

7.x-1.x-dev works well without Notice of "Undefined variable: options in workflow_rules_workflow() "

nancydru’s picture

Status: Active » Closed (fixed)

This appears to have been fixed.

brycefisherfleig’s picture

For 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.