After disabling and uninstalling the module the following error appears on every view throughout the site:
Fatal Error: Unsupported operand types in FieldInfo->prepareInstanceDisplay() (line 630 of /modules/field/field.info.class.inc)
This appears to be an issue that affects other modules that has Field Formatter Settings → as a dependency as seen here: #2376825: Fatal error: Unsupported operand types in .../modules/field/field.info.class.inc on line 628 message after uninstalling. → and https://www.drupalcenter.de/node/59872.
Thankfully the following PHP code snippet provided by mogtofu33 here: https://www.drupal.org/project/ffc/issues/2376825#comment-10283681 → can be ran via devel/php to fix the corrupted views:
if (db_table_exists('views_display')) {
// Getting all view displays from database.
$view_displays = db_select('views_display', 'vd')
->fields('vd')
->execute();
// Iterate all view displays and modify them.
foreach ($view_displays as $view_display) {
$vid = $view_display->vid;
$id = $view_display->id;
$display_options = unserialize($view_display->display_options);
// remove the display settings provided by this module
if (isset($display_options['fields'])) {
foreach ($display_options['fields'] as &$field) {
$settings = &$field['settings'];
if ($settings == NULL) {
$settings = array();
}
}
}
$display_options = serialize($display_options);
// Finally we update the current view display.
db_update('views_display')
->fields(array('display_options' => $display_options))
->condition('vid', $vid)
->condition('id', $id)
->execute();
}
}
However, just like the related issue, it makes sense to fix the issue in the module itself in order to prevent others from having corrupt views. Clearing the Views cache does not fix the issue either.
Closed: outdated
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.