Causes fatal errors after uninstalling - 'Adding non-existent permissions to a role is not allowed. The incorrect permissions are "edit gdpr_checklist checklistapi checklist"'

Created on 28 July 2023, almost 2 years ago

Problem/Motivation

Website should continue to work after GDPR is uninstalled.

Steps to reproduce

Fresh site, Drutopia distribution.

Uninstall GDPR.

Configure a text format.

WSOD, with error in logs: Adding non-existent permissions to a role is not allowed. The incorrect permissions are "edit gdpr_checklist checklistapi checklist"

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: cannot reproduce

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

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

Comments & Activities

  • Issue created by @mlncn
  • πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

    Exporting configuration, deleting the 'edit gdpr_checklist checklistapi checklist' permission from any roles that had it, and re-importing was a quick workaround.

    Honestly keeping track of where permissions came from was something i thought Drupal was supposed to be doing, and isn't the responsibility of modules to clean up?

  • Status changed to Closed: cannot reproduce almost 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

    OK this was caused by Drutopia adding that permission in a config action.

    Sorry i had looked for that in the feature modules but it was in the install profile itself, which i hadn't checked.

Production build 0.71.5 2024