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.
Enable the file module, and the file field sources module. Find a content type, and click 'manage fields'. An error appears:
Undefined index: field types in field_ui_widget_type_options() ...etc
Now, enable the image module. Go back to the 'manage fields'. The error is gone.
I think if the module is going to error like that, it should depend upon both file and image, maybe?
Comment | File | Size | Author |
---|---|---|---|
#3 | filefield_sources_image_disabled.patch | 646 bytes | quicksketch |
Comments
Comment #1
Fidelix CreditAttribution: Fidelix commentedSame problem here. That's exactly the cause (the image module being disabled)
Comment #2
quicksketchThanks, a good find. I've never tried a site without Image module enabled, so this is likely the case. I don't think the error is doing any harm (just a PHP notice) so I'm downgrading this error.
Comment #3
quicksketchThis seems to be caused by FileField Sources adding widget settings to a widget (file_image) doesn't exist. This patch should fix the problem.