Can't uninstall shorthand module

Created on 4 December 2024, about 2 months ago

Problem/Motivation

If you install v4.0.17 or .18, then it can't be uninstalled.

Steps to reproduce

- Download and install v4.0.18 using composer
-use drush en shorthand
- use drush pmu shorthand

Error messages about the base table not existing.

This is because the shorthand_story entity is not currently being 'installed' by the module. So when it comes to uninstalling it, drupal tries to uninstall the entity but can't find the table

Workaround

A manual workaround is to:
- Manually delete the /src/Entity/ShorthandStory.php
- clear caches 'drush cr'
- uninstall the module with drush pmu shorthand.

Proposed resolution

While the entity is still being declared, it should be installed, even if its marked as deprecated?

Is Drupal skipping it on module installation because its marked as deprecated?

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom jkingsnorth

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

Comments & Activities

Production build 0.71.5 2024