Derivo Posted November 30, 2012 Share Posted November 30, 2012 Lots of Postings regarding this issue and no real answer? Anybody there with a solution? Thank you Prestashop 1.5.2 Link to comment Share on other sites More sharing options...
guest* Posted December 1, 2012 Share Posted December 1, 2012 Please avoid double post. Your question is been in work here: http://www.prestashop.com/forums/topic/207905-tcpdf-error-bei-rechnungen-ansehen/ 1 Link to comment Share on other sites More sharing options...
minic studio Posted December 5, 2012 Share Posted December 5, 2012 Please avoid double post. Your question is been in work here: http://www.prestasho...nungen-ansehen/ You are right, but what if i dont understand German? 1 Link to comment Share on other sites More sharing options...
tuk66 Posted December 5, 2012 Share Posted December 5, 2012 This is not an issue but a multi-issue. There are hundreds of possible cases to get this error. Be more specific. Link to comment Share on other sites More sharing options...
Anat Kitithamrong Posted December 28, 2012 Share Posted December 28, 2012 I've got this problem yesterday. In my website with 2 language translation. But in my case this error gone after I've change template to older one or default. (I'm trying to translate PDF invoice to my language) I'm very curious about this and start to compare the old template and my newer template until I found that the problem came from a folder "pdf" in my theme. then I delete these folder: /shop/themes/themename/pdf /shop/themes/themename/pdf/lang Link to comment Share on other sites More sharing options...
wicem Posted January 24, 2013 Share Posted January 24, 2013 Hello For those who will need it I had the same problem with PS1.5.2 the solution is to add ob_clean(); in the render function in \classes\pdf\PDFGenerator.php on line 129 public function render($filename, $display = true) { if (empty($filename)) throw new PrestaShopException('Missing filename.'); $this->lastPage(); $output = $display ? 'I' : 'S'; ob_clean(); return $this->output($filename, $output); } SEEu 4 Link to comment Share on other sites More sharing options...
mello Posted March 30, 2013 Share Posted March 30, 2013 Thank you, solution works too on Prestashop 1.5.3.1. Link to comment Share on other sites More sharing options...
deepakthakare Posted July 19, 2013 Share Posted July 19, 2013 Thank you, solution works For me Link to comment Share on other sites More sharing options...
e-cigarette Posted September 19, 2013 Share Posted September 19, 2013 Thank you but i have this problem after update 1.5.5 and it doesn't work Link to comment Share on other sites More sharing options...
Steven-Hague Posted September 22, 2013 Share Posted September 22, 2013 Even with the default theme I still get this, none of this worked. Link to comment Share on other sites More sharing options...
tuk66 Posted September 27, 2013 Share Posted September 27, 2013 Enable development mode to see the error. Link to comment Share on other sites More sharing options...
Steven-Hague Posted September 27, 2013 Share Posted September 27, 2013 The problem happens when I try to view an Invoice of an Order.It generates these errors: Strict Standards: Declaration of Tools::displayDate() should be compatible with that of ToolsCore::displayDate() in /home/carringt/public_html/flowershop/override/classes/tools.php on line 24 Notice: Use of undefined constant _RIJNDAEL_KEY_ - assumed '_RIJNDAEL_KEY_' in /home/carringt/public_html/flowershop/classes/Cookie.php on line 80 Notice: Use of undefined constant _RIJNDAEL_IV_ - assumed '_RIJNDAEL_IV_' in /home/carringt/public_html/flowershop/classes/Cookie.php on line 80 Warning: Missing argument 2 for Tools::displayDate(), called in /home/carringt/public_html/flowershop/classes/pdf/HTMLTemplateInvoice.php on line 42 and defined in /home/carringt/public_html/flowershop/override/classes/tools.php on line 9 Notice: ob_clean() [ref.outcontrol]: failed to delete buffer. No buffer to delete. in /home/carringt/public_html/flowershop/classes/pdf/PDFGenerator.php on line 173 Warning: Cannot modify header information - headers already sent by (output started at /home/carringt/public_html/flowershop/override/classes/tools.php:24) in /home/carringt/public_html/flowershop/tools/tcpdf/tcpdf.php on line 8961 TCPDF ERROR: Some data has already been output to browser, can't send PDF file All I can do is look in the files I don't know how to fix them. Link to comment Share on other sites More sharing options...
tuk66 Posted September 28, 2013 Share Posted September 28, 2013 Just turn off notices, warnings and strict notices in php.ini - error_reporting parameter. Link to comment Share on other sites More sharing options...
H4818 Posted June 17, 2014 Share Posted June 17, 2014 This error is caused because there is a line in your code that is generating a PHP Notice or warning which is being output as the response. TCPDF cannot continue because there is already a response. You need to fix the errors in your code and get rid of the warnings & notices. Or if you just want to hide them, as tuk66 mentioned, that should work too. Link to comment Share on other sites More sharing options...
drascic Posted December 19, 2014 Share Posted December 19, 2014 Thank you "wicem". Your solution works perfectly on version 1.5.3.1. Alfred Link to comment Share on other sites More sharing options...
GrandeLupo Posted March 3, 2015 Share Posted March 3, 2015 io ho lo stesso problema: TCPDF ERROR: Some data has already been output, can't send PDF file Fino ad oggi ha funzionato correttamente adesso non più. Il modulo installato si chiamata Modulo Product to PDF Simple il modulo l'ho acquistato su http://addons.prestashop.com e il suo sviluppatore è: invertus Io uso la versione di prestashop 1.5.4.1 Qualcuno mi sa dire cosa è successo e come rimediare? Grazie. Link to comment Share on other sites More sharing options...
tuk66 Posted March 4, 2015 Share Posted March 4, 2015 You should contact the developer. Si consiglia di contattare lo sviluppatore. Link to comment Share on other sites More sharing options...
Recommended Posts