Closed (fixed)
Project:
Workflow
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2012 at 04:25 UTC
Updated:
31 Jan 2013 at 20:26 UTC
Jump to comment: Most recent file
Each time I save or edit a content type which is not linked to the workflow module I get this error:
Notice: Trying to get property of non-object in workflow_node_previous_state() (line 817 of C:\wamp\www\cloudtutr\sites\all\modules\workflow\workflow.module).
Notice: Trying to get property of non-object in workflow_node_previous_state() (line 817 of C:\wamp\www\cloudtutr\sites\all\modules\workflow\workflow.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | workflow-workflow_node_previous_state-undefined-sid-1426844-4.patch | 693 bytes | b-prod |
Comments
Comment #1
Bastlynn commentedI've added an immediate fix in the dev branch of Workflow to address this. Please let me know if the dev version works for you now.
Comment #2
onegenius commentedThere is still an error.
Notice: Trying to get property of non-object in workflow_node_previous_state() (line 791 of /home3/generaq7/public_html/cloudtutr/sites/all/modules/workflow/workflow.module).
I checked it out, this seems to fix it.
Replace:
With:
Or just check if $last_history is an object.
Comment #3
Bastlynn commentedDone and committed to dev, thanks!
Comment #4
b-prod commentedHere is a patch against the current release for immediate fix.
The "need review" state is not about the current patch but about this point:
I think the lines 779 (
$sid = -1;) and 785 ($sid = FALSE;) are no more necessary and should be removed.Comment #5
pacufist commentedAny progress so far?
Comment #6
nancydruAs Sarah said, this was committed and is in the -dev release.