Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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.

    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…

Viewing 3 replies - 1 through 3 (of 3 total)