• Resolved peteleckemby

    (@peteleckemby)


    My player works great in my page. When the download button is clicked, the page show this text:

    The file https://s3.amazonaws.com/5Habits/5 Essential Habits for Entrepreneurial Growth.mp3 doesn’t exist; check the URL

    When I simply copy the https:// address and paste into browser it works perfect.

    This is what the download button from the player puts in the browser:

    [audio src="http://accelerateleadershipgroup.com/wp-content/plugins/wp-miniaudioplayer/map_download.php?filename=5+Essential+Habits+for+Entrepreneurial+Growth.mp3&fileurl=https://s3.amazonaws.com/5Habits/5+Essential+Habits+for+Entrepreneurial+Growth.mp3" /]

    I assume its a simple code writing step in the player, but I am not highly proficient in HTML so I haven’t been able to correct.

    Please help.

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

Viewing 13 replies - 1 through 13 (of 13 total)
  • Michael

    (@stockerdesign)

    Hi Y’all,
    I do have the same issue.
    The file /www/htdocs/w009b486/Domains/zentrum-des-neuen-seins/http:/www.zentrum-des-neuen-seins.de/i/einsteiger/wofuer-herzatmung.mp3 doesn't exist; check the URL
    is what comes up in my system.
    I did write into the interface:
    http:/www.zentrum-des-neuen-seins.de/i/einsteiger/wofuer-herzatmung.mp3
    but anyhow – I cannot see where to turn this off – additional path is added automatically:
    /www/htdocs/w009b486/Domains/zentrum-des-neuen-seins/
    this is the internal root path.
    May you give us advise please, Matteo?
    Thank you very much!
    Michael

    Plugin Author pupunzi

    (@pupunzi)

    @peteleckemby: I think your problem is the filename as it should not ave spaces. please try renaming it and see if it works.

    @michael: Your case is different. It seams that the mp_download.php is receaving a wrong path. That could depend by your web-server settings but you can make some tests by commenting from mp_download.php:

    if($pos){
    
        if (isset($_SERVER['HTTPS']) &&
            ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) ||
            isset($_SERVER['HTTP_X_FORWARDED_PROTO']) &&
            $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
            $protocol = 'https://';
        }
        else {
            $protocol = 'http://';
        }
    
        $file_url = str_replace ($protocol. $web_address .'/', '', $file_url);
        $file_url = $web_root ."/". $file_url;
        $file_url = str_replace('//', '/', $file_url);
    
        //die($protocol . " --- " .$web_root . " --- " .$web_address . " --- " . $file_url );
    
    }

    That should force the download of the file from the web stream instead of retrieving it as file…

    Bye,
    M

    Thread Starter peteleckemby

    (@peteleckemby)

    My file actually has a + symbol between each word, not spaces. And when I simply copy paste from the error message it works fine. In my original post I pasted the actual link the download button is trying to use (it has the + symbol in it as well) and it gives the error message. Are there any other possible solutions?

    I am having the same exact problem. Any solutions found?

    Plugin Author pupunzi

    (@pupunzi)

    @markdejesus: Does your files contains special characters in the name?

    yes when i upload them up to amazon s3, it added a + sign between any spaces. I got rid of the spaces and it seems to be working!

    Plugin Author pupunzi

    (@pupunzi)

    @markdejesus: You should remove any space or special character from the file name.

    I’m getting the message when I try to download file:

    The file /var/chroot/home/content/27/10997227/html/wp-content/uploads/2014/11/02-Raising-Compassionate-Boys-Touch-1.mp3 doesn’t exist; check the URL

    I have changed the file name, so no special characters.

    Funny thing is I have a number of audio files and the first one downloads, but the others don’t??? Here is the url: http://www.raisingcompassionateboys.com/raising-compassionate-boys-audio-program/

    And here is the html code on the page.

    Track 1

    Track 1<textarea class=”map_params” disabled=”disabled”>map :: {skin:’gray’, animate:true, width:’200′, volume:0.2, autoplay:false, loop:false, showVolumeLevel:true, showTime:true, showRew:true, downloadable:true, downloadablesecurity:false, id3: false}</textarea>

    Track 2

    Track 2<textarea class=”map_params” disabled=”disabled”>map :: {skin:’gray’, animate:true, width:’200′, volume:0.2, autoplay:false, loop:false, showVolumeLevel:true, showTime:true, showRew:true, downloadable:true, downloadablesecurity:false, id3: false}</textarea>

    Any ideas?

    Plugin Author pupunzi

    (@pupunzi)

    Hi,

    The problem is not of the player but the only available audio file is the first one; all the others don’t exist.

    this exist:
    http://www.raisingcompassionateboys.com/wp-content/uploads/2014/11/01-Raising-Compassionate-Boys.mp3

    this doesn’t:
    http://www.raisingcompassionateboys.com/wp-content/uploads/2014/11/02-Raising-Compassionate-Boys-Touch-1.mp3
    As all the others.

    Bye,
    matteo

    Matteo,
    Thank you for your response. The second link was dead because I was changing the file name. The other links are live. The audio player actually plays the file, but it still won’t download.

    Here are some files that are active:

    [audio src="http://www.raisingcompassionateboys.com/wp-content/uploads/2014/12/RCBTouch.mp3" /]

    [audio src="http://www.raisingcompassionateboys.com/wp-content/uploads/2014/11/03-Raising-Compassionate-Boys-Push-2.mp3" /]

    You can see on the page that they play, but don’t download: http://www.raisingcompassionateboys.com/raising-compassionate-boys-audio-program/

    Plugin Author pupunzi

    (@pupunzi)

    What is the difference between the first file and the others?
    Are you using any caching system?

    If yes try you could try to deactivate it to see if it is causing the problem.

    Another test you can do is to comment those lines (25-28) of the map_download.php file:

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

    Bye,
    Matteo

    Matteo,
    I tried to delete completely all the files and upload again. They all upload to be played, but the download sends me to a page that reads like this: The file /var/chroot/home/content/27/10997227/html/wp-content/uploads/2014/11/02-Raising-Compassionate-Boys-Touch-1.mp3 doesn’t exist; check the URL

    I even tried to upload the one file that works, and it does not download.

    Please look at these two identical pages:
    http://www.raisingcompassionateboys.com/?attachment_id=119
    http://www.raisingcompassionateboys.com/raising-compassionate-boys-audio-program/01-raising-compassionate-boys/

    I’ve noticed that the uploads that don’t download all have an attachment page that reads /?attachment_id=###, while the upload that does work has an attachment page that reads /raising-compassionate-boys-audio-program.

    I’m not sure why the new uploads are being tagged with /?attachment_id=###.

    Any ideas?

    Thanks,
    Kozo

    Plugin Author pupunzi

    (@pupunzi)

    Hi,
    the first (http://www.raisingcompassionateboys.com/raising-compassionate-boys-audio-program/01-raising-compassionate-boys/) is a real page you create while the second is the page of the attachment media file created by WordPress.
    I don’t know why you have different behavior between the two pages; did you try modifying the map_download.php file as I suggested?

    Bye,
    Matteo

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

The topic ‘Download link problem’ is closed to new replies.