Quiz interactive content not displaying in Safari
Submitted by nicw on Thu, 08/15/2019 - 00:19
Forums:
Hi
I recently inherited an LMS site which is experiencing an error when displaying H5P quizzes in Safari.
The iframe comes back as empty, with no apparent errors in the console, and no apparent related PHP errors.
For now we are directing users to Chrome etc.
Details
- Safari on iOS and Mac OS. Quizzes do not appear on the page. Cannot replicate this error using browserstack. Can replicate this error using a standard iPad or desktop Mac. Tracked back to Maven on Browserstack, unable to replicate.
- WordPress 5.5.2
- Mobile or Desktop: Both
- Browser: Safari only
- H5P plugin version 1.13.1
- H5P content type and version: I think Question Set v1.13.4. https://firstaidforall.co.nz any quiz in any course
- Any browser console errors: No (Safari 10 errors on a let variable in hp5.js, but lets put that aside)
- PHP errors: No
- Just empty iframe where quiz should be (collapsed with empty content)
- Any recent changes to the environment: not entirely sure - new client.
- Any recent changes to the browser you're using: Not aware of anything specific.
H5P content not available from client at this time.
Regards
Nic
BV52
Thu, 08/15/2019 - 18:38
Permalink
Hi Nic,Thank you for
Hi Nic,
Thank you for reporting this. Would you mind providing us a temporary access to one of the courses so that we can also check. So far after checking using multiple environments (H5P.org, H5P.com, Moodle, Drupal and Wordpress) Question Set is working on Safari on my end.
-BV52
nicw
Thu, 08/15/2019 - 23:50
Permalink
Temporary access
Hi
I can forward a username and password?
I have been experienting with switching the Tawk (live chat) facility off, and I believe there might be a conflict of some kind there - or that the Tawk iframes are delivered in the same way and experiencing the same issue. I also believe caching might have something to do with it. You you have recommended browser caching settings, for example?
This would explain the emulator working, I suspect.
What is clear that with Tawk off, the content appears but only on a hard refresh - the back button, for example, will result in an empty iframe.
Regards
Nic
BV52
Fri, 08/16/2019 - 18:06
Permalink
Hi Nic,You can send the
Hi Nic,
You can send the username/pword to my e-mail address [email protected]. You might be correct with your diagnosis but let's check what I will see on my side.
-BV52
nicw
Wed, 09/18/2019 - 21:47
Permalink
iframe reload
Hi
I've been debugging through an ipad and Safari. When the content doesn't load, I do see the initialized class being added to the iframe, however, the head and body of the content is delivered without content and the iframe itself remains styled with a height of 1px.
An error occurs on the resize event (H5P.js around line 353 odd) when this happens.
What I would like to do is set a timeout, and initiate a reload if the content is empty. A manual reload invariably works, but I can't ask the user to do this.
There is a risk of the user being caught in a loop, but if done correctly, only the iframe will be attempting the reload and hopefully the user won't notice.
Is there an H5P method we can hook to to cause this to happen (we are now using the xAPI as well)?
Nic