Problem/Motivation
When upgrading to 8.x-4.8 an error can occur when ldap_user is installed. If `ldapUserSyncMappings.drupal` is not an array.
ldap_user.settings:
ldapUserSyncMappings.drupal
[error] array_key_exists(): Argument #2 ($array) must be of type array, null given
[error] Update failed: ldap_user_update_8408
Debug Report
Proposed resolution
$drupal_mapping = $settings->get('ldapUserSyncMappings.drupal');
to
$drupal_mapping = $settings->get('ldapUserSyncMappings.drupal') ?? [];
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork ldap-3437015
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
alxn commentedI can confirm this fixes the error
[error] array_key_exists(): Argument #2 ($array) must be of type array, null givenwhen upgrading drupal/ldap 4.7.0 to 4.8.0, thanks!Comment #5
dasginganinjaI can confirm that this fixes this issue for us as well as we had issues upgrading to 4.8 with null value for this as well.
Thank you!
Comment #6
bluegeek9 commented