The line is:

unset($file['data']['process']);

I've obtained this error when I upload a new file through the filedepot UI (cf module filedepot http://drupal.org/project/filedepot). The error interrupts a node_save call.

In order to fix the problem, I've replaced the line with:

if (is_array($file['data']) && isset($file['data']['process'])) unset($file['data']['process']);

Honestly, I don't know what is the role of $file['data']['process'] ... and maybe filedepot wrongly does something. Has anybody any clue about that?

CommentFileSizeAuthor
#1 filefield.inc_.patch411 bytesVote_Sizing_Steve
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Vote_Sizing_Steve’s picture

Status: Active » Needs review
FileSize
411 bytes

Seems to have fixed this issue for me. I've attached a patch in hope of expediting the issue.

johsve339’s picture

The patch worked for me. Thanks...

SocialNicheGuru’s picture

which file should this apply to? I am getting an error with:

git apply filefield.inc_.patch
filefield.inc_.patch:9: trailing whitespace.
if (is_array($file['data']) && isset($file['data']['process'])) unset($file['data']['process']);
error: Compare File #2.txt: No such file or directory

Deciphered’s picture

Status: Needs review » Fixed

Committed to 6.x-1.x.

Cheers,
Deciphered.

Status: Fixed » Closed (fixed)

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

munyiva’s picture

Patch worked for me

roball’s picture

Assigned: Unassigned » Deciphered

The fix is now officially available in version 6.x-1.5.