H5P Interactive Video error when use SSL HTTPS website with moodle, Message: Loading please wait...

Hi, my problem is with fresh installation Moodle 3.8.3 when I enable https the h5p interactive video editor didn't load, only show Loading, please wait...

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

When I enable SSL https in my website and try to add content h5p Interactive Video Editor to my Moodle lesson the editor didn't load.

When I disable SSL https the Interactive Video Editor works again and no error in console.

I added in config.php this line but problem persist: $CFG->httpswwwroot   = 'https://mywebsite.net';

  1. Platform and version number. E.g. Drupal, Wordpress, Moodle. : Moodle 3.8.3
  2. Mobile or Desktop: Both Mobile and Desktop under Linux Mint
  3. Browser: Chrome, Firefox, Safari etc: Desktop: Firefox, Mobile: Chrome
  4. H5P plugin version: 1.20.2 mod_hvp_moodle38_2020020500.zip
  5. H5P content type and version (if a content type was used), and a sample URL or attached H5P.: Interactive Video
  6. Any browser console errors:

In Chrome:

jquery.js?ver=2020020500:2 Allow attribute will take precedence over 'allowfullscreen'.
attr @ jquery.js?ver=2020020500:2
h5p-true-false.css:1 Failed to load resource: the server responded with a status of 500 ()
h5p-jquery-ui.css:1 Failed to load resource: the server responded with a status of 500 ()
h5p-interactive-video.css:1 Failed to load resource: the server responded with a status of 500 ()
multichoice.css:1 Failed to load resource: the server responded with a status of 500 ()
video.css:1 Failed to load resource: the server responded with a status of 500 ()
radio-group.css:1 Failed to load resource: the server responded with a status of 500 ()
...... and more.....
FIREFOX BROWSER:

Hubo un fallo al cargar el <script> con fuente “https://moodle.mywebsite.net/pluginfile.php/1/mod_hvp/l…raries/H5PEditor.Duration-1.1/scripts/duration.js?ver=1.1.10”. modedit.php:1:1 Error while loading script error { target: script, isTrusted: true, srcElement: script, currentTarget: script , eventPhase: 2, bubbles: false, cancelable: false, returnValue: true, defaultPrevented: false, composed: false, … } h5peditor.js:124:23 Hubo un fallo al cargar el <script> con fuente “https://moodle.mywebsite.net/pluginfile.php/1/mod_hvp/libraries/H5P.Vide...”. modedit.php:1:1 Error while loading script error { target: script, isTrusted: true, srcElement: script, currentTarget: script , eventPhase: 2, bubbles: false, cancelable: false, returnValue: true, defaultPrevented: false, composed: false, … } h5peditor.js:124:23 Hubo un fallo al cargar el <script> con fuente “https://moodle.mywebsite.net/pluginfile.php/1/mod_hvp/libraries/H5P.Vide...”. modedit.php:1:1 Error while loading script error { target: script, isTrusted: true, srcElement: script, currentTarget: script, eventPhase: 2, bubbles: false, cancelable: false, returnValue: true, defaultPrevented: false, composed: false, … }
...and more...
  1. Any PHP errors
[Mon May 11 13:19:50.085239 2020] [:error] [pid 838557:tid 140350471206656] [client 1.2.3.4:16476] SoftException in Application.cpp:690: Could not execute script "/home4/username/moodle.mywebsite.net/pluginfile.php", referer: https://moodle.mywebsite.net/course/modedit.php?add=hvp&type=&course=2&s...
  1. Screenshots if it's a visual problem
  2. Any recent changes to the environment (new plugins/modules, updates, configuration changes etc.) : Fresh install moodle, only h5p plugin added.
  3. Any recent changes to the browser you're using (new extensions, updates etc.): No recent changes in browser

 

Content types: 

Hi again, I continue debugging and I detect when I reload the browser around 10 times the number of error lines in console reduced gradually until finally the Interactive video load without problem. There is a cache configuration I must enable to avoid this problems when my users need use this Interactive video editor? Thanks.

Note: When use H5P without SSL HTTPS in the website I don't have this kind of problems.