• Resolved gravatard

    (@gravatard)


    Hi, I’m getting a javascript console error from the most recent version of Podcast Player. Here’s the error:

    Uncaught ReferenceError: MediaElementPlayer is not defined
        at HTMLDivElement.<anonymous> (public.build.js:1)
        at Function.each (jquery.js?ver=1.12.4-wp:2)
        at a.fn.init.each (jquery.js?ver=1.12.4-wp:2)
        at Module.<anonymous> (public.build.js:1)
        at s (public.build.js:1)
        at public.build.js:1
        at public.build.js:1

    Do you need more info to troubleshoot?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Veda

    (@vedathemes)

    Hi there,

    I have checked for the error. It seems you are using some plugin which adds “defer” attribute to the “script” tags.

    Problem,
    1. Some optimization plugin/feature that you are using is adding ‘defer’ attribute to the scripts (which means those scripts will only execute once the page is loaded completely). Some of these scripts are prerequisites for podcast player.
    2. However, this defer tag is not add to podcast player’s “public.build.js” file.
    3. Therefore, podcast player’s script is executed before executing its prerequisites. Therefore, it cannot find other required variables.

    Solution,
    1. Please check what new optimization plugin/feature you started using now, which is adding defer attribute.
    2. Check with the plugin developer on why defer tag is not added to podcast player’s “public.build.js” file. (May be because this file is loaded via ‘wp-footer’ action hook, but it should not happen).
    3. If it is possible, try avoiding such features which seems inconsistently applied.
    Note: You may optionally use other very popular optimization plugins which might be more consistent.

    Please inform if you need more help on this OR if any other help is required.

    Thanks,

    Thread Starter gravatard

    (@gravatard)

    The issue was SG Optimizer plugin by SiteGround. I was deferring JS. Disabling this option cleared the console error. Thanks!

    Plugin Author Veda

    (@vedathemes)

    welcome.

    If you like the plugin, kindly support us by giving five star rating.

    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Podcast Player Console Error’ is closed to new replies.