I'm trying to create a copy of a live site and use it as a test site, but am having trouble with views. There's a view whose settings are in the database but don't show up correctly in the views UI.
I copied the site by (1) installing Drupal, (2) installing the required modules, including some custom features, and (3) exporting the database from the live site and importing to the test site.
The view in question is defined in a feature, and also exists in the
views_display tables in the database. I have not reverted the feature, so I believe the feature code should be ignored in favor of whatever is in the database.
In any case, both in the database and in the feature, the view has an added display with some settings that override the default display. For example, the added display has Header: PHP Code, which overrides the default display's Header: None. In the views UI, the added display exists, but, except for Name, all of its overridden settings, relationships, arguments, fields, and filters are gone. That's also the case for some of the other displays on the view. One display lost its relationships, arguments, and sort criteria, but not its fields and filters.
I've tried clearing all caches (
drush cc all), clearing the views cache (Admin > Site Building > Views > Tools), and deleting all rows from the
views_object_cache table. Didn't help.