• Hi,
    Faced the following Javascript error:cannot read properties of undefined (reading ‘trigger’) in h5p.js?ver=1.15.4 line: 2810 while refreshing the page. The issue was not consistent. The issue appeared at times not during the initial load but while refreshing.

    As a temporary fix I had modified the Javascript file and wrapped the line 2810 with an if condition

     
    if(window.parent.H5P.externalDispatcher){
        window.parent.H5P.externalDispatcher.trigger.call(this, event);
    }
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Arun

    (@arunu1996)

    Due to this error the H5P interactive video was not loading. The video content inside the iframe was empty.

    Plugin Author icc0rz

    (@icc0rz)

    Most likely the theme or another plugin has altered the order of which the JavaScript files are loaded. Dependencies needs to be loaded first, i.e. the same order as a vanilla WordPress site with H5P uses.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Javascript error: cannot read properties of undefined (reading ‘trigger’)’ is closed to new replies.