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.
Filefield uses default image path that was initially configured so when filesystem path changes default image breaks.
Comment | File | Size | Author |
---|---|---|---|
#2 | filefield_default_image_1172704.patch | 883 bytes | crea |
Comments
Comment #1
crea CreditAttribution: crea commentedActually, it's major source of inconsistency because (authoritative) information source (files table) is ignored.
Comment #2
crea CreditAttribution: crea commentedComment #3
quicksketchThanks, although changing the filesystem path is pretty difficult already and not recommended, there's no reason why we need to make that more difficult. Unfortunately this will add another query to every page load, which is why I'm guessing we didn't just use field_file_load() to begin with.
Comment #4
crea CreditAttribution: crea commentedIt's already possible to clone sites in Aegir, making sort of sandboxes, with filesystem path changing in the process. I never heard about it being not recommended. It's not user-friendly, sure, but definitely doable and not difficult.
This will add one perfectly optimized query (which should run in under 1ms) to page loads with default images. Since when we are afraid of making queries ?