Welcome Guest, Not a member yet? Register   Sign In
Unable to stream pdf: headers already sent
#1

[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
#2

[eluser]praveens[/eluser]
SOLVED
#3

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

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

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

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

[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.
#7

[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
#8

[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
#9

[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.
#10

[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




Theme © iAndrew 2016 - Forum software by © MyBB