Created a gallery and uploaded several images. Originals, thumbnails and previews of images were created and stored in sitename/files/images
But if I try to edit one of those images that have already been uploaded, when I select save changes, the preview and thumbnail files end up being moved to images/temp and I get these error messages:
* The selected file /sitename/files/images/camp2006_002_0.thumbnail.png could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
* The selected file /sitename/files/images/camp2006_002_0.preview.png could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
Image INSTALL.TXT says to:
Configure cron if you didn't do so already to have your temporary upload directory cleaned up.
Could this be the problem? If so, how do I "configure cron" if I'm using poormanscron?
Comments
Comment #1
loloyd commentedI am getting the same error. Basically, the reason why I wanted to edit each image node I imported was to remove them from being promoted to the front page. It is quite annoying to have around 10 image nodes as my front page when I imported quite a lot of them - this is very far from my intention and from the intentions of many Image module users, I believe. So I guess there should be a control somewhere in the Image module to establish the correct setting for "promoted to front page" when multiple image imports are done. In the image import page (/admin/content/image_import), maybe we can choose which checked image should be promoted to the front page and which should not be.
My workaround here (for my own problem and objective) was to go to the content settings (/admin/content/node), check all new image nodes I wanted to be demoted, set "Demote from front page" in the Update options combo-box, and then clicked on Update. This way, I suffered no "* The selected file /sitename/files/images/camp2006_002_0.thumbnail.png could not be copied, because no file by that name exists. Please check that you supplied the correct filename."
The problem still remains though, for when you do intend to do a lot of other changes on a per image node basis. Cron can be run manually by simply accessing /cron.php from your webserver. I don't think this will solve the issue reported here though.
Comment #2
loloyd commentedOK, manually moving the thumbnail and preview versions of each image file from the image node you updated does not solve the problem too. I had to delete the image node and redo the import. Then apply the workaround as described above.
Comment #3
carldnelson commentedI'm having the same issue. I can create a new image node and can assign it to any gallery. But if I try to change the gallery it is assigned to, I lose the thumbnail and preview. Those files get moved to the temp folder, but apparently the module can't move them back? Is that what is causing the error message about the files? --> "The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename."
I don't understand what we are supposed to update our cron file to do to fix this error. Should it be deleting the temp files? Shouldn't the module be cleaning that up?
There are several other posts kinda related to this error and they all seem to focus on directory permissions, but I'm not sure that is really what the problem stems from. I've tried changing the directory permissions everything up to 777, I've tried changing the owner of the images and temp folders to my hosting account, the webserver account, I've allowed the image module to create the folders with the account that Drupal is running under, and all variations. I've also tried a fresh installation of Drupal with only the image module added and the same issue appears.
It kinda make the whole image module not so useful if I can never make a change to one of the image nodes. Anyone have any ideas how to make this work??
Comment #4
carldnelson commentedIn fact, you don't even need to make any changes or edits to the image node. Simply open the node for editing, click on submit and the errors appear.
I have even turned off the image gallery module in the hopes that I could simply not use galleries, but just use the image module, but the same errors appear.
Comment #5
herb commentedSame issue here - but the image doesn't even need to be within a gallery - Generate an image, edit the title (or not), and submit. The image module (I guess), re-generates the images and creates the errors.
Comment #6
Tim_O commentedHi there, and I too have that problem - if I edit a picture (even without really changing any value) I lose the preview (shows the orig-size picture as preview thus braking any layout). My current work-around when editing is to provide the original file for upload again and to mark all listed files for deletion (this option is more to the end of the page). This way I can now change, what I intended to change, and still get working previews.
I have 5.1 running and the only additional module currently is the v5.1 image-module from http://drupal.org/project/image. If anyone knows how to fix this I would appreciate any hints - this is annoying :( Btw, is there any simple way to check whether there are new versions of Drupal/Drupal-Modules available? Just realised I wouldn't know, but I downloaded the module today - so I guess not. And I still need to find out, how to track progress on this issue ;) Well, just another newbie ...
Best regards and thank all involved for the nice work - Drupal is great!
Comment #7
danielchoi commentedThis module seems simple and light weight solutions that I always look for. I am trying to build a simple image gallery with this module. However, I got the same issues especially when I tried to edit.
I tried to enable "File Attachment"(Not the image upload module) section into the image node to investigate the issue. The file names on the "File Attachment" section appear incomplete.
I think it has serious bugs especially dealing with existing image files on the server.
In addition, I have noticed that "thumbnail", "preview" links shows always "original" sizes after I update the existing image node after I get the "....Can't copy" messages like others above.
I hope the developer fix this problems soon. (I think the developer is working hard on this case.)
Comment #8
andydev commentedI realised this started to happen to me when I used acidfree.
I removed acidfree, and tried to use the image galleries.
Everytime I edit an image, to change it's name for example, I get an error of image not found and the thumbnail is lost.
Comment #9
drewish commentedsee http://drupal.org/node/99395
Comment #10
lisa commentedI am wondering if this is truly a duplicate of the issue reported at http://drupal.org/node/99395 as that post is referring to 4.7.x and I am reporting an issue with 5.x
However, http://drupal.org/node/124474 looks like a duplicate post as it does relate to 5.x