Problem with h5p trying uploading content with zip format

When trying to upload manually modified H5P files (unpacked and repacked), the system shows two main errors: first, it reports that the "H5P.DragQuestion 1.14" library is missing, even if the content is simple; and second, it rejects the file structure with the message "File 'content/' not allowed."

I have taken several actions to resolve this, such as updating all available libraries, reinstalling the H5P plugin version 1.27, and checking file permissions, but the issue persists.

The environment where this occurs is Moodle 5.0.1 with PHP 8.2. I need help understanding:

  1. how to install specific libraries that do not appear in the automatic updates, and

  2. what is the correct method for repackaging H5P files after modifying them, since unzipping and rezipping seems to break the valid structure.

 

I’m attaching a sample file that reproduces the error to help with analysis. I would greatly appreciate any guidance to resolve this issue. If you can help solve it, that would be amazing. Thank you!

Attachments: 
otacke's picture

What have you changed in the file?