Config Role Split tries to process translations of user.role.* configuration in a multilingual site.

Created on 2 June 2018, over 6 years ago
Updated 20 September 2024, about 2 months ago

There is an error on the /admin/config/development/configuration page and after execution drush cim, drush cex if site is multilingual:

The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\config_role_split\Plugin\ConfigFilter\RoleSplitFilter::mergePermissions() must be of the type array, null given, called in config_role_split/src/Plugin/ConfigFilter/RoleSplitFilter.php on line 36 in Drupal\config_role_split\Plugin\ConfigFilter\RoleSplitFilter->mergePermissions() (line 206 of modules/contrib/config_role_split/src/Plugin/ConfigFilter/RoleSplitFilter.php).
Drupal\config_role_split\Plugin\ConfigFilter\RoleSplitFilter->mergePermissions(NULL, Array) (Line: 36)
Drupal\config_role_split\Plugin\ConfigFilter\RoleSplitFilter->filterRead('user.role.anonymous', Array) (Line: 93)
Drupal\config_role_split\Plugin\ConfigFilter\RoleSplitFilter->filterReadMultiple(Array, Array) (Line: 85)
Drupal\config_filter\Config\FilteredStorage->readMultiple(Array) (Line: 95)
Drupal\Core\Config\CachedStorage->readMultiple(Array) (Line: 409)
Drupal\Core\Config\StorageComparer->getAndSortConfigData('language.de') (Line: 204)
Drupal\Core\Config\StorageComparer->createChangelist() (Line: 183)
Drupal\config\Form\ConfigSync->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 514)
Drupal\Core\Form\FormBuilder->retrieveForm('config_admin_import_form', Object) (Line: 271)
Drupal\Core\Form\FormBuilder->buildForm('config_admin_import_form', Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 99)
Drupal\shield\ShieldMiddleware->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 664)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
πŸ› Bug report
Status

Needs review

Component

Code

Created by

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