Closed (fixed)
Project:
FileField
Version:
6.x-3.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 May 2011 at 23:28 UTC
Updated:
27 Apr 2013 at 18:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
mrfelton commentedShould probably also note that this is with pressflow.
Comment #2
mrfelton commentedThis seems to be a conflict with the Realname module. Disabling that module resolves the issue. Looking at backtrace shows that realname's implementation of
content_profile_load_profile()cals.
This looks like a valid way to call
content_format()whose signature looks like so:So, content_format then calls filefield_file_sanitze with a NULL node object (the following is from content_format):
$node is null because it wan't passed to
content_format(). Should filefield_field_sanitize() be able to deal with a NULL node object, since content_format may pass one to it? Or, is content_format at fault here?Comment #3
mrfelton commentedHere is a patch that gets rid of the warning by first checking if the node object is valid before trying to use it to set the nid property. I don't know if this would have any side effects, but it seems to be working for me.
Comment #4
pydubreucq commentedHi,
I had this error too after migrate to Pressflow and this patch works for me ;)
Bye
Comment #5
mikeytown2 commentedpatch #3 works for me as well.
Comment #6
quicksketchThanks guys. Although it accommodating for other naughty modules it works for me.