Uncaught TypeError

Viewing 2 posts - 1 through 2 (of 2 total)
  • #16712
    alexsebastian
    Participant

    Hi,

    I don’t know if that is related to the other problems I have.
    Jetpack developers just told me they get the following error on my page http://www.musoc.de :

    Uncaught TypeError: Object [object Object] has no method 'mediaelementplayer' on line 246
    Line 246 is the following: 
    $('audio,video').mediaelementplayer({

    And I should ask you guys if you are aware of that and what it means.
    It’s pinboard 1.1.2.
    I’m still having all my open issues.

    Thanks for a quick reply.

    #16720
    alexsebastian
    Participant

    Hi,

    I compared the functions.php of version 1.0.6 to the functions.php 1.1.2 and spotted the following differences:

    After line 593 those two lines are missing:

    wp_register_script( 'mediaelement', get_template_directory_uri() . '/scripts/mediaelement.js', array( 'jquery' ), null );
            wp_register_script( 'mediaelementplayer', get_template_directory_uri() . '/scripts/mediaelementplayer.js', array( 'mediaelement' ), null );

    Line 614 now reads:

    wp_enqueue_script( 'wp-mediaelement' );

    instead of:

    wp_enqueue_script( 'mediaelementplayer' );

    I reinserted the lines and changed the wp_enque_script back as it was.

    Result:
    The error is gone and the theme works again together with Jetpack 2.5.

    Any particular reason why this has been changed?
    Please correct this in the next release of the theme.
    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.