innocuous Posted December 5, 2012 Share Posted December 5, 2012 Hi, Customer does an RMA and in BO we can issue partial refund. If customer goes to view the pdf generated in "My Credit slips" they get following error message: Notice: Undefined index: 12.500 in F:\xampp\xampp\htdocs\prestashop\classes\pdf\HTMLTemplateOrderSlip.php on line 216 Notice: Undefined index: 12.500 in F:\xampp\xampp\htdocs\prestashop\classes\pdf\HTMLTemplateOrderSlip.php on line 217 Notice: Undefined index: 12.500 in F:\xampp\xampp\htdocs\prestashop\classes\pdf\HTMLTemplateOrderSlip.php on line 217 TCPDF ERROR: Some data has already been output, can't send PDF file This is in PS 1.5.2, default theme. Even in BO->orders->credit slips if admin clicks on generate PDF file, we get the same error as above. How can I solve this? Link to comment Share on other sites More sharing options...
innocuous Posted December 8, 2012 Author Share Posted December 8, 2012 Anyone?? Link to comment Share on other sites More sharing options...
robinsonsal Posted December 19, 2012 Share Posted December 19, 2012 Hiya innocuous, have solved this yet? It looks like you have error reporting turn on for your site, this is why you are getting the php notices display on the screen. To turn this off you just need to change display_errors in your config/config.inc.php file to off. This shouldn't really be switched on for live sites. Hope this helps Link to comment Share on other sites More sharing options...
innocuous Posted December 21, 2012 Author Share Posted December 21, 2012 Hi robinsonsal. Yes I know that but this error should not be present in the first place right? Turning off error reporting just doesn't inform us of the error. It doesn't solve it! Link to comment Share on other sites More sharing options...
a_smith Posted March 26, 2013 Share Posted March 26, 2013 hi, same issue here. Did you solved your problem? Thanks Link to comment Share on other sites More sharing options...
tuk66 Posted March 27, 2013 Share Posted March 27, 2013 Hi robinsonsal. Yes I know that but this error should not be present in the first place right? Turning off error reporting just doesn't inform us of the error. It doesn't solve it! Are you ready to solve all PrestaShop issues? I don't think so. Disabling notices will save your life. Link to comment Share on other sites More sharing options...
Recommended Posts