[Resolved] H5P Embed throwing JavaScript/jQuery error

Home Forums Support H5P Embed throwing JavaScript/jQuery error

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1350807
    Tom

    When I embed an H5P iframe using a shortcode in the classic editor, and then try to view it on the front end, I receive two errors in the Console.

    The first is:

    h5p.js:997 Uncaught ReferenceError: H5PIntegration is not defined

    The second is:

    h5p.js:997 Uncaught ReferenceError: H5PIntegration is not defined
    at Object.H5P.t (h5p.js:997)
    at HTMLDocument.<anonymous> (h5p.js:2717)
    at c (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at Function.ready (jquery.js:2)
    at HTMLDocument.H (jquery.js:2)
    H5P.t @ h5p.js:997
    (anonymous) @ h5p.js:2717
    c @ jquery.js:2
    fireWith @ jquery.js:2
    ready @ jquery.js:2
    H @ jquery.js:2

    It seems that h5p can’t find jQuery or can’t talk to it. Is there an easy way to help h5p find it, or is the problem something else entirely?

    #1351037
    Leo
    Staff
    Customer Support

    Hi there,

    Did you load jQuery?

    #1351075
    Tom

    Thanks for your help! It sounds like the solution is even simpler than I thought
    Isn’t jQuery included in the WordPress Core? How do I ensure that I am loading jQuery?

    #1351101
    Leo
    Staff
    Customer Support
    #1352893
    Tom

    I tested the way the plugins were using the JavaScript, thinking it was my optimizer plugin at first (I use SiteGround), but I finally narrowed it down to Smush.

    I don’t know how, the plugin Smush (which I thankfully don’t need as much as h5p), was causing it.

    Thanks for your help!

    #1353119
    Leo
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.