demielune Posted May 4, 2009 Share Posted May 4, 2009 Bonsoir/Bonjour,Que signifie : " FPDF error: Some data has already been output, can't send PDF file " lorsque l'on est dans la partie client (connecté avec un compte fictif donc en tant que client) et que l'on veut afficher la facture ?Google {(mon ami } traduit cela par : " FPDF error: Certaines données ont déjà été la production, ne peuvent pas envoyer de PDF fichier ".Merci de vos avis éclairés ! Link to comment Share on other sites More sharing options...
cavaddu Posted May 19, 2009 Share Posted May 19, 2009 j'ai le même probleme.... avec mes clients qui ne peuvent pas ouvrir leur fichier pdf...par contre du coté du back office tout est OK ! les fichiers pdf s'ouvre correctement et je fais un mail au client avec facture en piece jointe...mais je cherche toujours...quelqu'un a une idée !!!le message apparait à la tentative d'ouverture du fichier pdf de la part du client à partir de son compte... Link to comment Share on other sites More sharing options...
metamorpher Posted June 1, 2009 Share Posted June 1, 2009 SOLVEDJust replace your v1.1.0.5 classes/Validate.php with some newer (1.2 RC1 i.e.) Worked for me Validate.php Link to comment Share on other sites More sharing options...
peacheaven Posted June 17, 2009 Share Posted June 17, 2009 SOLVEDJust replace your v1.1.0.5 classes/Validate.php with some newer (1.2 RC1 i.e.) Worked for me Hi,still not working for me(FPDF error: Some data has already been output, can't send PDF file),is there any setting that I've missed? Link to comment Share on other sites More sharing options...
metamorpher Posted June 18, 2009 Share Posted June 18, 2009 SOLVEDJust replace your v1.1.0.5 classes/Validate.php with some newer (1.2 RC1 i.e.) Worked for me Hi,still not working for me(FPDF error: Some data has already been output, can't send PDF file),is there any setting that I've missed? Try check ADMIN > Preferences > PDF ... otherwise i have no idea at the moment. That my solution worked for some people...Best regards Link to comment Share on other sites More sharing options...
peacheaven Posted June 18, 2009 Share Posted June 18, 2009 Try check ADMIN > Preferences > PDF ... otherwise i have no idea at the moment. That my solution worked for some people...Best regards Hi metamorpher,may I know which encoding to make it works?Thanks in advanceBest regards Link to comment Share on other sites More sharing options...
SuzieSuzy Posted July 9, 2009 Share Posted July 9, 2009 Hello,I have checked pdf-invoice.php and admin/pdf.pdf and find out there is no "include(dirname(__FILE__).'/init.php');" in admin/pdf.php.So I comment it and it works !! But I don't know if it's a good solution ... Link to comment Share on other sites More sharing options...
peacheaven Posted July 15, 2009 Share Posted July 15, 2009 Hi SuzieSuzy,I still don't get it,could you please more specific?maybe you can tell which line before and after your comment on it? Link to comment Share on other sites More sharing options...
SuzieSuzy Posted July 15, 2009 Share Posted July 15, 2009 Hello,the file "pdf-invoice.php" is in the root of the website, just change line 4 : <?php include(dirname(__FILE__).'/config/config.inc.php'); include(dirname(__FILE__).'/init.php'); in <?php include(dirname(__FILE__).'/config/config.inc.php'); //include(dirname(__FILE__).'/init.php'); Hope it works for you :-) 1 Link to comment Share on other sites More sharing options...
glosticks Posted July 15, 2009 Share Posted July 15, 2009 this usually caused by some whitespace after the closing php ?> tagcheck you files for any extra line breaks and whitespace after the closing php ?> taGREGARDScHRIS Link to comment Share on other sites More sharing options...
peacheaven Posted July 16, 2009 Share Posted July 16, 2009 Hi SuzieSuzy,thanks for ur reply,I tried and still not working for me:(It is used to be working but after add state then it stop working Link to comment Share on other sites More sharing options...
peacheaven Posted July 16, 2009 Share Posted July 16, 2009 this usually caused by some whitespace after the closing php ?> tagcheck you files for any extra line breaks and whitespace after the closing php ?> taGREGARDScHRIS Hi Christ,which files should I check?thanks in advance Link to comment Share on other sites More sharing options...
SuzieSuzy Posted July 16, 2009 Share Posted July 16, 2009 Perhaps you have to configure :ADMIN > Preferences > PDF > encoding : iso-8859-1ADMIN > Preferences > PDF > font : courierIt stills working for me ... Link to comment Share on other sites More sharing options...
peacheaven Posted July 16, 2009 Share Posted July 16, 2009 Hi SuzieSuzy,I did it but still error with FPDFthanks for reply anyway:) Link to comment Share on other sites More sharing options...
SuzieSuzy Posted July 16, 2009 Share Posted July 16, 2009 You're welcome, sorry it doesn't work. However I'm looking for another solution, I think mine isn't "clean". So good luck ! Link to comment Share on other sites More sharing options...
kpince Posted February 4, 2010 Share Posted February 4, 2010 I had the same problem. I fixed it by putting @ before the two ini_set lines in the fpdf file. Link to comment Share on other sites More sharing options...
peanut Posted October 29, 2010 Share Posted October 29, 2010 I had the same problem. I fixed it by putting @ before the two ini_set lines in the fpdf file. Oh my god! Thank you so much. I've been losing sleep over the error & u solved it for me! Mine was a little different error, it kept saying file was damaged & couldn't be opened. Link to comment Share on other sites More sharing options...
poplol Posted November 22, 2010 Share Posted November 22, 2010 I had this problem before for the front end and fixed it by doing function Output($name='', $dest='') { ob_clean(); on line 993 in the tools/fpdf/fpdf.phpob_clean basically cleans all the content & headers from a page.But now I have a problem when i try to export a invoice from the Backend it says the same FPDF error: Some data has already been output, can’t send PDF file . Any one have any solution to this 2 Link to comment Share on other sites More sharing options...
zerozero Posted November 30, 2010 Share Posted November 30, 2010 Hello,the file "pdf-invoice.php" is in the root of the website, just change line 4 :<?php include(dirname(__FILE__).'/config/config.inc.php'); include(dirname(__FILE__).'/init.php'); in <?php include(dirname(__FILE__).'/config/config.inc.php'); //include(dirname(__FILE__).'/init.php'); Hope it works for you :-) It works!!!! God bless you!! thanks for sharing this information a year a go!!!! Link to comment Share on other sites More sharing options...
Icedocemile Posted December 14, 2010 Share Posted December 14, 2010 It works for me too ! And I have ps version 1.3.2. Link to comment Share on other sites More sharing options...
m@noo Posted June 10, 2011 Share Posted June 10, 2011 Hello,you can active debugging mode in config/config.inc.php file to show the real error message.in the config.inc.php file put display_errors to on @ini_set('display_errors', 'on'); Then real php error would be something like that Warning: Cannot modify header information - headers already sent by (output started at /home/ftp/www/tools/fpdf/font/helveticab.php:31) which indicates that line 31 of helveticab.php (it's just an example) is wrong.You have just characters after the "?>" php end tag.look at FDF FAQCorrect the file deleting character after php end tag and all works fine.Manu Link to comment Share on other sites More sharing options...
yabonga Posted August 3, 2011 Share Posted August 3, 2011 I had this problem before for the front end and fixed it by doing<br/><br/> function Output($name='', $dest='')<br/>{<br/> <br/> ob_clean(); <br/><br/>on line 993 in the tools/fpdf/fpdf.php<br/><br/>ob_clean basically cleans all the content & headers from a page.<br/><br/><br/><br/>But now I have a problem when i try to export a invoice from the Backend it says the same FPDF error: Some data has already been output, can’t send PDF file . <br/><br/>Any one have any solution to this Your solution with ob_clean worked for me in FO, but not in BO. But I think I have found my source of error and I have a solution for it. I used dreamweaver to edit my pages, never had problems with it. Now I tried another program called phase5. When I edit a php-file, it seems that phase5 deletes the php end tag (?>) at the very end of the source code. The error message in BO said that something was wrong with my cookie.php. I edited this file for a few days ago, to set the cookie session time from 20 days to 3 hours - with phase5. So I opened the file in dreamweaver and voila, no php end tag. After I added the end tag to it - it worked. Link to comment Share on other sites More sharing options...
Julio UCME Posted June 18, 2012 Share Posted June 18, 2012 Hello, the file "pdf-invoice.php" is in the root of the website, just change line 4 : <?php include(dirname(__FILE__).'/config/config.inc.php'); include(dirname(__FILE__).'/init.php'); in <?php include(dirname(__FILE__).'/config/config.inc.php'); //include(dirname(__FILE__).'/init.php'); Hope it works for you :-) THANK YOU! This worked! Att. Julio Link to comment Share on other sites More sharing options...
m-graphix Posted October 2, 2013 Share Posted October 2, 2013 I had this problem before for the front end and fixed it by doing function Output($name='', $dest=''){ ob_clean(); on line 993 in the tools/fpdf/fpdf.php ob_clean basically cleans all the content & headers from a page. But now I have a problem when i try to export a invoice from the Backend it says the same FPDF error: Some data has already been output, can’t send PDF file . Any one have any solution to this Thanks a lot, this solution works great. Just a mention, in PS version 1.4.7, replace line 994 { with { ob_clean(); Link to comment Share on other sites More sharing options...
hernanlr Posted December 18, 2013 Share Posted December 18, 2013 Hi, I tried your solution but it doesn´t work. My php version is 5.4. PS version is 1.473. Worked until a few days ago... Any idea? Thanks Hernán Link to comment Share on other sites More sharing options...
tuk66 Posted December 19, 2013 Share Posted December 19, 2013 What have changed a few days ago? Any hosting changes? PHP version? Link to comment Share on other sites More sharing options...
hernanlr Posted December 19, 2013 Share Posted December 19, 2013 Hi, The php version, to 5.4. Now rolled back to 5.27 and the pdf print works again. Thanks! Hernán 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