markaussie Posted April 16, 2016 Share Posted April 16, 2016 Hi all, Anyone else experiencing 500 error when clicking to view PDF invoice or delivery slip after upgrade to 1.6.1.5 Nothing different shown when display errors set to on. Everything was fine before upgrade - previous version 1.6.1.4 Link to comment Share on other sites More sharing options...
markaussie Posted April 16, 2016 Author Share Posted April 16, 2016 (edited) Fixed Invoice 500 error below - My Bad Had Override for PDF HTMLTemplateInvoice.php in - override/classes/pdf/HTMLTemplateInvoice.php Updated override HTMLTemplateInvoice.php with new file version. Thanks for response eleazar Still have issue with Delivery slip viewing/creating causing 500 error Edited April 16, 2016 by markaussie (see edit history) Link to comment Share on other sites More sharing options...
markaussie Posted April 16, 2016 Author Share Posted April 16, 2016 (edited) Not the best work around but it works and stops the delivery slip Server 500 error for me on 1.6.1.5 Remove line 95 from below file - $this->pdf_renderer->createPagination($template->getPagination()); File- /classes/pdf/PDF.php Edited April 16, 2016 by markaussie (see edit history) 2 Link to comment Share on other sites More sharing options...
winky_1st Posted April 18, 2016 Share Posted April 18, 2016 Ty so much. It worked for me too. Link to comment Share on other sites More sharing options...
winky_1st Posted April 18, 2016 Share Posted April 18, 2016 Ty mdekker I have updated again and I can confirm that now pdf's generation is working like a charm. cheers! 1 Link to comment Share on other sites More sharing options...
jumpcom Posted May 30, 2016 Share Posted May 30, 2016 It worked for me too ! Thanks @mdekker. Link to comment Share on other sites More sharing options...
WEMS Posted June 8, 2016 Share Posted June 8, 2016 Well done ! Link to comment Share on other sites More sharing options...
lovemyseo Posted June 10, 2016 Share Posted June 10, 2016 Not the best work around but it works and stops the delivery slip Server 500 error for me on 1.6.1.5 Remove line 95 from below file - $this->pdf_renderer->createPagination($template->getPagination()); File- /classes/pdf/PDF.php Can you post the file because I cant find this in line 95? its needs to added or deleted? Link to comment Share on other sites More sharing options...
markaussie Posted June 10, 2016 Author Share Posted June 10, 2016 lovemyseo Open the file and do a search for $this->pdf_renderer->createPagination($template->getPagination()); and delete it if found. also check the file location is /classes/pdf/PDF.php and the override folder should not have a copy override/classes/pdf/PDF.php Make sure you are on PS 1.6.1.5 it is not in 1.6.1.4 There is a fix mentioned above but for some reason things seem to have stalled with 1.6.1.x and work is all on 1.7 - sad for us with production shops I stayed on 1.6.1.4 for now 1.6.1.5 didn't feel right. will try update again when I get time. Link to comment Share on other sites More sharing options...
bside2234 Posted June 14, 2016 Share Posted June 14, 2016 This turned out to be the best solution: https://github.com/PrestaShop/PrestaShop/pull/5411/files Pagination will have to be supported for every PDF type. Changing these two files worked for me. Thanks. Link to comment Share on other sites More sharing options...
markaussie Posted June 16, 2016 Author Share Posted June 16, 2016 1.6.1.6 released This issue is now fixed Thanks mdekker & firstred Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now