• Resolved Ronald

    (@rottinger)


    We’re running into a problem with .pdf files that the public can download from our site. In Chrome, the files just download when you click the link (from the dropdown). However, in IE 11 and Firefox, if you try to open the file with the associated program (Adobe Acrobat), we get the following error message:

    “There was an error opening this document. The file is damaged and could not be repaired.”

    If you’re only downloading the file, it seems to download a clean document. Only opening it from the download is giving the error.

    Also, in IE and Firefox, we’re seeing “string(5) “test2” showing just under “File Options” and just above the “Download” link in the dropdown, so that may have something to do with it.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Ronald

    (@rottinger)

    Sorry, as a follow-up, we’re using version 3.9.7

    Thread Starter Ronald

    (@rottinger)

    I wanted to add in some additional information. If I’m logged into the site, and I refresh the permalinks settings, I can access downloads normally (no “string(5) test2” showing), and downloads work as expected. When I log out of the site, the error message returns and downloads are again unsuccessful.

    Permissions and access to the mdocs documents folder are set appropriately.

    I have a development environment that duplicates our production environment (and where the same behavior appears). I’ve deactivated every other plugin and tested again. If I’m logged into the site, the download behavior works as it should. If I log out of the site, the same error message/results occur.

    Thread Starter Ronald

    (@rottinger)

    Here’s my final update until I hear back from you. I do get a javascript error, as follows:

    Uncaught Error: Bootstrap’s JavaScript requires jQuery
    at bootstrap.min.js?ver=27237d1ee82a213dbbfd7a5b971b5b3c:6

    Plugin Author bhaldie

    (@bhaldie)

    try this for me, open the file mdocs-rights.php goto line number 39 and remove this line:

    
    var_dump('test2');
    

    retry the download.

    Thread Starter Ronald

    (@rottinger)

    Thanks for getting back to me on this.

    I made the changes to both my development and production environments, and it works! I’ve tested against IE, Chrome, Firefox, and Safari, and no problems with opening .pdf files in the native applications.

    Thank you!

    Plugin Author bhaldie

    (@bhaldie)

    I will have a new version out soon that will correct this issue. Thanks for you patients.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error opening .pdf files from site’ is closed to new replies.