Support » Plugin: Download Shortcode » WordPress 3.5 link adding 'http://' to middle of url

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Drew Jaynes

    (@drewapicture)

    WordPress Core Developer

    Download files must be in located in your /uploads/ folder relative to /wp-content/. If you modified the file path with the fds_download_files_directory filter, that also needs to be located relative to /wp-content/

    That’s not the problem. The files are in the uploads folder. The problem is the way the plugin is rewriting the download link.

    So, without any changes to the functions.php file

    This:

    [download label="My Link"]http://mysite.org/wp-content/uploads/song.mp3[/download]

    Is being tranposed into this (and clicking on the link loads the ‘page not found’):

    [audio src="http://www.mysite.org/download/http:/mysite.org/wp-content/uploads/song.mp3" /]

    Do you see the problem?

    Plugin Author Drew Jaynes

    (@drewapicture)

    WordPress Core Developer

    I understand the problem. I’m trying to narrow down what would be causing the upload path to result in a fully-fledged URL. I can’t reproduce this on 3.4.2 or 3.5.

    Some additional questions:

    1. What permalink structure are you using?
    2. Are you on a Windows or Linux server (if Linux, what flavor)?
    3. Do you have a modified uploads path, or is it the default?
    4. Is WP installed in a subdirectory or is /wp-content/ outside the root?

    I am having the same issue. I am testing it locally before I go to Prod. My test environment:

    1) Custom Structure: /%category%/%postname%/
    2) WAMP for local and Apache (not sure on the specific version)
    3) I am using Multisite, but my files are uploaded to “/files/YEAR/MONTH/FILENAME”
    4) Installed in the root
    5) WP 3.5.1

    Plugin Author Drew Jaynes

    (@drewapicture)

    WordPress Core Developer

    Hi mentalward,

    Please start your own thread so we can keep them separate. This thread was marked as resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress 3.5 link adding 'http://' to middle of url’ is closed to new replies.