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?

CommentFileSizeAuthor
#3 filefield_sources_image_disabled.patch646 bytesquicksketch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Fidelix’s picture

Same problem here. That's exactly the cause (the image module being disabled)

quicksketch’s picture

Title: Error when file module is enabled and image module is not » Undefined index when file module is enabled and image module is not
Priority: Normal » Minor

Thanks, 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.

quicksketch’s picture

Status: Active » Fixed
FileSize
646 bytes

This seems to be caused by FileField Sources adding widget settings to a widget (file_image) doesn't exist. This patch should fix the problem.

Status: Fixed » Closed (fixed)

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