Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When JS compression is turned on, the path to the sites/all/libraries/mediaelement/build/flashmediaelement.swf file becomes relative to the current node path, ie http://example.com/node/123/flashmediaelement.swf
Attached is the simple fix we used however I am guessing it isn't an appropriate fix, but more of an indicator of the problem.
Comment | File | Size | Author |
---|---|---|---|
mediaelement_js_compression.patch | 581 bytes | crashtest_ |
Comments
Comment #1
Dave ReidObviously the solution is to fix D7's JS caching, but this is a fine work-around for now. Tested and confirmed it fixes.
Comment #2
mfer CreditAttribution: mfer commentedThe issue is not with caching but preprocessing. MediaElement detects its path to know the path to the other assets it needs (like flash files). Once proprocessed the two paths are different. See http://git.drupalcode.org/project/mediaelement.git/commitdiff/fee9c11feb... for more details.