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.

Comments

andyceo’s picture

exolive’s picture

Assigned: Unassigned » exolive

it does not bug fixes!!!

file is not removed from the file system

drewish’s picture

Status: Needs review » Needs work

I'd rather remove the call to _filefield_default_value() and just inline it's code.

mfb’s picture

Status: Needs work » Needs review
StatusFileSize
new1.35 KB

OK, 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?

drewish’s picture

Status: Needs review » Fixed

mfb there's another issue for deletion: #292151: Files are not deleted when replaced

committed to HEAD.

Status: Fixed » Closed (fixed)

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