kayol10 Posted December 26, 2014 Share Posted December 26, 2014 I have just upgraded to Prestashop 1.6.0.9 and I get this message when trying to generate the pdf invoice in the back office: TCPDF ERROR: Some data has already been output to browser, can't send PDF file I have seen some related posts in 1.5 but none of the solutions provided there worked for me. Has anyone else came across this? Thanks everyone! Link to comment Share on other sites More sharing options...
tuk66 Posted December 28, 2014 Share Posted December 28, 2014 It means you get an error when creating the invoice. Enable Debug mode to see the genuine error, not TCPDF one. Link to comment Share on other sites More sharing options...
kayol10 Posted December 28, 2014 Author Share Posted December 28, 2014 Thanks fro the reply, I looked up a post on how to enable debug changed from false to true in defines.inc.php - (link) but I probably didn`t get the right details from the website: Warning: Cannot modify header information - headers already sent by (output started at /home/cosme291/public_html/config/defines.inc.php:1) in /home/cosme291/public_html/classes/Tools.php on line 143 Thanks again! Link to comment Share on other sites More sharing options...
kayol10 Posted December 28, 2014 Author Share Posted December 28, 2014 Tried every possible approach that other forum members mentioned, but nothing seemed to have worked for me. Anyone got other ideas? Much appreciated Link to comment Share on other sites More sharing options...
tuk66 Posted December 29, 2014 Share Posted December 29, 2014 What is on the line 143 in Tools.php? Link to comment Share on other sites More sharing options...
kayol10 Posted December 29, 2014 Author Share Posted December 29, 2014 This is what is shown in Tools.php on line 143 (red colored text) /** * Redirect user to another admin page * * @param string $url Desired URL */ public static function redirectAdmin($url) { header('Location: '.$url); exit; } Link to comment Share on other sites More sharing options...
Recommended Posts