Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
$ drush pmu gdpr_tasks
The following extensions will be uninstalled: gdpr_tasks
Do you really want to continue? (y/n): y
Drupal\Core\Extension\ModuleUninstallValidatorException: The following reasons prevent the modules from being uninstalled: The <em class="placeholder">GDPR Removal Task Item</em> field type is [error]
used in the following field: gdpr_task.removal_log in /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php:369
Stack trace:
#0 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(91): Drupal\Core\Extension\ModuleInstaller->uninstall(Array, true)
#1 /var/www/html/vendor/drush/drush/commands/core/drupal/environment.inc(227): Drupal\Core\ProxyClass\Extension\ModuleInstaller->uninstall(Array)
#2 /var/www/html/vendor/drush/drush/commands/core/drupal/pm_8.inc(79): drush_module_uninstall(Array)
#3 /var/www/html/vendor/drush/drush/commands/pm/pm.drush.inc(1250): _drush_pm_uninstall(Array)
#4 /var/www/html/vendor/drush/drush/includes/command.inc(422): drush_pm_uninstall('gdpr_tasks')
#5 /var/www/html/vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#6 /var/www/html/vendor/drush/drush/includes/command.inc(199): drush_command('gdpr_tasks')
#7 /var/www/html/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#8 /var/www/html/vendor/drush/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#9 /var/www/html/vendor/drush/drush/drush.php(12): drush_main()
#10 {main}
Comment | File | Size | Author |
---|---|---|---|
#6 | 2972036_Uninstall_page_details.png | 127.13 KB | Kosa Ilma |
Comments
Comment #2
perpignan CreditAttribution: perpignan commented+1 Same issue
Comment #3
dsnopekI was able to get this disabled via drush by doing:
There's a hidden dependency on Drupal 8.5, because gdpr_tasks depends on a version of the 'entity' module that only works on Drupal 8.5, which is why we needed to disable this.
Comment #4
Balu ErtlComment #5
mhavelant CreditAttribution: mhavelant at Brainsum for Tieto commentedThe dependencies have now been defined in the info.yml files, so incompatible modules should no longer be installable.
As for "can't be uninstalled due to xy field", for now, you can use drush or the UI to remove the problematic fields.
Not being able to remove fields that use plugin-defined field types is the expected Drupal behavior, so in this issue we should probably provide a list of the depending fields and blocking uninstall until they are removed by hand (similarly to "there's data for this module, remove it before uninstalling"; see: drupal issue 2688945).
Comment #6
Kosa Ilma CreditAttribution: Kosa Ilma at Brainsum for Tieto commentedThe module gives details on the uninstall page.
Comment #7
Kosa Ilma CreditAttribution: Kosa Ilma at Brainsum for Tieto commentedComment #8
Balu ErtlComment #9
Balu ErtlMoving issue state manually from Fixed 🠂 to Closed (fixed) in the hope that issue queue gets cleaner a bit.