H5P contents are not displayed in Moodle 3.9.2+

Prajwal School's picture

 

Hello

I have  used H5P-plugins in Moodle in 3.8 version and it worked well. I  upgraded  Moodle to 3.9.2  yesterday and installed  H5P plug-in 1.21.0 2020080400 version . 

I have had a couple of issues with H5P plug-ins. First, the H5P content types does not load from H5P Hub and those contents which were  displayed correctly  cannot not been displayed at all. 

I am using Edge browser. I have not received any php errors. 

I have included some screen shots. 

 

 
BV52's picture

Hi,

In order to give your bug report the best chance of getting answered, please include the following information:

  1. Detailed steps to reproduce the bug (exactly how and when did it happen)
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle.
  3. Mobile or Desktop
  4. Browser: Chrome, Firefox, Safari etc
  5. H5P plugin version
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  7. Any browser console errors
  8. Any PHP errors
  9. Screenshots if it's a visual problem

If it worked before:

  1. Any recent changes to the environment (new plugins/modules, updates, configuration changes etc.)
  2. Any recent changes to the browser you're using (new extensions, updates etc.)

The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!

-BV

Prajwal School's picture

  1. Detailed steps to reproduce the bug (exactly how and when did it happen) :  I upgraded moodle 3.8.2 to  3.9.2 version. I downloaded H5P plugin from H5P  1.21.1  2020080400  and installed it. The H5P contents which were produced before  are  in moodle but they  are not  displayed.  When I try to create a new  H5P contents  and select a H5P content type from the editor ( I tried  several content types ) I  get loading please wait  but  the content never loads.  ( I waited for ten minutes) 
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle. Moodle 3.9.2 
  3. Mobile or Desktop  -  Desktop 
  4. Browser: Chrome, Firefox, Safari etc -  I have tested in Chrome as well as Microsoft Edge
  5. H5P plugin version  1.21.0
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.  I have tried  find a word, presentation , fill in the blank etc. 
  7. Any browser console errors  : No 
  8. Any PHP errors : No
  9. Screenshots if it's a visual problem
Prajwal School's picture

 

Thank you for your quick response. Please find my response below:

  1. Detailed steps to reproduce the bug (exactly how and when did it happen) : Before  I upgraded Moodle from 3.8.2 to 3.9.2+. I  encoutered the issue related to displaying H5P contents which were working normally. I tried to create new  H5P contents. When I selected H5P content types from H5P Hub,  contents except fiind words, did not  load, it says loading please wait ... . 
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle.  Moodle  3.9.2+
  3. Mobile or Desktop =  I have tried both Mobile  and Destop with same results. 
  4. Browser: Chrome, Firefox, Safari etc - Chrome  desktop/mobile and I have also tried in Microsoft Edge 
  5. H5P plugin version 1.21.0
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P. -  I have tried   presentation,  drag and drop, fill in the banks. 
  7. Any browser console errors - No
  8. Any PHP errors : No
  9. Screenshots if it's a visual problem- attached 
otacke's picture

Hi!

Are you really sure about #7? Could you please share a screenshot of the console?

Best,

Oliver 

Prajwal School's picture

Thank you  Oliver. 

Please find the screenshots of the console. 

otacke's picture

Hi!

So there are error messages in the dev console ... House is right.

That 508 error hints to a loop while loading files, that's not something that H5P is causing. It's usually created by a misconfiguration of the server that applies some RewriteRule in order to redirect the URL to another URL, but returning the same URL.

Your admin should check the server configuration files + potentially .htaccess files for such a rewrite going wrong.

Best,

Oliver