• Hi,
    After updating to WordPress 5.5.1 and WP Document Revisions Version 3.2.4 all inline documents (pdf etc) showed as jibberish and all downloads showed a server error. Removing all the other plugins including the template core (Avada Core) solved it. But adding any 2 or 3 plugins broke the downloads again.

    My solution :
    wp-content/plugins/wp-document-revisions/includes/class-wp-document-revisions.php
    public function serve_file($template)
    around line 1113,

    After : readfile($file);
    Added : die;

    Hope this helps someone.

    Great plugin, guys, Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Contributor nwjames

    (@nwjames)

    @tcarterfrance,
    Thank you for raising this. It is very helpful.

    Users raise reports of corrupted files from time to time and it is not evident why.

    The serve_file process is called within an add_filters function – that means other processing can occur afterwards – including writing to the output file – which can create the failure condition.

    So you are correct that after outotting the file, it should stop further processing.

    I’ll create a pull reqquest including this shortly.

    Regards,
    Neil James

Viewing 1 replies (of 1 total)
  • The topic ‘All downloads and inline documents corrupted’ is closed to new replies.