Solved - Uninstalling creates major issues

Created on 14 January 2022, about 3 years ago
Updated 28 March 2023, about 2 years ago

This module was originally installed when the site was Drupal 8.3
The Site is now 9.3.0

I stopped using the functionality but never uninstalled the module.

The other day I removed all the ECK content. Then proceeded to uninstall the module. I did this on a dev site without problems, so I thought it would be ok.

When I uninstalled the module, this process removed the anonymous user role and other unexpected bad things.

I restored the site.

Now I am trying to figure out how to uninstall this and not have disaster.

When I go to uninstall this, I see this:

Configuration deletions
The listed configuration will be deleted.

Action

  • Add the Content Admin role to the selected users
  • Add the Content Editor role to the selected users
  • Remove the Content Admin role from the selected users
  • Remove the Content Editor role from the selected users

Entity browser

  • Image Browser

Role

  • Anonymous user
  • Content Admin
  • Content Editor

View

  • Admin - Manage Destinations
  • Media Browser - Image Browser

This is obviously wrong.
Can anyone shed some light on this?

How can I safely uninstall this module?

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇨🇦Canada dadderley Vancouver

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇧🇪Belgium dieterholvoet Brussels

    Could you check the dependencies key of all ECK configs that are about to be deleted? Any chance the user.role.anonymous is listed in any of them? If so, please share the config YAML so we can try and reproduce the issue. If not, maybe check the other way around: what dependencies are listed in the user.role.anonymous config? Are any of them (indirectly) related to your ECK entity types?

  • 🇨🇦Canada dadderley Vancouver

    Thanks Dieter,

    I managed to uninstall it on 3 sites.

    There were a couple of types and bundles.
    I deleted all of the ECK content, then fields in each of the bundles.
    Checked all of the permissions.

    Then I crossed my fingers and uninstalled.

    It did work, but the first time I tried the uninstall without doing this, It scared the heck out of me.
    It's all good now.

    Not sure of what went wrong in the first place.
    When I first started updating the site it had been stuck at 8.6.3 for a long time and doing the updates was a rocky process.

  • Status changed to Closed: outdated about 2 years ago
Production build 0.71.5 2024