Problem/Motivation

After uninstalling the module, reinstalling it fails with a PreExistingConfigException because the user.role.trial configuration remains in active configuration.

Steps to reproduce

  1. Install the module:
    drush en -y trial_role
  2. Uninstall the module:
    drush pmu -y trial_role
  3. Install the module again:
    drush en -y trial_role

Proposed resolution

Ensure that the user.role.trial configuration is properly cleaned up during module uninstall, or otherwise prevent the configuration conflict during reinstall.

Issue fork trial_role-3604167

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dkmishra created an issue. See original summary.

dkmishra’s picture

Status: Active » Needs review
eiriksm’s picture

Status: Needs review » Fixed

Thanks 🙏

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • eiriksm committed c66bec9d on 2.x authored by dkmishra
    fix: #3604167 Module cannot be reinstalled after uninstall due to...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.