• Resolved Damion Armentrout

    (@darmentrout)


    Some pages on my site stop loading because mejs throws errors. None of these pages (working and nonworking) have mejs in use and have no media elements.

    
    mediaelement-and-player.min.js?ver=4.2.13-9993131:12 
    Uncaught TypeError: Cannot set property 'mejs' of undefined
        at Object.9.3 (mediaelement-and-player.min.js?ver=4.2.13-9993131:12)
        at d (mediaelement-and-player.min.js?ver=4.2.13-9993131:12)
        at mediaelement-and-player.min.js?ver=4.2.13-9993131:12
        at Object.8.10 (mediaelement-and-player.min.js?ver=4.2.13-9993131:12)
        at d (mediaelement-and-player.min.js?ver=4.2.13-9993131:12)
        at r (mediaelement-and-player.min.js?ver=4.2.13-9993131:12)
        at mediaelement-and-player.min.js?ver=4.2.13-9993131:12
    
    mediaelement-migrate.min.js?ver=5.3:1 
    Uncaught ReferenceError: mejs is not defined
        at mediaelement-migrate.min.js?ver=5.3:1
        at mediaelement-migrate.min.js?ver=5.3:1
    
    wp-mediaelement.min.js?ver=5.3:1 
    Uncaught TypeError: n(...).not(...).filter(...).mediaelementplayer is not a function
        at HTMLDocument.initialize (wp-mediaelement.min.js?ver=5.3:1)
        at i (jquery.js?ver=1.12.4-wp:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
        at Function.ready (jquery.js?ver=1.12.4-wp:2)
        at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Damion Armentrout

    (@darmentrout)

    I think it might have something to do with mediaelement-and-player.min.js, mediaelement-migrate.min.js, and wp-mediaelement.min.js being included on the page later in 5.3 than in previous versions (5.2.4). It appears that I may have some scripts in my theme that depend on these to load first.

    I don’t see how I can manage this in my theme because those files do not have registered handles and therefore cannot be included as dependencies in wp_enqueue_script. Is there any way of including them in the page earlier and/or prior to theme scripts?

    edit: missed this on the wp_enqueue_script page: wp-mediaelement

    Thread Starter Damion Armentrout

    (@darmentrout)

    Enqueuing scripts with possible dependencies on wp-mediaelement did not help.

    Thread Starter Damion Armentrout

    (@darmentrout)

    …and all the plugins have been disabled; no joy.

    Same here, I’ve disabled a lot of my plugins (which is not ideal)

    Thread Starter Damion Armentrout

    (@darmentrout)

    The solution I arrived at was to remove any functions in my parent theme that rely on MEJS.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘mediaelement prevents pages from loading’ is closed to new replies.