In general Field_ui needs to be off in production.
See similar issues for other modules:
Entityform: https://drupal.org/node/2123417
Fieldable Panels Panes: https://drupal.org/node/1724394

Comments

joachim’s picture

I'm pretty sure we need some of Field UI's functions for the views configuration.

joachim’s picture

Status: Active » Closed (works as designed)

The Views handler options needs to get the field UI options:

    $widget_options += field_ui_widget_type_options($field['type']);

Arguably, on a production site where you've disabled *_ui modules, you'll have disabled Views UI too, so this you're not going to ever run this bit of code.

But doing this cleanly is going to require some fiddly code -- you're going to need to have a message to users who do get there without Field UI telling them to enable it, and some kind of sane fallback.

Not something I have time to work on, but feel free to reopen if you can provide a patch.