Moodle Iframe not loading content on iPad

AOLL's picture

Hi i have encountered a strange error where the iFrame content will show on some browsers but will not load on iPad or Chrome.

 

This is really urgent that I find a fix and would be extremely grateful of any help at this stage. Here is some info on the error:

  • iFrame content is begin pulled from a https:// location and works on my Mac
  • Same content will not appear on another computer and i get an error in chrome (see attached image)
  • Same content will not appear on iPad either
  • Running HP5 Moodle plugin version 1.6 (2017112800)
  • Have hosted interactive content on H5P and embedded on Moodle with success but not a viable option as I have too much content to host and time constraints.

Anyone have any ideas where I could start debugging this error?

Many thanks,

Stephen.

Attachments: 
icc's picture

Hi Stephen,

Could you try to click the link next to the top error message? The one that ends in .js:97 – and try to get a screenshot of the code that fails? Alternatively, you could send me a link to the page that is failing so I can inspect the error.

Thank you, I'm sure we'll get to the bottom of this error.

AOLL's picture

I have attached a screengrab and followed that first error link and attached the exact code as a text file.If you need access to debug further just let me know. Kind Regards,Stephen.

 

icc's picture

I'm not sure how but it looks like the file has become corrupt. It should look like this: iframe-embed.js

First, I would try to edit and save the content again. If that doesn't work you may have to reinstall the content type. 
To do that you first have to add the following line to your config.php:

$CFG->mod_hvp_dev = true;

Before this line:

require_once(__DIR__ . '/lib/setup.php');

(Which indicated the end of the file.)

When that is done you have to download the example content and upload it to your site. Either when creating a new activity or on the H5P Libraries page. When that is done it should start working.

Note that you'll want to remove the line you've added config.php when you're done as leaving it will cause issues when uploading old content.

AOLL's picture

Thanks very much for this advice...i will implement and get back to you.

Really appriciate the time you have given this,

Regards,

Stephen.