Can't disable Comment module

Created on 10 March 2020, over 4 years ago
Updated 29 November 2023, 7 months ago

I tried uninstalling the core Comment module, but it was greyed out, it said to delete the fields using it. The only field that is using it on fresh install is the Article content type.

Tried deleting it and got WSOD ("The website encountered an unexpected error. Please try again later."). It got deleted tho. Uninstalling via website or drush causes the WSOD.

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'd8.comment' doesn't exist: SELECT base_table.cid AS cid, base_table.cid AS base_table_cid FROM {comment} base_table GROUP BY base_table.cid LIMIT 1 OFFSET 0; Array ( ) in Drupal\Core\Entity\EntityStorageBase->hasData() (line 588 of /var/www/d8.site.com/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php).

Console:

drush pmu comment

In Connection.php line 695:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'd8.comment' doesn't exist: SELECT base_table.cid AS cid, base_table.cid AS base_table_cid
  FROM
  {comment} base_table
  GROUP BY base_table.cid
  LIMIT 1 OFFSET 0; Array
  (
  )


In Statement.php line 59:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'd8.comment' doesn't exist

💬 Support request
Status

Closed: cannot reproduce

Version

9.5

Component
Comment  →

Last updated 2 days ago

Created by

🇱🇹Lithuania vibrasphere

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India newswatch Delhi/Bangalore

    The following sequence works for me:

    1. Delete comment field from all node types.
    2. Delete views that ae about comments
    3. Uninstall Comment module.
  • 🇮🇩Indonesia tstoto

    The following sequence worked for TSTOTO :

    Delete comment field from all node types.
    Delete views that ae about comments
    Uninstall Comment module.

    and then u got it

Production build 0.69.0 2024