-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
4.2
-
None
-
MOODLE_402_STABLE
Good morning,
The forum mailing scheduled task crashes when an access restriction in a course no longer has a group. If this problem occurs in a single course, Moodle will be unable to send emails after announcements.
Here's how to reproduce this bug:
- In a course, create a group (for example "Group 1") and assign participants to it
- Create a Forum activity in a section, force subscription in this activity.
- In the section that contains the announcement, put an access restriction "only Group 1 can see, otherwise hide"
- Delete the group "Group 1"
- Send an announcement without modification deadline
- The platform should be unable to send emails
- Go to the Administration panel then in \mod_forum\task\cron_task
- Click on “Launch now”
You should get an error like this:
{{Execute scheduled task: }}
{{Envoi des messages et maintenance des forums (mod_forum\task\cron_task) ... started 11:20:22. }}
{{Current memory use 17.3 Mo. }}
{{Debugging increased temporarily due to faildelay of 960 Removing old digest records from 7 days ago. }}
{{Removed all old digest records. }}
{{Fetching unmailed posts. }}
{{Done Processing post information Processed 2 posts Filling caches Filling course cache Done }}
{{ Filling forum cache Done }}
{{ Filling discussion cache Done }}
{{ Filling user subscription cache ... used 20 dbqueries ... used 0.047622919082642 seconds Scheduled task failed: Envoi des messages et maintenance des forums (mod_forum\task\cron_task),}}
{{Impossible de trouver l'enregistrement de données dans la table course de la base de données. }}
{{Debug info: SELECT id,category FROM
{course}WHERE id = ? [array ( 0 => 0, )] }}
{{Backtrace: }}
- Unknown macro: {{line 1630 of /lib/dml/moodle_database.php}
}
- Unknown macro: {{* line 85 of /group/classes/visibility.php}
}
- Unknown macro: {{* line 659 of /lib/grouplib.php}
}
- Unknown macro: {{* line 206 of /availability/condition/group/classes/condition.php}
}
- Unknown macro: {{* line 340 of /availability/classes/tree.php}
}
- Unknown macro: {{* line 641 of /availability/classes/info.php}
}
- Unknown macro: {{* line 109 of /availability/classes/info_module.php}
}
- Unknown macro: {{* line 471 of /mod/forum/classes/subscriptions.php}
}
- Unknown macro: {{* line 293 of /mod/forum/classes/task/cron_task.php}
}
- Unknown macro: {{* line 167 of /mod/forum/classes/task/cron_task.php}
}
- Unknown macro: {{* line 115 of /mod/forum/classes/task/cron_task.php}
}
- Unknown macro: {{* line 405 of /lib/classes/cron.php}
}
- * line 166 of /admin/cli/scheduled_task.php: call to core\cron::run_inner_scheduled_task()
At your disposal for any further information
Maxime Cruzel
- duplicates
-
MDL-79611 Assignment View with missing group is wrongly displayed
- Closed