"Adding non-existent permissions to a role is not allowed" error when managing permissions

Created on 20 March 2024, 7 months ago

Problem/Motivation

As an admin I want to check permissions for content and media types.

Steps to reproduce

Selecting a content type from the Structure/content types menu and trying to access 'Manage permissions' leads to a white screen with 'The website encountered an unexpected error. Try again later'. Same for trying to access 'Manage permissions' for some media types.
On the other hand I can access 'Manage permissions' for Taxonomy types, Block types.

I am not using additional modules to manage permissions.
I have updated by composer to 10.2.4, PHP 8.3.3.

Drupal error log output:
Uncaught PHP Exception RuntimeException:
"Adding non-existent permissions to a role is not allowed.
The incorrect permissions are
"grant own content access",
"publish any node type department_side",
"publish own node type appointment",
"publish own node type department",
"publish own node type department_side",
"publish own node type employe",
"publish own node type news",
"publish own node type page",
"unpublish own node type appointment",
"unpublish own node type department",
"unpublish own node type department_side",
"unpublish own node type employe",
"unpublish own node type news",
"unpublish own node type page"."
at /opt/drupal/web/core/modules/user/src/Entity/Role.php line 207

🐛 Bug report
Status

Closed: cannot reproduce

Version

10.2

Component
Other 

Last updated about 12 hours ago

Created by

🇩🇪Germany olkoeller Hessen

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

Comments & Activities

Production build 0.71.5 2024