austin.nils
Forum Replies Created
-
Forum: Plugins
In reply to: [MP3-jPlayer] MP3J Playlist no longer workingI 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.phpfile:
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.
Forum: Plugins
In reply to: [MP3-jPlayer] MP3J Playlist no longer workingThanks 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:0I moved my jquery script to the <head> because it was causing issues being in the footer.
Forum: Plugins
In reply to: [MP3-jPlayer] MP3J Playlist no longer workingI’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:0I’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…