PHP fatal error occurred with SAML user fields attribute mapping form

Created on 5 April 2023, over 1 year ago
Updated 28 June 2024, 6 months ago

Problem/Motivation

An PHP fatal error occurred when visiting the SAML user fields attribute mapping form(/admin/config/people/saml/user-fields)

Error message is

The website encountered an unexpected error. Please try again later.

Error: Object of class Drupal\Core\Entity\EntityFieldManager could not be converted to string in Drupal\samlauth_user_fields\Form\SamlauthMappingListForm::create() (line 58 of modules/contrib/samlauth/modules/samlauth_user_fields/src/Form/SamlauthMappingListForm.php).

Steps to reproduce

  1. Install SAML Auth User Fields Mapping sub module.
  2. Go to the configuration page at (/admin/config/people/saml/user-fields).

Proposed resolution

There is typo at line 57 in samlauth_user_fields/src/Form/SamlauthMappingListForm.php

https://git.drupalcode.org/project/samlauth/-/blob/8.x-3.x/modules/samla...

which should be ',' instead of '.'.

🐛 Bug report
Status

Closed: duplicate

Version

3.8

Component

Code

Created by

🇦🇺Australia mingsong 🇦🇺

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024