Argument #1 ($nameIdPolicy) must be of type ?array, string given

Created on 22 February 2024, 10 months ago
Updated 22 May 2024, 7 months ago

Problem/Motivation

hi ,
We have updated our drupal site to version 10 (initially we had version simplesamlphp 2.0.2 and simplesaml module v3.3 with drupal 9 and it was working) once we upgraded to drupal 10 it stopped working. so i went through the module page stating : SimpleSAMLphp 2.1 is compatible with Symfony 6 and therefore Drupal 10, the new 4.x version of this project supports that. so i updated simplesamlphp to 2.1.1 and simplesaml module is 4.0.0 , however still getting error :

TypeError: SimpleSAML\Utils\Config\Metadata::parseNameIdPolicy(): Argument #1 ($nameIdPolicy) must be of type ?array, string given, called in /storage/www/www/lib-reimagined-9/vendor/simplesamlphp/simplesamlphp/modules/saml/src/Message.php on line 477 in SimpleSAML\Utils\Config\Metadata::parseNameIdPolicy() (line 250 of /storage/www/www/lib-reimagined-9/vendor/simplesamlphp/simplesamlphp/src/SimpleSAML/Utils/Config/Metadata.php).

Steps to reproduce

we get this error once we click on login via saml

Proposed resolution

i have updated to version 2.1 which supports Symphony 6 and still getting this error. I even cleared cache in drupal to be sure. Please let me know what i can do. thank you

🐛 Bug report
Status

Active

Version

4.0

Component

User interface

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024