title: Uncaught exception 'Exception' with message 'FPDF error PHP
body: <p>I was developing this website which at some point, exports a PDF with some appointment details. It worked properly, but a few days ago it trowed me this error, and so far I couldn't figure out why. Thanks in advance!</p>
  
  <p><strong>Complete error:</strong> </p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception 'Exception' with message 'FPDF error: Some data has already been output, can't send PDF file (output started at /home/r46122expe/public_html/Domenii/wise-company.com/testprefectura/inf_permise/Rezervari/pdf.php:2)' in /home/r46122expe/public_html/Domenii/wise-company.com/testprefectura/inf_permise/Rezervari/fpdf.php:271 Stack trace: #0 /home/r46122expe/public_html/Domenii/wise-company.com/testprefectura/inf_permise/Rezervari/fpdf.php(1052): FPDF->Error('Some data has a...') #1 /home/r46122expe/public_html/Domenii/wise-company.com/testprefectura/inf_permise/Rezervari/fpdf.php(1012): FPDF->_checkoutput() #2 /home/r46122expe/public_html/Domenii/wise-company.com/testprefectura/inf_permise/Rezervari/pdf.php(123): FPDF->Output('D', 'programare.pdf') #3 {main} thrown in /home/r46122expe/public_html/Domenii/wise-company.com/testprefectura/inf_permise/Rezervari/fpdf.php on line 271</p>
  </blockquote>
  
  <p><strong>fpdf.php</strong></p>
  
  <p><a href="http://pastebin.com/DfaSFCY2" rel="nofollow noreferrer">http://pastebin.com/DfaSFCY2</a></p>