Fatal error after deleting content type

Created on 20 March 2024, 9 months ago
Updated 22 March 2024, 9 months ago

Problem/Motivation

The module is not compatible with Drupal 10, the deletion of a content type will break the site and generate fatal errors in the permissions.
If you try to save the permissions after deleting a content type that was using View Unpublished, then you will get this error:
RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions are "view any unpublished landing_page content". in Drupal\user\Entity\Role->calculateDependencies() (line 207 of /var/www/html/web/core/modules/user/src/Entity/Role.php).

It seems like the module is not defining the dependencies correctly:
https://www.drupal.org/node/3055548

This might be a similar issue as this one: https://www.drupal.org/project/field_permissions/issues/3342508 🐛 RuntimeException: Adding non-existent permissions to a role is not allowed. Needs review

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇨🇦Canada phjou Vancouver 🇨🇦 🇪🇺

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

Comments & Activities

Production build 0.71.5 2024