Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Eric Mann

    (@ericmann)

    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 ??

    Thread Starter thedoodly

    (@thedoodly)

    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: https://www.jthealthcareuniforms.com/deal-of-the-month
    PUBLICATION TITLE: TEST

    Thanks so much for your support!

    Tyler

    [email protected]

    Plugin Author Eric Mann

    (@ericmann)

    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.

    Thread Starter thedoodly

    (@thedoodly)

    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!

    Plugin Author Eric Mann

    (@ericmann)

    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://' : 'https://') . $_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 …

    Thread Starter thedoodly

    (@thedoodly)

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

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

    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

    Plugin Author Eric Mann

    (@ericmann)

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

    Thread Starter thedoodly

    (@thedoodly)

    Any luck yet eric?

    Plugin Author Eric Mann

    (@ericmann)

    @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.

    Thread Starter thedoodly

    (@thedoodly)

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

    Plugin Author Eric Mann

    (@ericmann)

    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.

    Hi Eric,

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

    Many thank’s … Joesch

    Plugin Author Eric Mann

    (@ericmann)

    @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.

    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: https://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

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘[Plugin: WP Publication Archive] Download File wont link to correct file’ is closed to new replies.