WordPress.org

Support

Support » Plugins and Hacks » Publications don't donwload

Publications don't donwload

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi

    This issue is still occurring – I wonder if anyone might be able to assist?

    Thanks

    Al

    I’ve just used a website to view the HTTP headers of the download file url and the direct file url and the former is returning a content-length of 0 bytes whilst the latter gives me 5061782 bytes. This definitely seems like an issue within the plugin code or a feature the code is using.

    Is there any chance of some pointers on where I should be looking now?

    Thanks

    al

    Plugin Author Eric Mann

    @ericmann

    If you can, check event logs. Perhaps the file itself is inaccessible to the PHP process WordPress is using to stream it to the browser.

    The other alternative is to set the plugin to return a “See Other” header rather than a file stream. This is often the easiest solution for tricky downloads/server configurations.

    To do this, add the following code somewhere in your theme’s functions.php file:

    add_filter( 'wppa_mask_url', '__return_true' );

    This will force the plugin to pass a reference to the file itself rather than attempt to stream the bits of the file to the site visitor.

    Eric

    Thanks so much for responding, appreciate the time you’ve taken especially as this is a free plugin. I’ll have a go with the change you suggested whilst I’m waiting for the error logs from my host.

    Thanks again

    Al

    Hi Eric

    I’ve finally managed to gain access to the log files from my host and there are no entries in the error log but instead a 200 return in the access log with no file size

    stmatthewsworthing.co.uk 86.30.169.181 – – [24/Jun/2014:18:07:12 +0100] “GET /publication/2468 HTTP/1.1” 200 50228 “http://www.stmatthewsworthing.co.uk/publication/2468” “Mozilla/5.0 (iPad; CPU OS 7_1_1 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D201 Safari/9537.53″\
    stmatthewsworthing.co.uk 86.30.169.181 – – [24/Jun/2014:18:07:14 +0100] “GET /publication/download/2468 HTTP/1.1” 200 – “http://www.stmatthewsworthing.co.uk/publication/2468” “Mozilla/5.0 (iPad; CPU OS 7_1_1 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D201 Safari/9537.53″\
    }

    I’m a bit flummoxed by this and it looks like everything thinks it’s working…

    Al

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Publications don't donwload’ is closed to new replies.