CodeIgniter Forums
Unable to stream pdf: headers already sent - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Unable to stream pdf: headers already sent (/showthread.php?tid=11148)

Pages: 1 2


Unable to stream pdf: headers already sent - El Forum - 08-27-2008

[eluser]praveens[/eluser]
hi please help me for solving this problem, i am using dom pdf plugin for generating pdf on fly , i searched all topics but i couldn't find the solution for this error. its working nice in local system but it showing above error in my server please help me to solve this problem thanks in advance


Unable to stream pdf: headers already sent - El Forum - 08-28-2008

[eluser]praveens[/eluser]
SOLVED


Unable to stream pdf: headers already sent - El Forum - 10-29-2008

[eluser]B3ll4triX[/eluser]
hi, how to solved this problem. Now, i have a same problem.


Unable to stream pdf: headers already sent - El Forum - 10-29-2008

[eluser]praveens[/eluser]
check white spaces in your file


Unable to stream pdf: headers already sent - El Forum - 10-29-2008

[eluser]B3ll4triX[/eluser]
Problem Solved, thanks.

For CI version v1.7, plugin dompdf don't to use ?> for end the code.


Unable to stream pdf: headers already sent - El Forum - 03-18-2009

[eluser]daweb[/eluser]
[quote author="B3ll4triX" date="1225287530"]Problem Solved, thanks.

For CI version v1.7, plugin dompdf don't to use ?> for end the code.[/quote]

Many many thanks. Now it works for me.


Unable to stream pdf: headers already sent - El Forum - 10-25-2009

[eluser]miss_amylee[/eluser]
hy.im new in CI..i got same problem.i try to remove whitespace as told..but still d error displayed is same..really need ur help guys..TQ


Unable to stream pdf: headers already sent - El Forum - 02-23-2010

[eluser]CARP[/eluser]
@miss_amylee did you solve it? I also removed ending "?>" in plugins/to_pdf_pi.php

I'm using latest codeIgniter, 1.7.2


Unable to stream pdf: headers already sent - El Forum - 02-23-2010

[eluser]danmontgomery[/eluser]
The error just means that something has been printed to the browser before a call to the header() function. It is almost always a carriage return/whitespace after a closing php tag. Codeigniter core files come without closing PHP tags, so check any files you've created yourself or downloaded from other sources.


Unable to stream pdf: headers already sent - El Forum - 02-23-2010

[eluser]CARP[/eluser]
should I check all the controllers I've created?
I've checked only:
- controller_test.php (which has the generate pdf function)
- views/testpdf.php (which has the html)
- plugins/to_pdf_pi.php

and none of them has a whitespace char at the end. I tried also removing the ending "?>" from plugins/to_pdf_pi.php as stated before