-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.9
-
None
-
MOODLE_401_STABLE
At debugging we were misled by our own accounting policy where we use only login via Shibboleth and both username and email field have the same structure, but might not be identical (e.g. username = martinb@example.org - not an email alias!, email = martin.bozic@example.org).
Debugging log for the mentioned task looks like this:
Execute adhoc task: mod_forum\task\send_user_notifications
|
Adhoc task id: 17085718 |
Adhoc task custom data: ["725157"] |
... started 09:59:57. Current memory use 21.6 MB. |
Debugging increased temporarily due to faildelay of 86400 |
Sending messages to martinb@example.org (1234) |
Failed to send post 6789 |
Sent 0 messages with 1 failures |
... used 28 dbqueries |
... used 0.072945117950439 seconds |
Adhoc task failed: mod_forum\task\send_user_notifications,error/Error sending posts.
|
Backtrace:
|
* line 367 of /lib/cronlib.php: call to mod_forum\task\send_user_notifications->execute() |
* line 198 of /lib/cronlib.php: call to cron_run_inner_adhoc_task() |
* line 131 of /admin/cli/adhoc_task.php: call to cron_run_adhoc_tasks() |
Even if one doesn't use such username policy I think it would shorten the debugging times if the task log would print email field instead of username.