TypeError: explode(): Argument #2 ($string) must be of type string, null given in explode() (line 101 of modules/contrib/o365/src/RolesService.php).

Created on 4 April 2024, 9 months ago
Updated 20 April 2024, 8 months ago

Problem/Motivation

The 5.0.6 version shows a white screen error after the user login. This is the error message:

The website encountered an unexpected error. Try again later.

TypeError: explode(): Argument #2 ($string) must be of type string, null given in explode() (line 101 of modules/contrib/o365/src/RolesService.php).
Drupal\o365\RolesService->getConfiguredRoles() (Line: 39)
Drupal\o365\RolesService->handleRoles(Object) (Line: 41)
Drupal\o365\EventSubscriber\RoleEventSubscriber->handleRoles(Object, 'externalauth.login', Object)
call_user_func(Array, Object, 'externalauth.login', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'externalauth.login') (Line: 155)
Drupal\externalauth\ExternalAuth->userLoginFinalize(Object, '0c62fab7-8b3d-44ef-8e49-570f8cad0947', 'o365_sso') (Line: 141)
Drupal\o365_sso\Controller\UserLoginController->login()
call_user_func_array(Array, Array) (Line: 123)

Steps to reproduce

Update the module from 5.0.5 to 5.0.6

๐Ÿ› Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ดColombia Freddy Rodriguez Bogotรก

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