Please help . How to fix this error Uncaught exception 'Exception' with message 'FPDF error:

Fatal error: Uncaught exception ‘Exception’ with message ‘FPDF error: Some data has already been output, can’t send PDF file (output started at /storage/ssd3/556/3806556/public_html/pdfreport/connection.php:1)’ in /storage/ssd3/556/3806556/public_html/pdfreport/fpdf/fpdf.php:271 Stack trace: #0 /storage/ssd3/556/3806556/public_html/pdfreport/fpdf/fpdf.php(1052): FPDF->Error(‘Some data has a…’) #1 /storage/ssd3/556/3806556/public_html/pdfreport/fpdf/fpdf.php(999): FPDF->_checkoutput() #2 /storage/ssd3/556/3806556/public_html/pdf

1 Like

when this happens to you?

Add following code to your .htaccess file

php_flag output_buffering on

2 Likes