workflow.pages.inc, line 181:
$output .= drupal_get_form('workflow_tab_form', &$node, $wid, $states, $current);
With the function defined on line 120:
function workflow_tab_form($form_state, $node, $wid, $states, $current) {
The workflow_tab_form() function needs $node to be a reference.
The error:
Parameter 2 to workflow_tab_form() expected to be a reference, value given in /var/www/html/includes/form.inc on line 372.
There are two possible solutions
1) If and only if $node is not changed in anyway, then the reference can be removed from the function definition. (an easy fix or a temporary "silence the error" fix)
2) fix the function call at line 181 such that $node gets passed as a reference. (the hard but often correct fix)
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | workflow_690860_param_ref_warning_4.patch | 768 bytes | dooug |
Comments
Comment #1
Skorpjon commentedsubscribe
Comment #2
XerraX commentedcan you make a patch?
Comment #3
jvandyk commentedFixed in 6.x-1.x-dev. I don't see anywhere that the node is modified, so I have modified the function definition to remove the reference.
Comment #4
dooug commentedRight, I just ran into this. I see you've committed it to dev, but here is the patch that solves the issue.
Comment #6
astra commentedMy site under D5 got the same problem after upgrading to php5.3:
Go to workflow.module and try to change the line
with this (just removed "&")
It seems to fix the problem.