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

Moodle 4.3.3 Issue after login. Exception - update_internal_user_password() #35

Open
vcciaccounts opened this issue Feb 16, 2024 · 0 comments

Comments

@vcciaccounts
Copy link

vcciaccounts commented Feb 16, 2024

Error message

Exception - update_internal_user_password(): Argument #2 ($password) must be of type string, null given, called in [dirroot]/lib/moodlelib.php on line 4470

Resolution
Adjust the following in line 4470 of /lib/moodlelib.php

            // If the existing hash is using an out-of-date algorithm (or the legacy md5 algorithm), then we should update to
            // the current hash algorithm while we have access to the user's password.
	   update_internal_user_password($user, $password);

to

            // If the existing hash is using an out-of-date algorithm (or the legacy md5 algorithm), then we should update to
            // the current hash algorithm while we have access to the user's password.
            if ($password != null) {
		update_internal_user_password($user, $password);
	    }
@vcciaccounts vcciaccounts changed the title Moodle 4.3.3 Issue after login Moodle 4.3.3 Issue after login. Exception - update_internal_user_password() Feb 16, 2024
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