Closed Thread
Results 1 to 9 of 9

Thread: [Solved]Corrupted PDFs

  1. #1
    _michael_ is offline Newbie
    Join Date
    Mar 2008
    Posts
    3
    Rep Power
    0

    [Solved]Corrupted PDFs

    I am currently running ionFiles 4.2 but anytime I use the File Download -> Yes it sends an empty PDF (0 bytes) and an Adobe error:

    "Adobe Reader could not open 'filename.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)."

    If I set File Download -> No, it works just fine.

    Are there any recommended steps to troubleshooting this?

    Any help is appreciated.

    Thank you,
    Michael

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest

    Re: Corrupted PDFs

    I've seen this problem when your webhost has disabled fopen with non-local files. This means you can't use fopen with any URL such as http://www.mysite.com/pdf.pdf. If the files are hosted on your local server use the relative path, IE: /files/mypdf.pdf. If you need help, let me know.

  4. #3
    _michael_ is offline Newbie
    Join Date
    Mar 2008
    Posts
    3
    Rep Power
    0

    Re: Corrupted PDFs

    Jordan, thank you! I bet that is it. I made the relative path change and I can see that I am on the right path, but joomla is putting too much info in URL when I click on the link (http://www.domain.com/home/.serverna...onfiles/my.pdf).

    I know this is a Joomla problem but if you could point me int he right direction I would appreciate it.

    Michael

  5. #4
    Jordan Guest

    Re: Corrupted PDFs

    It looks like you are not entering the relative paths correctly. Remove the "http://www.domain.com/home/" and just put "/dir/file.pdf". For example, if you put http://www.domain.com/file/mypdf.pdf to download normally, just insert "/file/mypdf.pdf" in ionFiles.

  6. #5
    _michael_ is offline Newbie
    Join Date
    Mar 2008
    Posts
    3
    Rep Power
    0

    Re: Corrupted PDFs

    I have tried three variations to test this out:
    /files/mypdf.pdf

    result:
    http://www.domain.com/home/.server/a...iles/mypdf.pdf
    ----------------------------------------------------------------
    files/mypdf.pdf

    result:
    http://www.domain.com/home/.server/a...iles/mypdf.pdf
    ---------------------------------------------------------------
    mypdf.pdf

    result:
    /home/.server/account/domain.com/cms/mypdf.pdf

    Thank you for your help.

  7. #6
    Jordan Guest

    Re: Corrupted PDFs

    And none of these methods worked? Can you create a temporary admin account for me on your Joomla! installation and PM me the details? I'd like to look into this bug more and hopefully get it resolved.

  8. #7
    imedranoo is offline Newbie
    Join Date
    Jul 2008
    Posts
    2
    Rep Power
    0

    Re: Corrupted PDFs

    I am having the same problem with ionfiles.. I put the url file but the pdf does not open. please help

  9. #8
    Jordan Guest

    Re: Corrupted PDFs

    Can you post the link to your download URL so that I can test?

  10. #9
    imedranoo is offline Newbie
    Join Date
    Jul 2008
    Posts
    2
    Rep Power
    0

    Talking Re: Corrupted PDFs

    I have been resolved the problem, i did what you said about the url and it works.

    Thanks!

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Stack around the variable 'equation' was corrupted.
    By Airplaneman19 in forum C and C++
    Replies: 1
    Last Post: 08-16-2011, 04:38 PM
  2. Replies: 2
    Last Post: 10-27-2010, 11:11 PM
  3. File download is corrupted
    By jaguar in forum PHP Development
    Replies: 3
    Last Post: 05-04-2008, 03:54 AM
  4. Replies: 6
    Last Post: 01-19-2008, 10:19 AM
  5. Corrupted Downloads?
    By TcM in forum Technology Ramble
    Replies: 7
    Last Post: 01-10-2008, 03:56 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts