-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.3
I tried to execute this following command line:
php admin/cli/fix_orphaned_question_categories.php --fix
|
And I had this result:
php admin/cli/fix_orphaned_question_categories.php --fix
|
== Checking for orphaned categories == |
Found orphaned category: Défaut pour Examen hors-ligne 2 questions lames (test) |
Cleaning...!!! Impossible de trouver l'enregistrement de données dans la table context de la base de données. !!!
|
!! SELECT * FROM {context} WHERE id = ?
|
[array (
|
0 => '6930045', |
)]
|
Error code: invalidrecord !!
|
!! Stack trace: * line 1654 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown |
* line 1630 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select() |
* line 5429 of /lib/accesslib.php: call to moodle_database->get_record() |
* line 221 of /lib/classes/event/base.php: call to context::instance_by_id() |
* line 125 of /lib/classes/event/question_base.php: call to core\event\base::create() |
* line 418 of /lib/questionlib.php: call to core\event\question_base::create_from_question_instance() |
* line 246 of /lib/questionlib.php: call to question_delete_question() |
* line 88 of /admin/cli/fix_orphaned_question_categories.php: call to question_category_delete_safe() |
!!
|