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.
Undefined variable: source in field_file_save_file() (field_file.inc)
if (!file_copy($file, $file->destination, FILE_EXISTS_RENAME)) {
form_set_error($source, t('File upload error. Could not move uploaded file.'));
watchdog('file', 'Upload error. Could not move file %file to destination %destination.', array('%file' => $file->filename, '%destination' => $file->filepath));
return 0;
}
$source
should be changed to $file->source
and $file->filepath
should be changed to $file->destination
Comments
Comment #1
dopry CreditAttribution: dopry commentedCan you please roll a patch? see: http://www.drupal.org/diffandpatch
Comment #2
PasqualleI do not use this module, I just tested that function. I do not have the time now to work on something I do not use, sorry..
Comment #3
dopry CreditAttribution: dopry commentedfixed in HEAD.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.