WordPress.org

Ready to get started?Download WordPress

Forums

WP Publication Archive
Publications don't donwload (6 posts)

  1. alastairweller
    Member
    Posted 1 year ago #

    Hi

    When publishing media through this plugin, the PDFs that we can normally view correctly via their media URL are reported as corrupt.

    Publication: http://www.stmatthewsworthing.co.uk/publication/2468
    Publication download: http://www.stmatthewsworthing.co.uk/publication/download/2468
    Direct attachement:
    http://www.stmatthewsworthing.co.uk/wp-content/uploads/2014/01/SMM-2013-12-December.pdf

    Any assistance appreciated.

    Al

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

  2. alastairweller
    Member
    Posted 8 months ago #

    Hi

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

    Thanks

    Al

  3. alastairweller
    Member
    Posted 8 months ago #

    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

  4. Eric Mann
    Member
    Plugin Author

    Posted 8 months ago #

    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.

  5. alastairweller
    Member
    Posted 8 months ago #

    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

  6. alastairweller
    Member
    Posted 8 months ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.