$ 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}
CommentFileSizeAuthor
#6 2972036_Uninstall_page_details.png127.13 KBKosa Ilma
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mhavelant created an issue. See original summary.

perpignan’s picture

Issue summary: View changes

+1 Same issue

dsnopek’s picture

I was able to get this disabled via drush by doing:

drush config-delete field.field.gdpr_task.gdpr_remove.removal_log
drush config-delete field.storage.gdpr_task.removal_log
drush pmu gdpr_tasks

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.

Balu Ertl’s picture

Assigned: Unassigned » Kosa Ilma
mhavelant’s picture

The 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).

Kosa Ilma’s picture

The module gives details on the uninstall page.

Kosa Ilma’s picture

Status: Active » Fixed
Balu Ertl’s picture

Balu Ertl’s picture

Status: Fixed » Closed (fixed)

Moving issue state manually from Fixed 🠂 to Closed (fixed) in the hope that issue queue gets cleaner a bit.