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

sgohil1 created an issue. See original summary.

sgohil1’s picture

Status: Active » Needs work
Berdir’s picture

Status: Needs work » Postponed (maintainer needs more info)

I 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.

Berdir’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

So this is apparently a duplicate of #2770171: DatabaseExceptionWrapper: SQLSTATE[42S22]