H5P not loading in WP 5.8

Hi,

I recently updated WP and got the 5.8 version. Everything worked well before but now the shortcode don't load on the frontend. On the backend, I can create and edit them but on the frontend, the iframe is empty.

Here's a test page : https://ohmyfrench.com/a0/

You can check this test page where there are two H5P shortcodes. You can see that the shortcodes load but the iframes are empty. Has this happened before and how to troubleshoot the problem?

I deactivated my caching plugin in case but it doesn't change anything. I'd appreciate any help.

Thanks,

Jordan.

otacke's picture

Hi!

Have you checked whether this is the problem?

Cheers,
Oliver

Hello,

I checked it. I didn't change the theme, it's the same I have been using before the WP update and it already has the wp_footer() function implemented in the footer.

Cheers,

Jordan.

otacke's picture

Then it must be something else. The symptoms fit though.

Hi, 

I did some troubleshooting. I have found out one of my custom plugin is conflicting with H5P (I'll see what's wrong with it) and that WP Rocket (my cache plugin) also makes the iFrame not load on the page.

For the first pluginm I'll take care of it. For WP Rocket, I found out that the "Enable caching for logged-in WordPress users" option is in fault which is weird. Is caching not compatible with the H5P plugin?

I first thought it was iframe caching (which is not activated on my site) but it seems that the overall caching of the plugin makes the H5P iframe not load at all.

Have you had the same experience with other caching plugins?

Thanks,

Jordan.