Moodle H5P - Unable to add more than one H5P activity for a resource

Detailed steps to reproduce the bug (exactly how and when did it happen)

  1. Go to a Moodle course that you have admin permissions to
  2. Open the Content bank for that course
  3. Click Upload
  4. Drag and drop the scs-test-1.h5p file
  5. Click Save changes
  6. Click Close
  7. Repeat steps 3-6 with the scs-test-2.h5p file
  8. Navigate to the same Moodle course from step 1
  9. Under any topic, click Add an activity or resource
  10. Click Page
  11. For the "Name" call it "Test H5P"
  12. For "Page content", in the Atto text editor toolbar, click on the H5P button
  13. Click Browse repositories...
  14. Click Content bank
  15. Click on the scs-test-1.h5p file from the content bank
  16. Select the Create an alias/shortcut to the file radio button
  17. Click Select this file
  18. Click Insert H5P
  19. Notice that an H5P element was added to the Atto text editor
  20. Click onto the next line after the H5P element
  21. In the "Page content", in the Atto text editor toolbar, click on the H5P button
  22. Click Browse repositories...
  23. Click Content bank
  24. Click on the scs-test-2.h5p file from the content bank
  25. Select the Create an alias/shortcut to the file radio button
  26. Click Select this file
  27. Click Insert H5P
  28. Notice that now two H5P elements are in the Atto text editor
  29. Click Save and return to course
  30. Click on the page resource that we just created
  31. Notice that only one H5P element is rendered/visible, while the other one is the plain text to the H5P link (see Figure 1 in the screenshots section)

Platform and version number: Moodle 3.9.5+ (Build 20210312)

Computer Type: Desktop

Browser: Chrome and Edge

H5P plugin version: H5P - mod_h5pactivity - version: 2020061500

H5P content type and version, and a sample URL or attached H5P: Single Choice Set - version: 1.11.19

Any browser console errors: None, see screenshot:

Any PHP errors: None

Screenshots if it's a visual problem:

Figure 1

Any recent changes to the environment (new plugins/modules, updates, configuration changes etc.): None

Any recent changes to the browser you're using (new extensions, updates etc.): None

Related problem I found on the forms:



Content types: 
otacke's picture


You should report that on the moodle forums. You are not using the H5P plugin for moodle (that was created by the H5P core team), but moodle's custom H5P integration that was created by moodle HQ (not by the H5P core team).