Non-static method cannot be called statically

149 views
Skip to first unread message

Matthew Cowgur

unread,
Oct 30, 2023, 9:52:50 AM10/30/23
to SimpleSAMLphp
I'm in the middle of upgrading to Drupal 10 and SimpleSAMLphp to 2.x, and I've just updated the config.php file that I was previously using with the config-template provided in the newer version of SSP. I'm now getting this error:

Non-static method SimpleSAML\Utils\HTTP::canSetSameSiteNone() cannot be called statically in require() (line 584 of /app/simplesamlphp/config/config.php

I noticed that in my old config.php I had previously added $httpUtils = new \SimpleSAML\Utils\HTTP(); at the top, but this is not included in the config-template. I've begun going through the release notes more carefully after being told that I needed to enable the admin explicitly in the config.php file (Thanks!) but I haven't found anything that seems related to this error. Can anyone help?

Tim van Dijen

unread,
Oct 30, 2023, 10:02:30 AM10/30/23
to SimpleSAMLphp
Maybe your Drupal module (I assume you're using simplesamlphp_auth) hasn't updated the template yet.

- Tim

Op maandag 30 oktober 2023 om 14:52:50 UTC+1 schreef matt....@gmail.com:

Tim van Dijen

unread,
Oct 30, 2023, 10:03:18 AM10/30/23
to SimpleSAMLphp
Also note that Drupal 10 and SimpleSAMLphp 2.0 are not compatible.
SimpleSAMLphp 2.1 was released minutes ago and that one should work.

Op maandag 30 oktober 2023 om 15:02:30 UTC+1 schreef Tim van Dijen:
Reply all
Reply to author
Forward
0 new messages