Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#1 | filefield.inc_.patch | 411 bytes | Vote_Sizing_Steve |
Comments
Comment #1
Vote_Sizing_Steve CreditAttribution: Vote_Sizing_Steve commentedSeems to have fixed this issue for me. I've attached a patch in hope of expediting the issue.
Comment #2
johsve339 CreditAttribution: johsve339 commentedThe patch worked for me. Thanks...
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedwhich 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
Comment #4
Deciphered CreditAttribution: Deciphered commentedCommitted to 6.x-1.x.
Cheers,
Deciphered.
Comment #6
munyivaPatch worked for me
Comment #7
roball CreditAttribution: roball commentedThe fix is now officially available in version 6.x-1.5.