Turning on "Aggregate JavaScript files" in Configuration > Performance prevents jPlayer from playing anything. How do I solve this?

CommentFileSizeAuthor
#1 jplayer_js_aggregation.patch1.04 KBberenddeboer

Comments

berenddeboer’s picture

Status: Active » Needs review
StatusFileSize
new1.04 KB

Mistake in jplayer_library(). See attached patch.

kriskhaira’s picture

Status: Needs review » Reviewed & tested by the community

Works fine. Thanks!

kriskhaira’s picture

Status: Reviewed & tested by the community » Needs work

After using the patch, if I use jPlayer with the following settings, it only plays in the current page; and then I have to refresh the cache for it to work in a different page. When I go back to the first page it doesn't work anymore until I refresh the cache.

1. Display the jPlayer node using the Node Blocks module
2. Enable all cache settings
3. Display the block on every page

Disabling "Cache blocks" fixes this, but I'm sure that can't be an ideal solution.

berenddeboer’s picture

Status: Needs work » Reviewed & tested by the community

This seems to be an entirely different problem. Please create a new issue.

batje’s picture

confirmed, works

pumpkinkid’s picture

Patch worked for me as well! Thanks!

kehan’s picture

works for me too ;)

deviantintegral’s picture

Status: Reviewed & tested by the community » Closed (duplicate)