I'm trying to create a copy of a live site and use it as test site, but I have troubles with a view whose settings are in the database, which does not show up correctly in the UI.
I copied the site by installing Drupal, the required modules, including some custom features, and exporting the database.
The view is defined in a feature, and also exists in the views_view and views_display database tables. I have not reverted the feature, so I believe the feature code should be ignored in favor of whatever is in the database.
In the database and in the feature, the view has display with some settings that overrides the default display, for example Header: PHP Code overrides Header: None. In the UI, the added display exists, but, except for Name, all of its overridden settings, relationships, arguments, fields, and filters are gone.
That is the case for some of the other displays on the view too. A display lost its relationships, arguments, and sort criteria, but not its fields and filters.
I've tried running
drush cc all, clearing the cache from Admin > Site Building > Views > Tools, and deleting all rows from the views_object_cache table; None of them helped.