I've installed the image module on a Drupal 5.0 (upgraded through the RC cycle) system, and created a few image galleries. All was well until this morning when, for no obvious reason (ie no module or database changes - just one additional image uploaded overnight), images would not load using the "image" data type, and an error message "The selected file /var/www/drupal5/files could not be copied." is generated. The Image module is configured to use /var/www/drupal5/files/images as its image repository. A 0-byte file named "file" is created in this directory when the node is created. The node is created in the database, but there is no attached image and no derivatives.

Disabling the image_attach module allows the image datatype to work again, and images to be uploaded to galleries.

Comments

robertgarrigos’s picture

Priority: Normal » Critical

The same happens to me. This is a critical incompatibilty, in my opinion, because it makes the image module useless.

drewish’s picture

i marked http://drupal.org/node/115736 as a duplicate of this.

drewish’s picture

Status: Active » Needs review
StatusFileSize
new0 bytes

here's a patch

drewish’s picture

Title: Can't add image to image gallery when image_attach is enabled » Prevent image_attach from attaching to image nodes.

marked http://drupal.org/node/110370 as a duplicate of this.

drewish’s picture

StatusFileSize
new2.22 KB

i guess that patch didn't apply

drewish’s picture

Status: Needs review » Fixed

i'm going to go ahead and commit this as it's a simple fix and it's a pretty critical issue.

Anonymous’s picture

Status: Fixed » Closed (fixed)