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.
Hi,
Followed your installation video to the letter, player shows up on node, but the mp3 file is not found. Using Firebug I can see that the embed code is fine (I copied the URL in the player's embed code and pasted into a browser tab - file played using browser default player fine).
Any reason for this? Is it a problem with clean URLs or Pathauto etc?
Thanks
Comments
Comment #1
jaybee1001 CreditAttribution: jaybee1001 commentedTurned-off encoded URLs.
Comment #2
jdelaune CreditAttribution: jdelaune commentedComment #3
BD3 CreditAttribution: BD3 commentedAlso gets a 'file not found error' if there is a slash (/) in the clean url.
It would be nice to have organized urls such as
www.mysite.com/audiofiles/category/audiofilename
I can change it to
www.mysite.com/audiofiles_category-audiofilename
with no problems, must be the slash?Comment #4
BD3 CreditAttribution: BD3 commentedDoes anyone know if this is by design as well, or something with the URL alias that it doesn't like? Any help would be greatly appreciated!
Comment #5
BD3 CreditAttribution: BD3 commentedComment #6
B-Dot CreditAttribution: B-Dot commentedI can confirm that with clean URLs turned on, the path to the MP3 does not resolve.
Turning off clean URLs solves the issue, but it is hardly a solution.
This is a great module - it would be wonderful to see this fixed.
Comment #7
bohz CreditAttribution: bohz commentedI think this is critical.the module should work with clean URLs.
It's a pity...
my bad: I did enable "Encode: YES" but did not save config.
With encoding enabled everything works, for me.
thanks
Comment #8
vas01 CreditAttribution: vas01 commentedHey, this has been bugging me for a while now. I have the module in a block on the front page, if i have Encoding Enabled it displays File Not Found errors on every node. If i have Encoding Disabled, then on about 1/4 nodes it displays "File Not Found" errors, its always the same songs. I tried other modules to play the same files and everything works fine, but this module matches my site the most, hope to see it work. By the way i tried both the newest Dev and the Stable, same thing on both.
Comment #9
pacasum.repocusin CreditAttribution: pacasum.repocusin commentedi got to fix the issue by removing spaces in the filename. ex. "Artist - title.mp3" yields to that error. Changing it to "Artist-title" fixes the problem. Hope this helps. :)
Comment #10
boreg CreditAttribution: boreg commentedThe problem with clean urls still appears. It's irrelevant to encoding file URL etc. The problem appears only with the slash (/) in the node URL as Birdeye Design mentioned.
Comment #11
michaelcchastain CreditAttribution: michaelcchastain commentedI believe the problem that some people are seeing is the type of relative url they are using. take for example the following hrefs
imagine these links are being called from this current url: drupal.org/node/600248.
link1 will resolve to drupal.org/node/link1.
link2 will resolve to drupal.org/link2.
I believe the example in the docs does not include the leading forward slash on the url which is necessary. This would explain why some of you are able to get mp3 player to work when only one step away from your root domain(i.e. rootdomain.com/onestep) but not when 2 or more steps away(i.e. rootdomain.com/twosteps/away) which will not resolve correctly to the root domain. And thus sites/mysite/files will not be correctly resolved.
Wrapping it up:
When calling the mp3player theme function do it like so:
note the quoted forward slash for the file path.
Michael