Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | imagefield_crop-1832106.patch | 3.64 KB | SimeonKesmev |
Comments
Comment #1
vinmassaro CreditAttribution: vinmassaro commentedWe 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.
Comment #2
SimeonKesmev CreditAttribution: SimeonKesmev commentedThe 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.
Comment #3
WidgetsBurritos CreditAttribution: WidgetsBurritos commentedThis patch works for me.
Comment #4
ram4nd CreditAttribution: ram4nd as a volunteer commentedAs per #3.
Comment #6
ram4nd CreditAttribution: ram4nd as a volunteer commented