We have combination of users, some are part of group and some are not.
Those users who are not part of any group have an empty value for field_user_adfs_role, and here is where the code is failing with the following error :

TypeError: array_walk(): Argument #1 ($array) must be of type array, null given in array_walk() (line 77 of /var/www/html/q-test/web/modules/contrib/gsaml/gsaml.module)
#0 /var/www/html/q-test/web/modules/contrib/gsaml/gsaml.module(77): array_walk()
#1 [internal function]: gsaml_simplesamlphp_auth_user_attributes()

CommentFileSizeAuthor
#2 3375336_fix.patch650 bytespratikshad

Issue fork gsaml-3375336

Command icon 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

PratikshaD created an issue. See original summary.

pratikshad’s picture

StatusFileSize
new650 bytes

Please find the below patch file for above issue.

keshav.k made their first commit to this issue’s fork.

keshavv’s picture

Status: Active » Needs review

I have added the check if there is no value in the field then a blank array will be assigned.

Please review the MR.

nsalves’s picture

Thanks for the feedback, the fix was included in the dev branch. A new release will soon follow

nsalves’s picture

nsalves’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.