nycbicycleshop Posted January 10, 2013 Share Posted January 10, 2013 (edited) I am still using prestaShop Version 1.2.5.0 because I have alot of items and I don't want to get risk to loose it with upgrade. I have a one problem with PDF Invoice file, when i click to create invoice it's getting this error FPDF error: Some data has already been output, can't send PDF file. This error almost in the beginnig of the prestashop installation and I didn't take care of it but at this time I want to fix it.I have another installed prestashop on the the same server and this PDF invoice is working. Today I spent almost 6 hours to research about the problem on the forums but I can't fix it. I replaced the files with working to not working files but no luck.At the end I decide to write here because this error getting me crazy because I can not solve the problem. These files to I try to edit from the forums: 1) I follow this forums http://www.prestasho...-send-pdf-file/ I try to exchange validate.php form working server to non working server but it didn't worked. I try edit the file from pdf-invoice.php <?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'); it didn't worked 2) I follow this link to fix it http://www.prestasho...ready-been.html Go to [tools] folder - > Open [fpdf] folder - Open fpdf.php file Line no:992 function Output($name='', $dest='') { ob_clean(); it didn't work 3) I follow the instruction http://www.prestadb....sages-tutorial/ and I decided the enable the debugging mode on the config/config.inc. php and my error change to this Warning: Cannot modify header information - headers already sent by (output started at /home/bicycler/public_html/nycbicycleshop.com/tools/fpdf/font/helveticab.php:31) in /home/bicycler/public_html/nycbicycleshop.com/tools/fpdf/fpdf.php on line 1032 FPDF error: Some data has already been output, can't send PDF file After I exchanged the files helveticab.php and fpdf.php form working server to non working server still the same error also I try to open the store from different computer maybe cache problem still the same. Any Help? Edited January 10, 2013 by centralparkbikerent (see edit history) Link to comment Share on other sites More sharing options...
nycbicycleshop Posted January 10, 2013 Author Share Posted January 10, 2013 (edited) I solved the problem myself installing new FPDF package from the http://www.fpdf.org/ Before installing the package please open tools/fpdf/ directory on the root and copy everything inside this directory to your local hard drive, download the v1.7 zipfile from the link and copy inside the tools/fpdf/ directory and extract to zip folder to the same directory and DONE. Any questions let me know. Edited January 10, 2013 by centralparkbikerent (see edit history) 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