Error al escribir en la base de datos, cuando trato de agregar un Paquete SCORM

Error al escribir en la base de datos, cuando trato de agregar un Paquete SCORM

de Salvador Eduardo Vilca Pinedo -
Número de respuestas: 0

Buenas noches, estoy tratando de ingresar a mi curso el recurso "Paquete SCORM" antes si pude subi varios archivos, pero ahora no me permite cada vez que ingreso me sale el mensaje "Error al escribir en la base de datos" y debajo dice:

Debug info: MySQL server has gone away
UPDATE mdl_files SET contenthash = ?, filesize = ?,
status = ?
WHERE referencefileid = ?
[array (
0 => 'cea79d3edc0dbbfdeeb30ac8a4f5ecde37230d0f',
1 => 49298596,
2 => 0,
3 => 90,
)]
Error code: dmlwriteexception
Stack trace:
  • line 446 of /lib/dml/moodle_database.php: dml_write_exception thrown
  • line 974 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 2346 of /lib/filestorage/file_storage.php: call to mysqli_native_moodle_database->execute()
  • line 997 of /lib/filestorage/stored_file.php: call to file_storage->update_references()
  • line 1816 of /repository/lib.php: call to stored_file->set_synchronized()
  • line 1035 of /lib/filestorage/stored_file.php: call to repository->import_external_file_contents()
  • line 1356 of /mod/scorm/lib.php: call to stored_file->import_external_file_contents()
  • line 395 of /mod/scorm/mod_form.php: call to scorm_validate_package()
  • line 549 of /lib/formslib.php: call to mod_scorm_mod_form->validation()
  • line 498 of /lib/formslib.php: call to moodleform->validate_defined_fields()
  • line 595 of /lib/formslib.php: call to moodleform->is_validated()
  • line 515 of /mod/scorm/mod_form.php: call to moodleform->get_data()
  • line 261 of /course/modedit.php: call to mod_scorm_mod_form->get_data()
Error al leer de la base de datos
Debug info: MySQL server has gone away
SELECT
bi.id,
bp.id AS blockpositionid,
bi.blockname,
bi.parentcontextid,
bi.showinsubcontexts,
bi.pagetypepattern,
bi.subpagepattern,
bi.defaultregion,
bi.defaultweight,
COALESCE(bp.visible, 1) AS visible,
COALESCE(bp.region, bi.defaultregion) AS region,
COALESCE(bp.weight, bi.defaultweight) AS weight,
bi.configdata
, ctx.id AS ctxid, ctx.path AS ctxpath, ctx.depth AS ctxdepth, ctx.contextlevel AS ctxlevel, ctx.instanceid AS ctxinstance

FROM mdl_block_instances bi
JOIN mdl_block b ON bi.blockname = b.name
LEFT JOIN mdl_block_positions bp ON bp.blockinstanceid = bi.id
AND bp.contextid = ?
AND bp.pagetype = ?
AND bp.subpage = ?
LEFT JOIN mdl_context ctx ON (ctx.instanceid = bi.id AND ctx.contextlevel = ?)

WHERE
(bi.parentcontextid = ? OR (bi.showinsubcontexts = 1 AND bi.parentcontextid IN (?,?)))
AND bi.pagetypepattern IN (?,?,?,?,?)
AND (bi.subpagepattern IS NULL OR bi.subpagepattern = ?)

AND b.visible = 1

ORDER BY
COALESCE(bp.region, bi.defaultregion),
COALESCE(bp.weight, bi.defaultweight),
bi.id
[array (
0 => 184,
1 => 'mod-scorm-mod',
2 => '',
3 => 80,
4 => 184,
5 => '3',
6 => '1',
7 => 'mod-scorm-mod',
8 => 'mod-scorm-mod-*',
9 => 'mod-scorm-*',
10 => 'mod-*',
11 => '*',
12 => '',
)]
Error code: dmlreadexception
Stack trace:
  • line 443 of /lib/dml/moodle_database.php: dml_read_exception thrown
  • line 1019 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 644 of /lib/blocklib.php: call to mysqli_native_moodle_database->get_recordset_sql()
  • line 1454 of /lib/pagelib.php: call to block_manager->load_blocks()
  • line 888 of /lib/pagelib.php: call to moodle_page->starting_output()
  • line 840 of /lib/outputrenderers.php: call to moodle_page->set_state()
  • line 2623 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 362 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()

Espero me puedan brindar su apoyo, muchas gracias

Promedio de valoraciones: -