Remove adding of non-existent permissions to a role from Webship. Which is not allowed in Drupal 10

Created on 21 January 2023, almost 2 years ago
Updated 5 August 2023, over 1 year ago

Problem/Motivation

Having the following

RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions are "access site-wide contact form". in Drupal\user\Entity\Role->calculateDependencies() (line 206 of /var/www/html/dev/w10c3/web/core/modules/user/src/Entity/Role.php)
#0 /var/www/html/dev/w10c3/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(320): Drupal\user\Entity\Role->calculateDependencies()
#1 /var/www/html/dev/w10c3/web/core/modules/user/src/Entity/Role.php(179): Drupal\Core\Config\Entity\ConfigEntityBase->preSave()
#2 /var/www/html/dev/w10c3/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(528): Drupal\user\Entity\Role->preSave()
#3 /var/www/html/dev/w10c3/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(483): Drupal\Core\Entity\EntityStorageBase->doPreSave()
#4 /var/www/html/dev/w10c3/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(253): Drupal\Core\Entity\EntityStorageBase->save()
#5 /var/www/html/dev/w10c3/web/core/lib/Drupal/Core/Entity/EntityBase.php(339): Drupal\Core\Config\Entity\ConfigEntityStorage->save()
#6 /var/www/html/dev/w10c3/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(608): Drupal\Core\Entity\EntityBase->save()
#7 /var/www/html/dev/w10c3/web/core/lib/Drupal/Core/Config/ConfigInstaller.php(388): Drupal\Core\Config\Entity\ConfigEntityBase->save()
#8 /var/www/html/dev/w10c3/web/core/lib/Drupal/Core/Config/ConfigInstaller.php(148): Drupal\Core\Config\ConfigInstaller->createConfiguration()
#9 /var/www/html/dev/w10c3/web/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php(75): Drupal\Core\Config\ConfigInstaller->installDefaultConfig()
#10 /var/www/html/dev/w10c3/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(319): Drupal\Core\ProxyClass\Config\ConfigInstaller->installDefaultConfig()
#11 /var/www/html/dev/w10c3/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install()
#12 /var/www/html/dev/w10c3/web/core/includes/install.core.inc(1657): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install()
#13 /var/www/html/dev/w10c3/web/core/includes/install.core.inc(698): install_install_profile()
#14 /var/www/html/dev/w10c3/web/core/includes/install.core.inc(569): install_run_task()
#15 /var/www/html/dev/w10c3/web/core/includes/install.core.inc(119): install_run_tasks()
#16 /var/www/html/dev/w10c3/web/core/install.php(48): install_drupal()
#17 {main}
.

Proposed resolution

Remove all non-existent permissions for not enabled modules

Remaining tasks

  • ✅ File an issue
  • ➖ Addition/Change/Update/Fix
  • ➖ Merge request, Patch, or Commit
  • ➖ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ➖ Code review by maintainers
  • ➖ Full testing and approval
  • ➖ Credit contributors
  • ➖ Review with the product owner
  • ➖ Release notes snippet
  • ❌ Release

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
📌 Task
Status

Fixed

Version

10.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024