When I access the module uninstall page /admin/modules/uninstall), i get an error and the log reads:
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ds_switch' in 'where clause': SELECT 1 AS expression FROM {redirect} t WHERE ( (ds_switch IS NOT NULL ) ) LIMIT 1 OFFSET 0; Array ( ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->countFieldData() (line 1675 of /var/www/html/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
I looked into the database and seems the 'ds_switch' (Display Suite) column is missing which is causing this error. If i add the column manually, it works okay(which is not what i would prefer to do)
Any help/suggestions on how to fix this?
I have tried update.php, drush entity-udpates, drush updb - nothing helped.
Thank you
Comments
Comment #2
sgohil1 CreditAttribution: sgohil1 commentedComment #3
BerdirI don't know why such a column should exist, display suite has no business with redirect entities. If it is a bug then in DS IMHO.
Comment #4
BerdirSo this is apparently a duplicate of #2770171: DatabaseExceptionWrapper: SQLSTATE[42S22]