Fusion Builder and h5p compatibility

Hi!

I use h5p pluging for wordpress. The text editor is Fusion Builder (Avada theme). If I add the shortcode on a post, the activity is visible on the preview mode, but as soon as I publish or update the post, the activity disappears. This problem doesn´t happen when using the embed code of the activity. 

I have contacted Fusion Builder support and they told me to contact h5p to check compatibility with their pluging.

Any suggestions of what I can do to resolve the problem?

Kind regards,

 

Juan Fernandez

BV52's picture

Hi Juan,

Can you check if you have any errors in the browser console (ctrl+shift+J or F12).

-BV

Hi BV,

Thank you very much for replying to me.

I can see this code on the console, but I am not sure what it means: 

 

h5p.js?ver=1.15.0:997 Uncaught ReferenceError: H5PIntegration is not defined

    at Object.H5P.t (h5p.js?ver=1.15.0:997)

    at HTMLDocument.<anonymous> (h5p.js?ver=1.15.0:2717)

    at c (jquery.js?ver=1.15.0:2)

    at Object.fireWith [as resolveWith] (jquery.js?ver=1.15.0:2)

    at Function.ready (jquery.js?ver=1.15.0:2)

    at HTMLDocument.H (jquery.js?ver=1.15.0:2)

H5P.t @ h5p.js?ver=1.15.0:997

(anonymous) @ h5p.js?ver=1.15.0:2717

c @ jquery.js?ver=1.15.0:2

fireWith @ jquery.js?ver=1.15.0:2

ready @ jquery.js?ver=1.15.0:2

H @ jquery.js?ver=1.15.0:2

 

Please, see also screenshot atttached.

It seems to me there is a problem, but not sure what how to go about it (sorry, I am not very techie).

Any suggestions would be greatly appreciated.

Kind regards,

Juan Fernández

 

BV52's picture

Hi Juan,

You're using the plugin "a3 Lazy Load". Its "Lazy Load Videos and iframes" setting influences the iframe that H5P is loaded in.

-BV

Hi BV,

I am using a different plugin to lazy load content in my blog (Smush), but following your instructions I changed its settings for iframes and now everything is working smoothly. 

Thanks a lot for your help!

Juan

BV52's picture

Hi Juan,

Glad to know it's working now.

-BV

I use h5p pluging for wordpress. Classic editor (Buddyboss theme). If I add the shortcode on a post, the activity is visible on the preview mode, but as soon as I publish or update the post, the activity disappears. This problem doesn´t happen when using the embed code of the activity. 

Any suggestions of what I can do to resolve the problem?

this error on my console

Uncaught SyntaxError: Unexpected identifier

h5p.js?ver=1.15.0:997 Uncaught ReferenceError: H5PIntegration is not defined

    at Object.H5P.t (h5p.js?ver=1.15.0:997)

    at HTMLDocument.<anonymous> (h5p.js?ver=1.15.0:2717)

    at c (jquery.js?ver=1.15.0:2)

    at Object.fireWith [as resolveWith] (jquery.js?ver=1.15.0:2)

    at Function.ready (jquery.js?ver=1.15.0:2)

    at HTMLDocument.H (jquery.js?ver=1.15.0:2)

I had the same problem using the Buddyboss theme.

I found that plugin Smush was causing the problem. I deactivated the plugin and it works now.

Something to do with the "lazy loading" setting.