Closed (fixed)
Project:
Workflow
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2006 at 00:28 UTC
Updated:
27 Mar 2006 at 22:45 UTC
Drupal version: 4.7.0 Beta 5
MySQL version: 4.0.24
Platform: Ubuntu Breezy
PHP version: 5.0.5
Having associated a particular workflow with Book nodes, I get the following error whenever I try to create a book:
Fatal error: Only variables can be passed by reference in /var/www/beta/modules/workflow/workflow.module on line 129
I gather this is a common problem with other applications under PHP 5.
Code in question:
// get new state
$sid = $node->workflow;
if (!$sid && $op == 'insert') { // if not specified, use first valid
$sid = array_shift(array_keys(workflow_field_choices($node))); //THIS IS LINE 129
}
Comments
Comment #1
jvandyk commentedCommitted a fix; thanks.
Comment #2
(not verified) commented