catalyst / moodle-auth_saml2

SAML done 100% in Moodle, fast, simple, secure
https://moodle.org/plugins/auth_saml2
70 stars 132 forks source link

Unable to regenerate certificate - date() error. #814

Open thepurpleblob opened 1 month ago

thepurpleblob commented 1 month ago
Exception - date(): Argument #2 ($timestamp) must be of type ?int, string given

[More information about this error](https://docs.moodle.org/404/en/error/moodle/generalexceptionmessage)

Debug info:
Error code: generalexceptionmessage×Dismiss this notification
Stack trace:
line 63 of /auth/saml2/regenerate.php: TypeError thrown
line 63 of /auth/saml2/regenerate.php: call to date()

Seems to be true the second parameter is a str_replace which returns a string not an int. Casting the str_replace with (int) seems to sort it.