TCPDF error: Some data has already been output....

Before you ask about IDnR Addon see the VirtueMart - Invoice, Delivery Note and Receipt Addon
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: TCPDF error: Some data has already been output....

Post by Jan »

So this means probably, there is some part of code which render some:

- error message or
- bad ecoding before the rendering PDF

the error can be found in error log, with the bad encoding it is more difficult as you need to test all files. E.g. some users has prblem because same white spaces were saved before <?php in configuration.php :idea: :(
If you find Phoca extensions useful, please support the project
kirikou
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 Aug 2009, 13:16

Re: TCPDF error: Some data has already been output....

Post by kirikou »

Very good it's the solution

Jan put that in your FAQ :D
filis
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 23 Oct 2009, 12:52

Re: TCPDF error: Some data has already been output....

Post by filis »

I have a problem again. After I use the last solution of this forum, change the error information on this text: "Warning: Cannot modify header information - headers already sent by (output started at /home/filis/domains/pro-radost.eu/public_html/beta/libraries/tcpdf/tcpdf.php:1) in /home/filis/domains/pro-radost.eu/public_html/beta/libraries/tcpdf/tcpdf.php on line 3081
TCPDF error: Some data has already been output to browser, can't send PDF file"

Please help me. Jan, muzes i cesky :-)

Filip
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: TCPDF error: Some data has already been output....

Post by Jan »

Hi, this means, there is still something what is rendered before PDF :-(

---
Pořád je tam něco co se renderuje před dokumentem a jelikž PDF není HTML, nesmí se zde nic renderovat, protože PDF dokument musí mít speciální hlavičku bez jakýchkoliv ostatních řetězců :-( Pořád je tam nějaká chyba která vytváří zprávu o chybě která se zobrazí před hlavičkou PDF :-( Tam je potřeba nějakým způsobem ty chyby ošetřit :-(
If you find Phoca extensions useful, please support the project
Post Reply