Jump to content

Credit slip pdf Undefined index error


Recommended Posts

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

  • 2 weeks later...

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

  • 3 months later...

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

×
×
  • Create New...