-
Bug
-
Resolution: Fixed
-
Minor
-
4.3 regressions, 4.3.6, 4.4 regressions, 4.4.2, 4.5
Steps to reproduce
- Create and set up a moodle site.
- Login as admin.
- Go to Site administration > Course > Groups > Group custom fields.
- Add a category and create a custom field (I created an optional checkbox).
- Create a course.
- Add a group.
- Create an activity (for instance, an assignment).
- Create a backup for the activity and download the backup file.
- Create and set up another moodle site.
- Create a course.
- Restore the activity from backup file
- The error is shown below:
Can't find data record in database table groups.
Can't find data record in database table groups.
|
|
More information about this error
|
Debug info: SELECT * FROM {groups} WHERE id = ?
|
[array (
|
0 => 1,
|
)]
|
Error code: invalidrecord
|
Stack trace:
|
|
line 1662 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
|
line 1638 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
|
line 126 of /group/classes/customfield/group_handler.php: call to moodle_database->get_record()
|
line 170 of /group/classes/customfield/group_handler.php: call to core_group\customfield\group_handler->get_instance_context()
|
line 1240 of /backup/moodle2/restore_stepslib.php: call to core_group\customfield\group_handler->restore_instance_data_from_backup()
|
line 137 of /backup/util/plan/restore_structure_step.class.php: call to restore_groups_structure_step->process_groupcustomfield()
|
line 123 of /backup/util/helper/restore_structure_parser_processor.class.php: call to restore_structure_step->process()
|
line 178 of /backup/util/xml/parser/processors/grouped_parser_processor.class.php: call to restore_structure_parser_processor->dispatch_chunk()
|
line 111 of /backup/util/helper/restore_structure_parser_processor.class.php: call to grouped_parser_processor->postprocess_chunk()
|
line 148 of /backup/util/xml/parser/processors/simplified_parser_processor.class.php: call to restore_structure_parser_processor->postprocess_chunk()
|
line 92 of /backup/util/xml/parser/processors/progressive_parser_processor.class.php: call to simplified_parser_processor->process_chunk()
|
line 189 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser_processor->receive_chunk()
|
line 277 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->publish()
|
line ? of unknownfile: call to progressive_parser->end_tag()
|
line 178 of /backup/util/xml/parser/progressive_parser.class.php: call to xml_parse()
|
line 157 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->parse()
|
line 110 of /backup/util/plan/restore_structure_step.class.php: call to progressive_parser->process()
|
line 186 of /backup/util/plan/base_task.class.php: call to restore_structure_step->execute()
|
line 191 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
|
line 168 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
|
line 411 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
|
line 219 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()
|
line 146 of /backup/restore.php: call to restore_ui->execute()
|
The issue is the backup file has groupcustomfield, but not group.
- has a non-specific relationship to
-
MDL-80929 Backup/restore "Include custom fields" setting is not observed
-
- Closed
-
-
MDL-82877 Custom fields - Restore Course Backup Cannot Be Completed
-
- Closed
-
- is a regression caused by
-
MDL-81631 Error "core_group\customfield\group_handler::get_instance_context(): Argument #1 ($instanceid) must be of type int, null given" when duplicating an activity
-
- Closed
-
-
MDL-67186 Add custom fields to groups and groupings
-
- Closed
-
- is duplicated by
-
MDL-82219 Error "Can't find data record in database table groups" when restoring activity to the other site using group custom field.
-
- Closed
-