Thread:Extension talk:Collection/Unable to download the PDF

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 a series of the following error:

PHP Warning: curl_setopt [function.curl-setopt]: the provided file handle is not writable in /var/www/html/mw/extensions/Collection/Collection.body.php on line 1324.

Is there somone who can give me an help !!

Thanks a Lot in advance !