WordPress.org

Ready to get started?Download WordPress

Forums

Download Shortcode
[resolved] WordPress 3.5 link adding 'http://' to middle of url (6 posts)

  1. Kineta
    Member
    Posted 1 year ago #

    Every thing I've tried - from using the plugin 'as is' or modifying the function.js file - the url comes out looking like this (or variation on this when using the js overwrite):

    http://www.mysite.org/download/http:/song.mp3

    Any advice?

    http://wordpress.org/extend/plugins/download-shortcode/

  2. Drew Jaynes (DrewAPicture)
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    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/

  3. Kineta
    Member
    Posted 1 year ago #

    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'):

    http://www.mysite.org/download/http:/mysite.org/wp-content/uploads/song.mp3

    Do you see the problem?

  4. Drew Jaynes (DrewAPicture)
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    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?
  5. mentalward
    Member
    Posted 1 year ago #

    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

  6. Drew Jaynes (DrewAPicture)
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    Hi mentalward,

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.