Image cropped field default image magicaly dissapears about 6 hours after field configuration. It looks like default image is treated as temporary file and deleted, no matter which upload widget i use (there are two on the field configuration screen - one provided by the module and the second by core).

Once was similiar issue in the Drupal core http://drupal.org/node/618654.

Not sure that it helps or is source of the problem, but my site is hosted on Aegir.

CommentFileSizeAuthor
#2 imagefield_crop-1832106.patch3.64 KBSimeonKesmev
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vinmassaro’s picture

We are running into this bug as well. Default images uploaded when editing a content type that uses the imagefield crop widget get their status set to temporary in the file_managed table in the database. There are also duplicate default image fields as mentioned in #1.

SimeonKesmev’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
3.64 KB

The problem occurs because imagefield_crop expects image module to handle the basic field settings. The problem is that the image module in image_field_update_field() has a check for field type and doesn't execute due to that. There is the actual file_usage and status setting of the default_image file.

Here is a patch that fixes the issue.

WidgetsBurritos’s picture

This patch works for me.

ram4nd’s picture

Status: Needs review » Reviewed & tested by the community

As per #3.

ram4nd’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.