SAML Settings page gets fatal error in a new installation

Created on 8 May 2024, 9 months ago
Updated 27 May 2024, 8 months ago

I just installed saml_sp 4.x-dev and enabled the module, then tried to navigate to /admin/config/people/saml_sp - the SAML Settings page. I get a fatal error:

The website encountered an unexpected error. Please try again later.
Error: Call to a member function get() on null in Drupal\saml_sp\Form\SamlSpConfig->isOverridden() (line 61 of modules/contrib/saml_sp/src/Form/SamlSpConfig.php).
Drupal\saml_sp\Form\SamlSpConfig->isOverridden() (Line: 74)
Drupal\saml_sp\Form\SamlSpConfig->overriddenValue() (Line: 227)
Drupal\saml_sp\Form\SamlSpConfig->buildForm()

The line in isOverridden() :

    return $this->configFactory->get('saml_sp.settings')->hasOverrides($name);

There is no configFactory because the parent __construct() from ConfigFormBase is overridden by SamlSpConfig. If I combine the two, it works.

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States brad.bulger

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