joachim.niclasen Posted June 30, 2012 Share Posted June 30, 2012 Hi I have a problem when trying to download pdf invoices from my back office. I'm Using Prestashop 1.4.8.2 and prestashop_new theme. I get the error message: "FPDF error: Some data has already been output, cannot send PDF file". I see there's quite a few people who has experienced this problem. I have seen different solutions to the problem but those haven't really worked for me. I followed an advice from someone saying I should modify the Tools -> FPDF -> fpdf.php file: line 992 function Output($name='', $dest='') { ob_clean(); adding the ob_clean(); That worked great for the the front office. My customers can now download their pdf-invoices, but it still doesn't work from the back office. I get the same Maybe I need to add the ob_clean(); elsewhere? Really hope someone more experienced than me can help me out on this one :-) Link to comment Share on other sites More sharing options...
tuk66 Posted July 12, 2012 Share Posted July 12, 2012 Try to enable displaying errors. This error means that some text go out before PDF creation. 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