Jump to content

Question

Posted

Hello guys!

 

When I clicked on Invoice View, I saw error: 

TCPDF ERROR: Some data has already been output, can't send PDF file

 

It was fixed due to adding in ./components/invoice_templates/tcpdf_wrapper.php to line 2:

ob_end_clean();

1 answer to this question

Recommended Posts

  • 0
Posted

Hello guys!

 

When I clicked on Invoice View, I saw error: 

TCPDF ERROR: Some data has already been output, can't send PDF file

 

It was fixed due to adding in ./components/invoice_templates/tcpdf_wrapper.php to line 2:

ob_end_clean();

 

 

I had the same error and the above did fix it for me as well. I am wondering where the actual issue is though. I have some Blesta instances running on Ubuntu 12.04 with Apache 2.2/php 5.3 which are fine, but the Blesta running on Ubuntu 14.04/Apache 2.4/php5.5 show this error.

 

I am also having an issue where the invoice logos do not display as it appears that dome blank lines are being prepended to the file somewhere. If I download the file then edit it and remove the two lines it is then OK. Again, this is al lfine if I run under php 5.3/apache 2.2

 

Frustrating.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...