Elimes Posted August 5, 2014 Share Posted August 5, 2014 Hello, When I try to generate an invoice it is showing a blank page. After changing the file defines.inc (to true), the shop is showing an error: Fatal error: Undefined class constant 'TEMPLATE_INVOICE' in /home/olive/public_html/controllers/admin/AdminPdfController.php on line 180 I checked this line and this line looks like this: $this->generatePDF($order_invoice, PDF::TEMPLATE_INVOICE); Could any one help me resolve this error please? I have Prestashop 1.5.4.1 Thank you in advance! Link to comment Share on other sites More sharing options...
tuk66 Posted August 5, 2014 Share Posted August 5, 2014 Constant "TEMPLATE_INVOICE" is defined in PDF.php file so it looks like class loading problem. Or you are using the PDF.php file from an older version or patched in other way. Link to comment Share on other sites More sharing options...
Elimes Posted August 5, 2014 Author Share Posted August 5, 2014 I replaced the PDF.php file and is still not working. Maybe something with class loading? I noticed that something is taring load an invoice and after 2 seconds I can see a blank page. Link to comment Share on other sites More sharing options...
Recommended Posts