non-existent permissions

Created on 1 September 2023, over 1 year ago
Updated 19 February 2024, 10 months ago

Problem/Motivation

On a new Drupal 10 site, with Workflow module installed, when saving permissions for the Content Editor role, this error was produced:

The website encountered an unexpected error. Please try again later.

RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions are "create state workflow_transition". in Drupal\user\Entity\Role->calculateDependencies() (line 207 of core/modules/user/src/Entity/Role.php).

Steps to reproduce

Save Content Editor role permissions, without changing any.

Proposed resolution

Remove any non-existent permissions from workflow code.

Drupal version : 10.1.2
PHP OS : Linux
PHP version : 8.1.21
Workflow version: 8.x-1.7

🐛 Bug report
Status

Closed: duplicate

Version

1.7

Component

Code

Created by

🇺🇸United States snowmountain

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

Comments & Activities

Production build 0.71.5 2024