• Notice: Undefined property: stdClass::$name in workflow_tokens() (line 203 of C:\Users\JackVo\Sites\Drupal\sites\all\modules\workflow\workflow.module).
• Notice: Undefined property: stdClass::$name in workflow_tokens() (line 203 of C:\Users\JackVo\Sites\Drupal\sites\all\modules\workflow\workflow.module).

To Fix:
delete line 203
-$user_name = $node->uid ? $node->name : variable_get('anonymous', 'Anonymous');

Add in where delete (line 203)
+$user_name = $node->uid ? (isset($node->name) ? $node->name : variable_get('anonymous', 'Anonymous')) : variable_get('anonymous', 'Anonymous');

Comments

nancydru’s picture

Status: Patch (to be ported) » Closed (cannot reproduce)

That line was changed in the current -dev release, please test that.

msbrar’s picture

Got the latest version and the line does not seem to have been changed. Made the above change in workflow.tokens.inc and it worked

nancydru’s picture

Status: Closed (cannot reproduce) » Active

That line is in two places, which did you change?

nancydru’s picture

Status: Active » Fixed

Committed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.