• Resolved Pap Bligh

    (@pap-bligh)


    Hi
    I have a different problem with my downloads, I wonder if anyone can help me.
    When I try to download I get the message

    The file /etc/httpd/htdocs/audio/recwarsjuly.mp3 doesn’t exist; check the URL

    The location of my file is

    [audio src="http://www.recordwars.co.uk/audio/recwarsjuly.mp3" /]

    I have looked at the download map php file but do not understand what I should change.
    This player is perfect in all other ways and really want to get it working and downloading
    Thanks
    Pap

    http://ww.wp.xz.cn/plugins/wp-miniaudioplayer/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author pupunzi

    (@pupunzi)

    Hi,
    You can try commenting those lines in map_download.php (from 26 to 27 included):

    $file_url = str_replace ($protocol. $web_address .'/', '', $file_url);
        //$file_url = $web_root ."/". $file_url;
        //$file_url = str_replace('//', '/', $file_url);

    Let me know,
    Bye,
    Matteo

    Thread Starter Pap Bligh

    (@pap-bligh)

    Hi Matteo
    Thanks for replying
    I did what you suggested and got…

    The file audio/recwarsjuly.mp3 doesn’t exist; check the URL

    So it is no longer a wrong URL but a incomplete one. I tried commenting each line seperately with no luck.
    Any more ideas?
    Paul

    Plugin Author pupunzi

    (@pupunzi)

    Sorry,
    you need to comment also the first line:

    //$file_url = str_replace ($protocol. $web_address .'/', '', $file_url);
    //$file_url = $web_root ."/". $file_url;
    //$file_url = str_replace('//', '/', $file_url);

    Bye,
    M

    Thread Starter Pap Bligh

    (@pap-bligh)

    Thanks Matteo
    Now finding the correct URL
    Still not downloading though. Im going to check permissions and get back to you.

    Thread Starter Pap Bligh

    (@pap-bligh)

    Hi
    I have changed and checked all the relevant permissions that I am aware of and still not working. 🙁
    It may be one I dont know about but I wonder if we have exhausted all possible hacks?
    Beginning to get a bit despondent but realise I have a lot to learn about WordPress
    Paul

    Plugin Author pupunzi

    (@pupunzi)

    Hi Paul,
    Is there a reason your files are in the “audio” folder instead of the default “uploads”?
    Did you try if the download works pointing to an external domain audio file?

    One thing I can suggest you is to set a “die” point inside the map_download.php to see what is the path to the file it’s getting and try pointing to that path directly.

    You should find this commented line:
    //die($protocol . " --- " .$web_root . " --- " .$web_address . " --- " . $file_url );

    If you uncomment this line once you hit the download button it should display the above parameters. check the $file_url one and see if it is correct.

    I’m quite sure the problem is related to permissions; the three lines you commented were needed to point to the audio file using the system path instead of the URL as certain server don’t allow to stream a local file from a web URL. Anyway the most of the hosting services doesn’t matter about that allowing the stream using the default web URL.

    What I can suggest you is to contact your server administrator explaining your problem to see if it could be caused by some restrictions they are applying.

    Let me know,
    Bye,
    M

    Plugin Author pupunzi

    (@pupunzi)

    … I just figured out that the file you are trying to download is 73 mb… Quite heavy :-), Now I understand why you need an external folder; WordPress doesn’t allow you the upload of such heavy files. And that could be a problem even for the player.

    Anyway I just made some test creating a player that points to your file from a local test installation and I really could download the file… it took quite a long time but I get it.

    So pointing to it (http://www.recordwars.co.uk/audio/recwarsjuly.mp3) using the absolute path works fine and you really should not use a relative path with the player.

    As the component needs to make a stream of the file, and it took quite long, it could happens that wordpress throw a timeout error…

    Bye,
    Matteo

    Thread Starter Pap Bligh

    (@pap-bligh)

    Hi Matteo
    Thanks for all your suggestions. I have decided as files so large, often over 100MB to create a seperate Direct download button.
    You say it may be hard for your player to stream large files, is that true of all players in Wordpess?
    Cheers
    Pap

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

The topic ‘download problem’ is closed to new replies.