- Issue created by @JaydipJD
[RuntimeException]
Adding non-existent permissions to a role is not allowed. The incorrect permissions are "use text format full_html".
I am getting above issue while upgrading site to D 10.1.5
Steps to reproduce:
I am already having this module in my D9.5 site.
Upgrade site to D10.1.5
site installation breaks
In Role.php line 207:
[RuntimeException]
Adding non-existent permissions to a role is not allowed. The incorrect permissions are "use text format full_html".
Exception trace:
at /app/docroot/core/modules/user/src/Entity/Role.php:207
Drupal\user\Entity\Role->calculateDependencies() at /app/docroot/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:321
Drupal\Core\Config\Entity\ConfigEntityBase->preSave() at /app/docroot/core/modules/user/src/Entity/Role.php:179
Drupal\user\Entity\Role->preSave() at /app/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php:528
Drupal\Core\Entity\EntityStorageBase->doPreSave() at /app/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php:483
Drupal\Core\Entity\EntityStorageBase->save() at /app/docroot/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:257
Drupal\Core\Config\Entity\ConfigEntityStorage->save() at /app/docroot/core/lib/Drupal/Core/Entity/EntityBase.php:343
Drupal\Core\Entity\EntityBase->save() at /app/docroot/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:609
Drupal\Core\Config\Entity\ConfigEntityBase->save() at /app/docroot/modules/contrib/acquia_cms_common/src/Facade/PermissionFacade.php:76
Drupal\acquia_cms_common\Facade\PermissionFacade->addRole() at /app/docroot/modules/contrib/acquia_cms_common/src/Facade/PermissionFacade.php:114
Drupal\acquia_cms_common\Facade\PermissionFacade->createOrUpdateRole() at /app/docroot/modules/contrib/acquia_cms_common/acquia_cms_common.module:325
acquia_cms_common_modules_installed() at n/a:n/a
call_user_func_array() at /app/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php:409
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() at /app/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php:388
Drupal\Core\Extension\ModuleHandler->invokeAllWith() at /app/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php:416
Drupal\Core\Extension\ModuleHandler->invokeAll() at /app/docroot/core/lib/Drupal/Core/Extension/ModuleInstaller.php:381
Drupal\Core\Extension\ModuleInstaller->install() at /app/docroot/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php:83
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install() at /app/docroot/core/includes/install.core.inc:1893
_install_module_batch() at /app/docroot/core/includes/batch.inc:296
_batch_process() at /app/docroot/core/includes/form.inc:955
batch_process() at /app/docroot/core/includes/install.core.inc:651
install_run_task() at /app/docroot/core/includes/install.core.inc:569
install_run_tasks() at /app/docroot/core/includes/install.core.inc:119
install_drupal() at /app/vendor/drush/drush/includes/drush.inc:69
drush_call_user_func_array() at /app/vendor/drush/drush/includes/drush.inc:53
drush_op() at /app/vendor/drush/drush/src/Commands/core/SiteInstallCommands.php:169
Drush\Commands\core\SiteInstallCommands->install() at n/a:n/a
call_user_func_array() at /app/vendor/consolidation/annotated-command/src/CommandProcessor.php:276
Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback() at /app/vendor/consolidation/annotated-command/src/CommandProcessor.php:212
Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter() at /app/vendor/consolidation/annotated-command/src/CommandProcessor.php:176
Consolidation\AnnotatedCommand\CommandProcessor->process() at /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php:391
Consolidation\AnnotatedCommand\AnnotatedCommand->execute() at /app/vendor/symfony/console/Command/Command.php:326
Symfony\Component\Console\Command\Command->run() at /app/vendor/symfony/console/Application.php:1081
Symfony\Component\Console\Application->doRunCommand() at /app/vendor/symfony/console/Application.php:320
Symfony\Component\Console\Application->doRun() at /app/vendor/symfony/console/Application.php:174
Symfony\Component\Console\Application->run() at /app/vendor/drush/drush/src/Runtime/Runtime.php:110
Drush\Runtime\Runtime->doRun() at /app/vendor/drush/drush/src/Runtime/Runtime.php:40
Drush\Runtime\Runtime->run() at /app/vendor/drush/drush/drush.php:139
require() at /app/vendor/drush/drush/drush:4
include() at /app/vendor/bin/drush:119
Active
3.3
Code