Problems downloading PDF's from site.

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
liro
Posts: 41
Joined: Thu 16. Jun 2005, 08:29
Location: Netherlands
Contact:

Problems downloading PDF's from site.

Post by liro »

Hi,
I get an 'error' message while trying to download a PDF file from my site.

Adobe gives a message "There was an error opening this document. This file could not be found".
This message appears if I click the pdf file for download and want to open it immediately.
If I save it first and then open, there is no problem.

I already deleted the file and uploaded it again, but this did not solve the problem.

PDF is at http://www.rk-kerken-lisse.nl/index.php?id=9,5,0,0,1,0

Any suggestions what this might be?

Liro
SoulDiver
Posts: 4
Joined: Fri 21. Oct 2005, 11:14
Location: Luzern

Post by SoulDiver »

hello

it seems like it helped ;-) when i download or open the file everything works fine!

cheers - adi
Image
liro
Posts: 41
Joined: Thu 16. Jun 2005, 08:29
Location: Netherlands
Contact:

ERROR still exists but only in IE

Post by liro »

Hi,
Today I received an email from someone using IE and he could not open the PDF files I have on my site.

I checked myself and indeed this is correct. When trying to download and select open, Adobe give an error that the file could not be found.

Download section at: http://www.rk-kerken-lisse.nl/index.php?downloads

This problem is only in IE. When I use Firefox everything is ok.
Any idea what this could be???

Thanks
Liro
User avatar
axelko
Posts: 138
Joined: Mon 27. Feb 2006, 22:51
Contact:

Post by axelko »

Hi, see http://www.phpwcms.de/forum/viewtopic.php?t=12243 for the same problem. For the pdf files you can set in the conf.inc.php $phpwcms['inline_download'] = 1; . Now the pdf directly opens in the browser.
But still it's a problem direct opening media files (like .wmv .asf) in IE. There's no solution yet. The $phpwcms['inline_download'] = 1; workaround doesn't work here.

Greetz,

Axel
liro
Posts: 41
Joined: Thu 16. Jun 2005, 08:29
Location: Netherlands
Contact:

Post by liro »

Thanks. But I'm running on 1.2.6
The line $phpwcms['inline_download'] = 1 is not even mentioned here.
Any other place I can change something like this?

Liro
sebby
Posts: 28
Joined: Thu 28. Apr 2005, 00:31

Post by sebby »

Consider changing

Code: Select all

header("Accept-Ranges: bytes");
to

Code: Select all

header("Accept-Ranges: none");
see details in the following thread:

http://www.phpwcms.de/forum/viewtopic.php?t=13225

I am still waiting for a second opinion on this though... be careful!

Regards,

Seb
Post Reply