Error Connecting to Database after saving image
Submitted by [email protected] on Wed, 06/01/2022 - 18:47
Forums:
Hi there,
Moodle Version: 3.8
H5P Plugin Version: 1.22.0
I opened, read the content then clicked edit. I changed the content to the code and made the image size bigger. I then changed it back to text and clicked save.Then got this error:
Could someone please assist? Thank you so much.
×Debug info: Column 'library_id' cannot be null
INSERT INTO mdl_hvp_contents_libraries (hvp_id,library_id,dependency_type,drop_css,weight) VALUES(?,?,?,?,?)
[array (
0 => '30303',
1 => NULL,
2 => 'preloaded',
3 => 0,
4 => 1,
)]
Error code: dmlwriteexception×Stack trace:
- line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 1331 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1377 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 1498 of /mod/hvp/classes/framework.php: call to mysqli_native_moodle_database->insert_record()
- line 2263 of /mod/hvp/library/h5p.classes.php: call to mod_hvp\framework->saveLibraryUsage()
- 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()