When trying to remove an image by clicking on 'remove', I am receiving the following error message in a pop-up window:
An error occurred.
/en/filefield/ahah/blog/field_image/1
<br />
<b>Fatal error</b>: Call to undefined function _filefield_default_value() in <b>/var/www/vozmob/html/sites/all/modules/filefield/filefield_widget.inc</b> on line <b>195</b><br />And, the image is not removed.
The attached patch isn't the correct solution if this function was intentionally removed. But, it might be a useful function if used everywhere the array('fid' => 0... pattern appears.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | filefield_default_value.patch | 1.35 KB | mfb |
| _filefield_default_value.patch | 744 bytes | mfb |
Comments
Comment #1
andyceo commented:)
Like this one - http://drupal.org/node/346328
Comment #2
exolive commentedit does not bug fixes!!!
file is not removed from the file system
Comment #3
drewish commentedI'd rather remove the call to _filefield_default_value() and just inline it's code.
Comment #4
mfbOK, this line is now repeated three times in various places.
I can confirm exolive's observation that the file is not actually removed from the filesystem. Presumably it should be attempting to actually delete the file here?
Comment #5
drewish commentedmfb there's another issue for deletion: #292151: Files are not deleted when replaced
committed to HEAD.