wafaahamdy / moodle-tool_resetpasswords

A Moodle Plugin for bulk reset password
Other
0 stars 1 forks source link

undefined function tool_resetpasswords\user_update_user() #10

Closed Snickser closed 2 months ago

Snickser commented 7 months ago
Execute scheduled task: Bulk reset password (tool_resetpasswords\task\bulkreset_passwords)

... started 07:23:16. Current memory use 14.3 Мбайт.
Creating passwords for required users...

Warning: Undefined variable $SITE in /var/www/html/moodle/admin/tool/resetpasswords/classes/rest_sendmail.php on line 48

Warning: Attempt to read property "shortname" on null in /var/www/html/moodle/admin/tool/resetpasswords/classes/rest_sendmail.php on line 48
... used 2 dbqueries
... used 0.061498880386353 seconds
Scheduled task failed: Bulk reset password (tool_resetpasswords\task\bulkreset_passwords),Call to undefined function tool_resetpasswords\user_update_user()
Backtrace:
* line 61 of /admin/tool/resetpasswords/classes/task/bulkreset_passwords.php: call to tool_resetpasswords\rest_sendmail->performreset()
* line 405 of /lib/classes/cron.php: call to tool_resetpasswords\task\bulkreset_passwords->execute()
* line 198 of /admin/cli/scheduled_task.php: call to core\cron::run_inner_scheduled_task()

moodle 4.3+