Library.JSON File Discrepancy in H5P: Understanding the 'Invalid JSON Format' Bug
The bug materializes during the inclusion of an H5P course presentation file, generated within the Moodle content bank, which is embedded as an activity within a Moodle "book" resource. This method, historically successful, now abruptly triggers the aforementioned error. Despite re-uploading the same file to alternate Moodle instances running the HVP plugin (v1.23), the error persists. This disruption suggests that the H5P.MarkTheWords library’s JSON structure may be encountering validation issues or corruption during processing.
A previously functioning H5P activity, once properly displayed, suddenly ceases to render the content. No significant environmental changes, plugin modifications, or browser updates were reported in proximity to this failure. The error is consistent across multiple platforms (desktop and mobile) and browsers (Chrome, Firefox, Safari), yet remains devoid of visible PHP or browser console errors during execution.
The platform utilized is Moodle 3.9 with H5P plugin mod_h5pactivity (version 2021051700) and mod_hvp (version 1.22.3). The error spans across content types, though notably affecting "Course Presentation" and potentially other H5P content modules. The challenge here points towards an undetected discrepancy in the integrity of the library.json
file for the MarkTheWords library, suggesting an underlying issue with the H5P library handling within Moodle or HVP itself. Further debugging, possibly involving deeper investigation of the H5P content structure and validation processes, would be required to ascertain the root cause and ensure ON file parsing across Moodlnstances.