sassbar Posted May 10, 2016 Share Posted May 10, 2016 HelloAfter Upgrading PrestaShop from 1.6.1.4 to 1.6.1.5 I got problem with generating pdf files for delivery slips. When try to generate PDF delivery slip using Firefox 46.0.1 it only show a blank white screen. Using IE 11 show a blank white screen and error HTTP 500. But for invoices generate PDF's correct. In the previous version (1.6.1.4) all was fine worked (wasn't this problem).Please help. Link to comment Share on other sites More sharing options...
sassbar Posted May 11, 2016 Author Share Posted May 11, 2016 Hello I has remembered that I can get more information when I switch Prestashop to debug mode.In the debog mode I got following error string:MyHost/classes/pdf/PDF.php on line 95I has compared previous and new original PDF.php files near line 95 and has found difference:New (bad - not work)$template->assignHookData($object);$this->pdf_renderer->createHeader($template->getHeader());$this->pdf_renderer->createFooter($template->getFooter());$this->pdf_renderer->createPagination($template->getPagination()); // it's a line 95$this->pdf_renderer->createContent($template->getContent());$this->pdf_renderer->writePage();$render = true;Wrong string (line 95) is: $this->pdf_renderer->createPagination($template->getPagination());Old (good - it's work)$template->assignHookData($object);$this->pdf_renderer->createHeader($template->getHeader());$this->pdf_renderer->createFooter($template->getFooter());$this->pdf_renderer->createContent($template->getContent());$this->pdf_renderer->writePage();$render = true;Old seems like new, but without 'wrong string'. I has commented it in the my new file and I can now to generate Delivery PDF files.Why this string ($this->pdf_renderer->createPagination($template->getPagination()); ) was add in the new PDF.php file?Maybe it neccessary?Please let to know.Thank you. Link to comment Share on other sites More sharing options...
tuk66 Posted May 13, 2016 Share Posted May 13, 2016 Know bug. Here is the solutions: https://www.prestashop.com/forums/topic/520954-500-errors-viewing-pdf-invoice-and-delivery-slips-after-update-to-1615/?do=findComment&comment=2304878 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