0

After updating to Drupal 10.2.5 and CiviCRM 5.71.2 (or later) under IIS we get many similar errors like:

User error: "0" is an invalid render array key in Drupal\Core\Render\Element::children() (line 98 of core\lib\Drupal\Core\Render\Element.php).

when managing Drupal People -> Permissions.

Debugging shows that CiviCRM related permissions like "Administer CiviCRM" are involved. Debugging indicates that there are key-value pairs involved where the key is numeric and the value is not an array.

Has anyone else seen the issue? Has anyone any suggestions?

2
  • Looks likely related to github.com/civicrm/civicrm-core/pull/29173
    – Coleman
    Apr 10 at 14:39
  • @Coleman Many thanks. It is as useful pointer, but I haven't been able to work out from where Drupal gets the 'offending' permissions. <Drupal root>/vendor/civicrm/civicrm-core/CRM/Core/Permission/Base.php getAllModulePermissions doesn't get them. <Drupal root.\vendor\civicrm\civicrm-core\CRM\Core\Permission.php getCorePermissions gets them 'correctly' formatted. Apr 11 at 14:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.