Hi everyone,
We are running a Moodle 4.5 instance and using H5P via the core component (not the additional plugin). We have encountered an issue where individual H5Ps stopped working correctly after being edited. Specifically, images are no longer found. In some (possibly all) cases, the affected H5Ps were embedded using TinyMCE.
Teachers report that the H5Ps initially worked. They then made minor edits within Moodle. After saving those changes, some images are no longer loading.
In Chrome DevTools, I see 404 requests like this one on the course pages:
/pluginfile.php/1/core_h5p/content/6936/images/image-Au0KOMk7.png
In edit mode, the images are still displayed correctly, but the image URLs differ in the number after /content/:
/pluginfile.php/1/core_h5p/content/6928/images/image-Au0KOMk7.png
In the mdl_files table, there are many entries with itemid = 6928, but for itemid = 6936, there is only a content.json file.
What is going wrong here? We hope that re-embedding the files might fix the issue, but is there a cleaner or more robust way to resolve this problem?
Thanks
Oliver