Jump to content

pdf invoice problem


Recommended Posts

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

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...