Unable to uninstall module after core update to 10.2

Created on 15 February 2024, 9 months ago
Updated 6 June 2024, 6 months ago

Problem/Motivation

Unable to uninstall module after core update to 10.2.2 without getting "unexpected error"

Steps to reproduce

I updated Drupal core to 10.2.2. Then I went to /admin/config/media/file-system and enabled all new core filename sanitization options. Then I attempted to uninstall the module using composer, i.e. composer remove drupal/filename_transliteration. I got WSOD "unexpected error" on the site. Had to re-install with composer require drupal/filename_transliterate in order to bring site back up.

Here is something I saw in log:
Warning: include_once(): Failed opening '/home/dianebrawarsky/public_html/modules/contrib/filename_transliteration/filename_transliteration.module' for inclusion (include_path='/home/dianebrawarsky/public_html/vendor/pear/archive_tar:/home/dianebrawarsky/public_html/vendor/pear/console_getopt:/home/dianebrawarsky/public_html/vendor/pear/pear-core-minimal/src:/home/dianebrawarsky/public_html/vendor/pear/pear_exception:.:/opt/cpanel/ea-php82/root/usr/share/pear') in include_once() (line 153 of /home/dianebrawarsky/public_html/core/lib/Drupal/Core/Extension/Extension.php)

Proposed resolution

Please explain how to uninstall module without killing site as it is no longer needed.

πŸ› Bug report
Status

Closed: works as designed

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Katharine_Gates

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

Comments & Activities

  • Issue created by @Katharine_Gates
  • Status changed to Closed: works as designed 6 months ago
  • πŸ‡ͺπŸ‡¨Ecuador jwilson3

    Then I attempted to uninstall the module using composer, i.e. composer remove drupal/filename_transliteration.

    You must first disable the module inside Drupal UI (or via drush pmu filename_transliteration, before you can remove the PHP dependency.

    Please follow the instructions in Drupal Docs for uninstalling modules:

    https://www.drupal.org/docs/extending-drupal/uninstalling-modules β†’

    You must first restore the module with composer, then go into the UI and disable it there, then finally remove it with composer.

    I'm going to close this, but feel free to reopen if you need more help.

Production build 0.71.5 2024