Closed (fixed)
Project:
Drupal core
Version:
7.8
Component:
file.module
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Sep 2011 at 21:08 UTC
Updated:
23 Sep 2011 at 20:26 UTC
Creating a node with widget type image field on it with can hold multiple image. When uploading without saving the node, the uploaded images are succesfully deleted by clicking the Delete button. But uploading images then save the node. Then editing the node and only delete an image, does not work.
By the Ajax system, no error is thrown. This even happens when I am logged in as admin. I also use ubercart, but with every content type this is the case. Also without ubercart.
The only way to remove the images is by manually delete the record from the field_image_file and refresh the cache.
As I am in development mode, no caching of pages is done. Please advise.
Comments
Comment #1
catchDo you mean the image is still referenced by the node? Or that removing the reference from the node fails to delete it from {files}?
Comment #2
rfay@hme, could you please give a complete recipe to demonstrate this problem, a step-by-step way to do it?
It's critical that you also tell us what browser you are using, as that's critical. There have been bugs in this area before (although I can't find the one I remembered).
To solve your immediate problem, I'll bet you can either change browsers or disable javascript on your browser and you'll be able to do whatever you need to do with the images on your node.
Comment #3
hme commentedThe image stays referenced to the node. There is no error also not in (watchdog) file. I even gave all auth +ARW to the complete files folder.
Flow:
I edit the node.
go the the image field list.
press the button 'delete' and I see the ajax image appear and disappear. But image is not removed from the screen, also not from the files file.
pressing save to the node is succesfull except for the images, they stay there. This happens in every node with the image filed.
When I edit a node, upload a file and delete it straight away with the button, it does work perfectly. but not uploading, saving the node and go to the flow above.
I hope you can advise me.
Comment #4
rfay@hme - does it work if you disable javascript on your browser?
Comment #5
hme commented@rfay, indeed, sorry, forgot to mention that.
I develop on apple. Run a test site on CENTOS 5.6.
the browsers I tested it with :
Apple:
- safari 5.1
- opera 11.51
- firefox 6.0.2
- chrome 14
windows 7:
- internet explorer 9
- google chrome 14
They give all the same.
I noticed the standard jquery version of drupal 7.8 is 1.4.4, I updated to 1.5.2, updated it to 1.6.4 (including jauery form plugin update to the latest) all the same. No difference.
Hope you still can help.
Comment #6
rfay@hme - again, does it work if you disable javascript on your browser?
Comment #7
hme commented@rfay Yep I tried that one with firefox. Disable javascript. So no wysiwyg. Page refreshes. Image is not deleted. No script errors, no 500, 404, 403 errors.
Comment #8
rfayJust tried this with firefox; it's a fairly straightforward sequence. If I understand you right, you just load a node with some images (using the default field_image?) and then save, and then go back to edit that node and attempt to remove images.
I had no trouble at all; it worked fine.
Have you tried this on a fresh install, with just drupal and no contrib? Have you tried it on the default "article" content type (after changing field_image to unlimited)?
Comment #9
rfayComment #10
hme commentedOk, found the solution. The drupal installation I am working at, is a multi-luangual system. There is 1 module which took out the image deletion.
$Id: i18n_field.module,v 1.1.2.3 2011/02/14 11:36:29 jareyero Exp $
Here are the details. I will contact the developer for this module.
Thanks for all the help!