Support » Plugin: MP3-jPlayer » MP3J Playlist no longer working

  • Resolved austin.nils

    (@austinnils)


    Hi —

    I’ve updated the mp3j plugin and added the new skin as well as checking plugin conflicts and removing old code that was overwriting some of the CSS.

    http://kyleacoustic.com/album/acoustic/

    The playlist is built by looping through every “song” in the “album” taxonomy and assembling a list of data like: “SongName@songURL,…”,

    That is then echo’d out like this to build the playlist:

    echo mp3j_put('[mp3-jplayer tracks="' . $list . '" images="" volslider="y" stop="n" style="noscreen"]');

    Any idea what’s breaking?

    https://wordpress.org/plugins/mp3-jplayer/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter austin.nils

    (@austinnils)

    I’ve made a bit more progress in finding out where the error lies but I still can’t figure out how to get any of my tracks to play when you click on them.

    Running console and clicking on a track gives me these errors:

    TypeError: jQuery(...).jPlayer is not a function mp3-jplayer-2.3.2.js:632:2
    
    Empty string passed to getElementById(). jquery.min.js:2:0

    I’ve tried running various versions of jquery and mucking around with the code but I am unable to figure out the issue.

    Any help would be appreciated…

    Plugin Author simon.ward

    (@simonward-1)

    Hello, it looks to be because of the extra jquery-ui script that’s hard coded into the site header, it’s on line 50 of the html. Let me know if that solves it or not.

    Thread Starter austin.nils

    (@austinnils)

    Thanks for the reply Simon,

    I removed the extra ui script but am still having the same issue:

    TypeError: jQuery(...).jPlayer is not a function --- mp3-jplayer-2.3.2.js:632:2
    
    Empty string passed to getElementById(). --- jquery.min.js:2:0

    I moved my jquery script to the <head> because it was causing issues being in the footer.

    Hi Simon,

    I am having the same kind of issue, my audio won’t play, not a single file nor a playlist. I know that it see’s the file because it show’s me the title but it just won’t play. It worked until the last update.

    Any help would be appreciated…

    here is the site

    I’m having the same issue. Same playlist code I’ve used for years no longer works. I’m not even seeing the “skin” of the player.

    Sorry, never mind. Something happened with my skin choice. All working for me now.

    Thread Starter austin.nils

    (@austinnils)

    I found the issue, and it was not with the plugin. The issue was with the following code from the Roots (https://roots.io/) framework I had running.

    lib/scripts.php file:


    if (!is_admin() && current_theme_supports('jquery-cdn')) {
    wp_deregister_script('jquery');
    wp_register_script('jquery', $assets['jquery'], array(), null, true);
    add_filter('script_loader_src', 'roots_jquery_local_fallback', 10, 2);
    }

    Removing this bit of code clears up the issue. If others are having this issue scan your code for scripts that potentially remove/add jquery scripts.

    I actually just resolved the issue, i deleted the plugin and all the correlating files in phpmyadmin, then reinstalled it and it works. make sure audio files are set to 755

    hey , how can i put the plugin on my homepage? i’m a beginner that’s why i dont know this. thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘MP3J Playlist no longer working’ is closed to new replies.