Jump to content

- - - - -

FPDF error: Some data has already been output, can't send PDF file

pdf invoice and packing slip solved

This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic

#1 ONLINE   Peper

  • Members
  • 428 posts

Posted 03 September 2011 - 11:38

Took me many hours to figure this out
Hope this will help someone else - old and new FPDF ver.

I got addon with pdf invoice and packing slip, but when generating pdf file I was getting FPDF error: Some data has already been output, can't send PDF file
the page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression

So, open admin/pdf_invoice and packingslip.php and edit as follows

find on top of page:

replace with

while (ob_get_level())
header("Content-Encoding: None", true);

Contributions successfully installed : Header tags SEO, Scrolling new products, Customer testimonials, Support tickets, Polls, Link exchange, SPPC, X-sell, Master products, Dhtml menu, Image cache, Slide show, Product videos, Product custom sort, Product notes, Discount coupons, Ask question(review style + admin), CP builder, Customers also purchased, price list, // SEO URLS 5, and forgot the others and then a real admin setup.