rest_log can not be uninstalled

Created on 22 March 2024, 8 months ago
Updated 16 April 2024, 7 months ago

Problem/Motivation

Trying to uninstall rest_log through UI or drush fails hard: drush pmu rest_log

In ExceptionHandler.php line 56:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db1.wd_rest_log' doesn't exist: SELECT "base_table"."id" AS "id", "base_table"."id" AS "base_table_id"
  FROM
  "wd_rest_log" "base_table"
  LIMIT 1 OFFSET 0; Array
  (
  )

In StatementWrapperIterator.php line 111:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db1.wd_rest_log' doesn't exist

Perhaps there's an issue with table prefixes?
wd_ is our table prefix

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Comments & Activities

  • Issue created by @Anybody
  • 🇩🇪Germany Anybody Porta Westfalica

    For me the workaround was to create a fake table with that name to be able to uninstall the module.

  • Assigned to ad0z
  • 🇵🇱Poland ad0z

    @Anybody I need more info, as I tried to recreate it with no success. The table is provided by ContentEntityType plugin, so install/deletion should be handled automatically.

    1. Was prefixes used in your database initially?
    2. Do you have `rest_log` table(with no prefix) there(in "corrupted" database)?

  • 🇩🇪Germany Anybody Porta Westfalica

    Prefix was and is used. All tables are prefixed.

  • Issue was unassigned.
  • 🇵🇱Poland ad0z

    I am not able to recreate it, I need more details or steps to reproduce it with fresh Drupal installation. Is there anybody facing this issue?

  • Status changed to Postponed: needs info 7 months ago
  • 🇩🇪Germany Anybody Porta Westfalica

    Okay let's wait if anyone can reproduce this using table prefixes. I'm not using the module anymore, so no idea. Just wanted to leave the report to help others.

Production build 0.71.5 2024