line 497 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 293 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->query_end()
line 358 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->read_slave_query_end()
line 1149 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
line 1197 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->insert_record_raw()
line 63 of /mod/certificatebeautiful/backup/moodle2/restore_certificatebeautiful_stepslib.php: call to pgsql_native_moodle_database->insert_record()
line 137 of /backup/util/plan/restore_structure_step.class.php: call to restore_certificatebeautiful_activity_structure_step->process_certificatebeautiful()
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 224 of /backup/moodle2/restore_activity_task.class.php: call to base_task->execute()
line 191 of /backup/util/plan/base_plan.class.php: call to restore_activity_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 3203 of /course/lib.php: call to restore_controller->execute_plan()
line 600 of /course/format/classes/stateactions.php: call to duplicate_module()
line 137 of /course/format/classes/external/update_course.php: call to core_courseformat\stateactions->cm_duplicate()
line ? of unknownfile: call to core_courseformat\external\update_course::execute()
line 253 of /lib/external/classes/external_api.php: call to call_user_func_array()
line 83 of /lib/ajax/service.php: call to core_external\external_api::call_external_function()
Hello, I got an error when tried to duplicate the module:
ERROR: null value in column "description" of relation "m_certificatebeautiful" violates not-null constraint DETAIL: Failing row contains (3, 2, Test cert, null,
Test
, 1, 0, 1729546991, 1729547104). INSERT INTO m_certificatebeautiful (name,timecreated,timemodified,intro,introformat,course) VALUES($1,$2,$3,$4,$5,$6) RETURNING id [array ( 'name' => 'Test cert', 'timecreated' => '1729546991', 'timemodified' => '1729547104', 'intro' => 'Test
', 'introformat' => '1', 'course' => '2', )] Error code: dmlwriteexception