h5p / moodle-mod_hvp

H5P Plugin for Moodle
GNU General Public License v3.0
131 stars 169 forks source link

content not displaying when switching types in hub editor #462

Open ehsan42 opened 2 years ago

ehsan42 commented 2 years ago

Issue: When adding or editiing a H5P activity, the hub editor displays the content window fine and you can interactive and save. Issue is when switching between different content types in the hub editor where the content does not load, it just displays ‘loading please wait’. Even after a few minutes the same is just displayed. The workaround is to save the page and edit again to see the content window.
console-export-2022-8-4_19-22-10.txt

Replicate issue: moodle 3.11.8 clean install php 7.4 h5p stable branch

  1. log into moodle > navigate to a course
  2. turn editing on > add an H5P activity
  3. choose 'interactive book' content type > content loaded h5p1
  4. chose 'interactive video content type > content does not load h5p2

Workaround:

  1. steps 1-4 above
  2. click save and display > empty Interactive book is displayed h5p3
  3. edit activity > interactive book is now displaying h5p4
otacke commented 2 years ago

@ehsan42 Already fixed in https://github.com/h5p/h5p-editor-php-library/pull/144 but obviously not released yet.