alpaca Posted February 25, 2010 Share Posted February 25, 2010 I have checked all current threads on this and none of the fixes work.Whenever a customer logs on and wants to check his orders as a pdf, it gives this error.FPDF error: Some data has already been output, can't send PDF filePresta team, please could help? Link to comment Share on other sites More sharing options...
Zenzation Posted March 3, 2010 Share Posted March 3, 2010 Same problem! Can anyone help? I think the problem is with UTF-8... Link to comment Share on other sites More sharing options...
tomerg3 Posted March 3, 2010 Share Posted March 3, 2010 Did you modify any of the PDF code?It sounds like there is something that is being outputted to the screen before the PDF header, which is causing the issue. Link to comment Share on other sites More sharing options...
Zenzation Posted March 4, 2010 Share Posted March 4, 2010 A men called Johan in France fixed our problem by doing this:Add this to admin/pdf.php:ob_end_clean ();Just before:if (isset( $_GET[ 'pdf' ] ))And it works! Link to comment Share on other sites More sharing options...
alpaca Posted March 15, 2010 Author Share Posted March 15, 2010 I tried this and it does not work Zenzation.Are you sure this is all the code you need to add? Link to comment Share on other sites More sharing options...
mikro Posted March 23, 2010 Share Posted March 23, 2010 Did you changed the logo? Link to comment Share on other sites More sharing options...
Straigh&Alert Posted November 7, 2010 Share Posted November 7, 2010 same problem, and I've changed the logo.The problème could come from that change ?'cause i've already managed to display the pdf invoice with this new logo :/ Link to comment Share on other sites More sharing options...
Straigh&Alert Posted November 7, 2010 Share Posted November 7, 2010 I've found the solution here :http://www.prestashop.com/forums/viewthread/28190/at least it works for me i had 2 white space after the closing tag in product.php ( in classes) Link to comment Share on other sites More sharing options...
sillasymonturas Posted August 31, 2012 Share Posted August 31, 2012 I had the same problem. I couldn't print my PDF invoices. I got that error. Finally I found the page http://prestashopdeveloperstips.blogspot.com.es/2012/03/fpdf-error-some-data-has-already-been.html It works for us !! Link to comment Share on other sites More sharing options...
Ckapone Posted October 3, 2012 Share Posted October 3, 2012 Hi, Just to tell you many thanks for the solution Ckarone Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now