Error when access setting page

Created on 25 June 2025, 3 months ago

Problem/Motivation

When access admin/config/people/saml/simplesamlphp-auth-migration
the error occurs.

TypeError: Cannot access offset of type string on string in Drupal\samlauth_simplesamlphp_auth_migration\Migrate->showChanges() (line 396 of modules/custom/samlauth_simplesamlphp_auth_migration/src/Migrate.php).
Drupal\samlauth_simplesamlphp_auth_migration\Form\MigrationForm->buildForm()
call_user_func_array() (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 284)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)
πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡―πŸ‡΅Japan liuyuanchao

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

Comments & Activities

  • Issue created by @liuyuanchao
  • πŸ‡ΊπŸ‡ΈUnited States jrb Raleigh-Durham Area, NC, USA

    Thanks for taking a look!

    I think you must have the certData specified directly in your authsources.php file (we have the cert filename set in certificate instead).

    I've pushed an update to the sandbox module that should fix this. Please take a look and see if it works for you now. If not, please let me know what version of simpleSAMLphp you're using. And, please share as much of your simpleSAMLphp Authentication Drupal configuration, config.php, authsources.php, and saml20-idp-remote.php as you're comfortable sharing (with any actual key/cert values replaced with something like "CERT-DATA-HERE").

  • πŸ‡―πŸ‡΅Japan liuyuanchao

    Hi, @jrb
    > I think you must have the certData specified directly in your authsources.php file

    Yes, you are right.
    Thanks for your fixing.

    But I'm sorry for slow response, because we are focus on samlauth migration.
    And we had migrated manually to samlauth.

    Thanks for you great project.

Production build 0.71.5 2024