The error in the title is new. I used to be able to attach images and now this is occurring.
I thought it might be some other modules but I've now turned off just about everything and it still occurs during the upload in the attach image part of a content create for one of my content types. There isn't a message in the Apache log and I don't see anything in the database log. I've disabled all triggers since those were causing other problems. I've even tried disabling the trigger feature entirely with no success. I can make "node images" work, but all the data I have has been done with image attach and redoing several hundred content entries doesn't sound like fun.
I can provide whatever information is needed but I'm at a loss as to how to resolve this issue. This also seems related to "Node save triggers "The selected file could not be copied, because no file by that name exists." error.".
While I'm currently at 6.x-1.x-dev, I've also tried the current beta version with not luck.
Thoughts?
Comments
Comment #1
joachim commentedTry removing the @ on line 266 of includes/file.inc -- that should at least produce an error message.
Also, try a clean install on the same system with just core and image attach and see if you get the problem with that too.
Comment #2
dougm commentedAfter removing the @ as suggested, here is the error message:
warning: copy(sites/default/files/images/temp/B-536_0.png) [function.copy]: failed to open stream: Permission denied in /var/apache2/2.2/htdocs/3acres/includes/file.inc on line 266.
The selected file /var/apache2/2.2/htdocs/3acres/sites/default/files/tmp/B-536_0.png could not be copied.
This gave me enough info to resolve the issue. For some reason the files/images/temp directory lost the execute bit. It wasn't obvious that it copied/moved the file twice.