Hi,
the "upload_image" module generates image node titles by combining the nodes title, the images are attached to, with the image filename.
When these image nodes are renamed, the upload_image connection between the node and the images somehow breaks; images are still displayed in the node, but not in the node's edit view; also, an error is reported when accessing the node:
Die ausgewählte Datei konnte nicht kopiert werden, da keine Datei mit diesem Namen vorhanden ist. Überprüfe, ob der richtige Dateiname angegeben wurde. (The selected file can't copied, because no file with this name exists. Check if you chose the right filename).
Additionally, in the "File Attachments" (Dateianhänge) groupfield no previews are displayed anymore ("Preview: No preview"; "This file can be found at:" - path is incomplete)
Since (a) the generated image node titles are unpractical, and (b) it should be possible to use something stable (like NID) to link to, I consider this a bug; maybe it can be fixed somehow?
Thanks & greetings, -asb
Comments
Comment #1
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedNobody else reported this...
Comment #2
asb CreditAttribution: asb commented> Nobody else reported this...
Maybe other users do not rename the images, or do not care about error messages, or do not edit once created nodes - I don't know. With D5, this behaviour seems to be easy to reproduce, at least I'm experiencing it on all D5 sites I'm still running (in numbers: 6 sites are left ;)
Configuration: Upload Image 5.x-1.1 + Image 5.x-2.0-alpha3 ; current environment: Drupal 5.18 + LightTPD 1.4.19 + PHP 5.2.6-1+lenny3 + MySQL 5.0.51a.
Is there any information I can provide?
Greetings, -asb
Comment #3
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedI currently do not have a D5 install to test this on.
I have tested this on D6 and I cannot reproduce this.
And of course, I do not use the node title to link images to the other nodes, there is a DB table upload_images.
I made some small changes on the D5 version yesterday, can you upgrade and see if that helps?
Comment #4
asb CreditAttribution: asb commentedHi,
thanks for looking into this - and for the nice CVS commits!
I replaced version 5.x-1.1 (2007-Sep-04) with 5.x-1.x-dev (2009-May-17) on my D5 sites, but the behaviour remained. Thus I started to investigate, what module actually is handling the broken preview images - it's not the "Upload Image" module, but the Upload previews module (on my sites running in version 5.x-1.3). After disabling "Upload previews", the "Upload Image" module's behaviour changed, and the errors disappeared.
With "Upload previews" enabled:
* Error message "Die ausgewählte Datei konnte nicht kopiert werden, da keine Datei mit diesem Namen vorhanden ist. Überprüfe, ob der richtige Dateiname angegeben wurde.", multiplied by the number of attached images.
* In the "File Attachments" section of the node editing form: There are two colums displayed, called "Vorschau" (= Preview) and "Beschreibung" (= Description); there's no "Löschen" (=Delete) or "Alle anzeigen" (= Display all) column.
* In the "File Attachments" section of the node editing form: No previews are displayed; instead of a preview, the text "(No preview)" is displayed.
* In the "File Attachments" section of the node editing form: Below the description field, the text reads: "This file can be found at http://www.mysite.org/files/"; however, the correct filesize is displayed.
With "Upload previews" disabled:
* No error messages.
* In the "File Attachments" section of the node editing form: There are four colums displayed, called "Löschen" (= Delete), "Alle anzeigen" (= Display all), "Beschreibung" (= Description), and "Größe" (= Size).
* In the "File Attachments" section of the node editing form: No previews are displayed (that seems to be correct since "Upload Image" does not handle image previews by itself, right?).
* In the "File Attachments" section of the node editing form: Below the description field, the text reads: "This file can be found at http://www.mysite.org/files/myfile_01.jpg"; also, the correct filesize is displayed.
So as it seems, the error is caused by an interaction of the "Upload Image" and the "Upload previews" modules. Installed alone, both modules work fine. I don't know who should investigate this, so I'm leaving it to the maintainers (& Updating issue's title and version).
Thanks & greetings, -asb
Comment #5
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedSince "upload previews" generates the errors, maybe somebody over there has an idea what happens. Please add more info and move it back if it is indeed an upload image issue.
Comment #6
rmiddle CreditAttribution: rmiddle commentedComment #7
rmiddle CreditAttribution: rmiddle commentedAdded a note on the front page. I will need to setup a test site to see if this is still an issue. http://drupal.org/project/upload_image