In trying to resolve some issues with users not getting redirected to on logout I'm testing the 2.x-dev branch. Now, instead of getting sent to /saml/sls on logout I'm seeing a 500 error:
Error: Call to a member function processSLO() on null in Drupal\samlauth\SamlService->sls() (line 291 of .../docroot/modules/contrib/samlauth/src/SamlService.php)
that line is:
$url = $this->samlAuth->processSLO(FALSE, NULL, FALSE, NULL, TRUE);
changing that line to $url = '';
resolves the issue and users are able to logout successfully and return to the homepage.
I'm not totally sure what's going on here so I'm not sure of the correct path to go forward, but I'm assuming just removing this line isn't it. :)
Comment | File | Size | Author |
---|---|---|---|
#3 | error_call_to_a_member_function_on_null-2910257-3.patch | 665 bytes | nathandentzau |
#2 | error_call_to_a_member-2910257-2.patch | 723 bytes | froboy |
Comments
Comment #2
froboyPatch seems to resolve the issue, but not sure if it breaks the error-checking going on here.
Comment #3
nathandentzauHi froboy,
There is a `getSamlAuth()` method that instantiates the OneLogin_Saml2_Auth object if the`samlAuth` property is null. I've attached a patch. Please test this. Thanks!
Comment #4
nathandentzauComment #6
roderikThanks. This was an effect of an untested mistake in #2863975-5: Fix SLS.