-
Bug
-
Resolution: Fixed
-
Major
-
3.1.3, 3.3.1, 3.3.6, 3.4.2, 3.5
-
MOODLE_31_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
-
MOODLE_34_STABLE, MOODLE_35_STABLE
-
master_
MDL-57486 -
Easy
-
I'm seeing this in my cron output...
```
Scheduled task failed: Cleanup category recycle bin (tool_recyclebin\task\cleanup_category_bin),Can not find data record in database table course_categories.
Debug info:
SELECT id,parent FROM
WHERE id = ?
[array (
0 => '1255',
)]
Backtrace:
- line 1478 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
- line 6702 of /lib/accesslib.php: call to moodle_database->get_record()
- line 291 of /admin/tool/recyclebin/classes/category_bin.php: call to context_coursecat::instance()
- line 61 of /admin/tool/recyclebin/classes/task/cleanup_category_bin.php: call to tool_recyclebin\category_bin->delete_item()
- line 75 of /lib/cronlib.php: call to tool_recyclebin\task\cleanup_category_bin->execute()
- line 81 of /admin/cron.php: call to cron_run()
```
It seems to be looking for a course category in the recycle bin that doesn't exist in the database.
While this isn't great, isn't it even worse that the task fails because of this? I would have thought it would be better that it registered this issue and then carried on.