[symfony-users] Re: Download files - broken pdf

2009-03-25 Thread Tomasz Ignatiuk
After line 592 which is $response-setContent(readfile($sciezka)); There are: $response-sendContent(); return sfView::NONE; I deleted $response-sendContent(); so there are only: $response-setContent(readfile($sciezka)); return sfView::NONE; in the endStill the same error. Headers already

[symfony-users] Re: Download files - broken pdf

2009-03-25 Thread Andrei Dziahel
oops, disregard that - i've didn't read your source, sorry. 2009/3/25 Tomasz Ignatiuk tomek.ignat...@gmail.com After line 592 which is $response-setContent(readfile($sciezka)); There are: $response-sendContent(); return sfView::NONE; I deleted $response-sendContent(); so there are only:

[symfony-users] Re: Download files - broken pdf

2009-03-24 Thread Fási Gábor
What's 'broken'? You mean you can't open it with adobe reader/other pdf viewer? If you check the contents of the file, does it look like a valid pdf? On Tue, Mar 24, 2009 at 12:51, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hi, I use this code for downloading files. If I download image, it

[symfony-users] Re: Download files - broken pdf

2009-03-24 Thread Tomasz Ignatiuk
File is damaged and it couldn't be repaired - this shows while I try to open it with adobe acrobat/reader. I don;t know how to check it in a different way. 2009/3/24 Fási Gábor maerl...@gmail.com What's 'broken'? You mean you can't open it with adobe reader/other pdf viewer? If you check the

[symfony-users] Re: Download files - broken pdf

2009-03-24 Thread Yevgeniy A. Viktorov
Open it as raw file, for example with the help of vim. Tomasz Ignatiuk wrote: File is damaged and it couldn't be repaired - this shows while I try to open it with adobe acrobat/reader. I don;t know how to check it in a different way. 2009/3/24 Fási Gábor maerl...@gmail.com

[symfony-users] Re: Download files - broken pdf

2009-03-24 Thread Tomasz Ignatiuk
I opened with a VIM. Many strange alphanumeric stuff inside but in the end there is a warning few times: bWarning/b: Cannot modify header information - headers already sent by (output started at /home//apps/backend/modules/dokument/actions/actions.class.php:592) in

[symfony-users] Re: Download files - broken pdf

2009-03-24 Thread Paolo Mainardi
On Tue, Mar 24, 2009 at 5:46 PM, Tomasz Ignatiuk tomek.ignat...@gmail.comwrote: I opened with a VIM. Many strange alphanumeric stuff inside but in the end there is a warning few times: bWarning/b: Cannot modify header information - headers already sent by (output started at

[symfony-users] Re: Download files - broken pdf

2009-03-24 Thread Tomasz Ignatiuk
It worked, thank you very much!!! But how did you know? Why it is happening? 2009/3/24 Paolo Mainardi paolomaina...@gmail.com On Tue, Mar 24, 2009 at 5:46 PM, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: I opened with a VIM. Many strange alphanumeric stuff inside but in the end there

[symfony-users] Re: Download files - broken pdf

2009-03-24 Thread Paolo Mainardi
On Tue, Mar 24, 2009 at 5:54 PM, Tomasz Ignatiuk tomek.ignat...@gmail.comwrote: It worked, thank you very much!!! But how did you know? Why it is happening? Because the prod controller, strip out all the php error reporting. Check your action, probably there are some errors on Header

[symfony-users] Re: Download files - broken pdf

2009-03-24 Thread Tomasz Ignatiuk
No erros in log, but this headers already sent is strange. On 24 Mar, 18:32, Paolo Mainardi paolomaina...@gmail.com wrote: On Tue, Mar 24, 2009 at 5:54 PM, Tomasz Ignatiuk tomek.ignat...@gmail.comwrote: It worked, thank you very much!!! But how did you know? Why it is happening? Because

[symfony-users] Re: Download files - broken pdf

2009-03-24 Thread Eno
On Tue, 24 Mar 2009, Tomasz Ignatiuk wrote: No erros in log, but this headers already sent is strange. Means you're action generated some output and often its from an error message or warning. -- A --~--~-~--~~~---~--~~ You received this message because