Unable to download the PDF

Jump to: navigation, search

Hello all, I got a very strange issue on my MediaWiki 1.16.2 (PHP 5.2.10). I installed PDF Writer and Collections extentions, on the same server. PDF Writer works perfectly, and running manually mw-render the pdf are created without any problem. Trying to generate the pdf from inside the Media Wiki article, it seems to be correctly generated, but when I download it insted of show the document within the browser, I got with Internet Explorer a dialog box to dowload a file called index.pdf which is corrupted and unreadable, while FireFox 7.01 show a page full of unreadable characters (as you open a pdf with a text editor). Looking at the mw-serve log I don't get any error, and following the output cache directory path I was able to find the original file generated from mw-serve, called output.rl. I rename it as output.pdf and opened it with acrobat reader; it results perfect (while the version downloaded with IE8 results corrupted and unreadable). I suspect a problem in the download phase. Looking at httpd error log I found the following errors:

[Tue Nov 08 10:01:11 2011] [error] [client 192.168.1.10] PHP Warning:  curl_setopt() [<a href='function.curl-setopt'>
 function.curl-setopt</a>]: the provided file handle is not writable in /var/www/html/mw/extensions/Collection/
 Collection.body.php on line 1324, referer: http://192.168.1.62/mw/index.php?title=Speciale:Libro&bookcmd=rendering 
 return_to=PE02+-+Come+Riavviare+Server+da+ILO&collection_id=0608362be0a6524d&writer=rl

[Tue Nov 08 10:01:11 2011] [error] [client 192.168.1.10] PHP Warning:  Cannot modify header information - headers already 
 sent by (output started at /var/www/html/mw/extensions/Collection/Collection.body.php:1328) in /var/www/html/mw/extensions
 /Collection/Collection.body.php on line 1147, referer: http://192.168.1.62/mw/index.php?title=Speciale:Libro&
 bookcmd=rendering&return_to=PE02+-+Come+Riavviare+Server+da+ILO&collection_id=0608362be0a6524d&writer=rl

[Tue Nov 08 10:01:11 2011] [error] [client 192.168.1.10] PHP Warning:  Cannot modify header information - headers already 
 sent by (output started at /var/www/html/mw/extensions/Collection/Collection.body.php:1328) in /var/www/html/mw/extensions
 /Collection/Collection.body.php on line 1148, referer: http://192.168.1.62/mw/index.php?title=Speciale:Libro&
 bookcmd=rendering&return_to=PE02+-+Come+Riavviare+Server+da+ILO&collection_id=0608362be0a6524d&writer=rl

[Tue Nov 08 10:01:40 2011] [error] [client 192.168.1.10] PHP Warning:  curl_setopt() [<a href='function.curl- 
 setopt'>function.curl-setopt</a>]: the provided file handle is not writable in /var/www/html/mw/extensions/Collection
 /Collection.body.php on line 1324

[Tue Nov 08 10:01:40 2011] [error] [client 192.168.1.10] PHP Warning:  Cannot modify header information - headers already 
 sent by (output started at /var/www/html/mw/extensions/Collection/Collection.body.php:1328) in /var/www/html/mw/extensions 
 /Collection/Collection.body.php on line 1147

[Tue Nov 08 10:01:40 2011] [error] [client 192.168.1.10] PHP Warning:  Cannot modify header information - headers already 
 sent by (output started at /var/www/html/mw/extensions/Collection/Collection.body.php:1328) in /var/www/html/mw/extensions
 /Collection/Collection.body.php on line 1148

Is there somone who can give me an help !!

Thanks a Lot in advance !

FrancoR00:35, 7 November 2011
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox