Closed (duplicate)
Project:
FileField
Version:
6.x-3.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2008 at 18:35 UTC
Updated:
17 Dec 2008 at 22:05 UTC
Jump to comment: Most recent file
Comments
Comment #1
andyceo commentedmay be this error have the same reason like this one - http://drupal.org/node/346150
I've got the messagebox with the error text. You can see a screenshot I attached.
Comment #2
andyceo commentedOkey, I found out an error...
It is in file filefield_widget.inc, line 195:
Line 195 is :
Well, the function name is wrong, and I fix it:
The function filefield_default_value() is defined in filefield.module file in line 507:
So when I fix the function name in filefield_widget.inc, I have the following warnings, deleting the image:
warning: Missing argument 2 for filefield_default_value(), called in /home/andyceo/hosts/drupal6/sites/all/modules/filefield/filefield_widget.inc on line 195 and defined in /home/andyceo/hosts/drupal6/sites/all/modules/filefield/filefield.module on line 507.
warning: Missing argument 3 for filefield_default_value(), called in /home/andyceo/hosts/drupal6/sites/all/modules/filefield/filefield_widget.inc on line 195 and defined in /home/andyceo/hosts/drupal6/sites/all/modules/filefield/filefield.module on line 507.
warning: Missing argument 4 for filefield_default_value(), called in /home/andyceo/hosts/drupal6/sites/all/modules/filefield/filefield_widget.inc on line 195 and defined in /home/andyceo/hosts/drupal6/sites/all/modules/filefield/filefield.module on line 507.
Image physically not deleted, but the field become empty.
Please, fix this bug till the end :)
Comment #3
andyceo commentedOkey...
I have fixed this bug.
File filefield_widget.inc, line 195:
Update the line 195 by following:
It's work, the field become empty. But uploaded files physically NOT DELETED. I don't know, perhaps the author made this behavour especially.
Comment #4
duntuk commentedthanks andyceo.
btw, the not removing files issue has been a problem for a while now... i recall seeing this sometime ago discussing the subject.
Comment #5
mfbDuplicate of #345998: Pop up error when trying to remove an image.