WordPress.org

Ready to get started?Download WordPress

Forums

WP Publication Archive
[resolved] Download File wont link to correct file (17 posts)

  1. thedoodly
    Member
    Posted 2 years ago #

    Seems to say my file doesn't exist. I have uploaded it and attached it to the correct publication. Still nothing.

    Basically all it says is cannot be found.

    Any suggestions?

    Please email me. Thanks!

    http://wordpress.org/extend/plugins/wp-publication-archive/

  2. Eric Mann
    Member
    Plugin Author

    Posted 2 years ago #

    You haven't given me enough details here to figure out what's going on. A link to the site ... link to the file ... link to the broken publication ... all would help.

    And I can't email people for whom I don't have email addresses :-)

  3. thedoodly
    Member
    Posted 2 years ago #

    I am sorry. Sloppy, i left it right before i was leaving work, failed to give you all the information you needed haha.

    Link to site: http://www.jthealthcareuniforms.com/deal-of-the-month
    PUBLICATION TITLE: TEST

    Thanks so much for your support!

    Tyler

    tyler@thebusinesscardshoppe.com

  4. Eric Mann
    Member
    Plugin Author

    Posted 2 years ago #

    Which version of the plugin are you using? I have an idea of what might be going on, but need to check version numbers to be sure.

  5. thedoodly
    Member
    Posted 2 years ago #

    V: 2.3.1

    I installed the earlier versions to see if those would work. They did not and they broke my theme. (Added post titles twice and a few other lil things)

    Thanks bud!

  6. Eric Mann
    Member
    Plugin Author

    Posted 2 years ago #

    Version 2.3.1 added a line in openfile.php that attempts to prevent loading remote content. Unfortunately, it's dependent on $_SERVER['SERVER_NAME'] which might not work in all situations.

    So go into openfile.php and remove these two lines from near the top of the file:

    if ( strpos( $_GET['file'], (isset($_SERVER['HTTPS']) ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] ) === false )
    	die();

    That should hopefully fix the problem. If it does, great! If not, let me know. Either way, it means I still need to fix something ...

  7. thedoodly
    Member
    Posted 2 years ago #

    No fix. I left it out so you can see.

    Thanks!!!!! I'll wait for your reply.

  8. kennethw
    Member
    Posted 2 years ago #

    Hi, Eric:
    I install your publication archive plugin in my website, it works fine, thank you,
    but I want ask you
    1. how to make a change, when click the download button to open the files not to save the file;
    2. how to add the author and jurnal name on it and both of them have link to them.
    thanks
    ken

  9. Eric Mann
    Member
    Plugin Author

    Posted 2 years ago #

    @kennethw - Please open a new thread to ask you question, don't hijack an existing conversation.

  10. thedoodly
    Member
    Posted 2 years ago #

    Any luck yet eric?

  11. Eric Mann
    Member
    Plugin Author

    Posted 2 years ago #

    @thedoodly - I emailed you directly outside the forums last week. Did you not receive the message? You're running in to things that require a more in-depth look at your site.

  12. thedoodly
    Member
    Posted 2 years ago #

    Ohh sorry my email sometimes goes into spam folders because of the business name... please check those i e-mailed you twice. THANKS! @ericmann

  13. Eric Mann
    Member
    Plugin Author

    Posted 2 years ago #

    For those following along at home ...

    The problem turned out to be the way the site is rewriting URLs. It was eating the url added to the file= query variable and returning a 404. I will fix this in a coming release and have a short-term patch functioning on @thedoodly's site for now.

  14. joesch
    Member
    Posted 2 years ago #

    Hi Eric,

    I have the same problem since Ver. 2.3.1. Can you provide this "short-patch" here?

    Many thank's ... Joesch

  15. Eric Mann
    Member
    Plugin Author

    Posted 2 years ago #

    @joesch Can you please provide me a link to your site first? The problem we were fixing for thedoodly was due to what appears to be a very customized setup ... so while you might see the same symptoms I'm not sure you're facing the same problem.

    In short, I don't think the short-term patch we applied to thedoodly's site will work in most cases.

  16. joesch
    Member
    Posted 2 years ago #

    I have analyzed one more thing: WP Publication Archive works - but not when the file is restricted by the granting of rights with the UAM (User Access Manager). Here's the link: http://www.tanzsport-brandenburg.de/ltv-service/downloadtest/ The error is the same - no matter whether the user has the rights to the file or not.

    Greatings, joesch

  17. Eric Mann
    Member
    Plugin Author

    Posted 2 years ago #

    @joesch - You have something else going on with your site. I don't know if it's the UAM plugin you're using or something else, but attempting to access that file is firing wp_die().

    A file does download when I click the link, but the PDF isn't a PDF. Analyzing the file in a regular text editor reveals the markup of the standard WordPress error page.

    So something on your system is intercepting the request for the file and, rather than returning the filestream, is returning a WordPress error.

    So my recommendation is to disable all of your plugins except WP Publication Archive and test the download. If it works, then I'm right and one of your other plugins is causing the plugin. Re-activate them one at a time (testing the download after each activation) until it breaks. Then let me know which plugin is causing the problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic