Course Presentation Bug

Detailed steps to reproduce the bug (exactly how and when did it happen):  It was a video upload but the user can't remember whether it crashed by itself during an upload or when the user pressed save and display. Platform:  Moodle  Moodle version:   Moodle 3.8.2+ (Build: 20200424) Mobile or Desktop:  Error shows on desktop and mobile Browser:  All - not browser specific H5P plugin version:  1.22.3 (2021061100) H5P content type:   Course Presentation Errors: 

Coding error detected, it must be fixed by a programmer: moodle_database::update_record_raw() id field must be specified.

Debug info:

Error code: codingerror

Stack trace:

  • line 1536 of /lib/dml/mysqli_native_moodle_database.php: coding_exception thrown

  • line 1593 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->update_record_raw()

  • line 1251 of /mod/hvp/classes/framework.php: call to mysqli_native_moodle_database->update_record()

  • line 2220 of /mod/hvp/library/h5p.classes.php: call to mod_hvp\framework->updateContentFields()

  • line 102 of /mod/hvp/classes/view_assets.php: call to H5PCore->filterParameters()

  • line 71 of /mod/hvp/classes/view_assets.php: call to mod_hvp\view_assets->getfilteredparameters()

  • line 44 of /mod/hvp/view.php: call to mod_hvp\view_assets->__construct()

Error reading from database

Debug info: MySQL server has gone away

SELECT active.filter,, fc.value

FROM (SELECT f.filter, MAX(f.sortorder) AS sortorder

FROM mdl_filter_active f

JOIN mdl_context ctx ON f.contextid =

WHERE IN (1,7200,7173,7219)

GROUP BY filter

HAVING MAX( * ctx.depth) > -MIN( * ctx.depth)

) active

LEFT JOIN mdl_filter_config fc ON fc.filter = active.filter AND fc.contextid = 7219

ORDER BY active.sortorder

[array (


Error code: dmlreadexception

Stack trace:

  • line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown

  • line 1186 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()

  • line 997 of /lib/filterlib.php: call to mysqli_native_moodle_database->get_recordset_sql()

  • line 122 of /lib/filterlib.php: call to filter_get_active_in_context()

  • line 189 of /lib/filterlib.php: call to filter_manager->load_filters()

  • line 259 of /lib/filterlib.php: call to filter_manager->get_text_filters()

  • line 1487 of /lib/weblib.php: call to filter_manager->setup_page_for_filters()

  • line 1233 of /lib/pagelib.php: call to format_string()

  • line 2804 of /lib/outputrenderers.php: call to moodle_page->set_title()

  • line 386 of /lib/setuplib.php: call to core_renderer->fatal_error()

  • line ? of unknownfile: call to default_exception_handler()



Error reading from database (MySQL server has gone away SELECT AS id, f.contenthash, f.pathnamehash, f.contextid, f.component, f.filearea, f.itemid, f.filepath, f.filename, f.userid, f.filesize, f.mimetype, f.status, f.source,, f.license, f.timecreated, f.timemodified, f.sortorder, f.referencefileid, r.repositoryid AS repositoryid, r.reference AS reference, r.lastsync AS referencelastsync FROM mdl_files f LEFT JOIN mdl_files_reference r ON f.referencefileid = WHERE f.pathnamehash = ? [array ( 0 => '30bc2fcb7d7ccf0674b324d0d8304f70757760a9', )])

Content types: 

Hello, bumping this up so I can get a response

otacke's picture


Not sure what bumping up means. This is a community forum. You may not get an answer after all if nobody in the community knows a solution to your problem or nobody has time to give in order to dig into your issue.