Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thepurpleblob opened this issue May 8, 2024 · 0 comments
Open

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

thepurpleblob opened this issue May 8, 2024 · 0 comments

Comments

@thepurpleblob
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant