Jump to content

Prestashop 1.6.1.5 error View PDF delivery slip - HTTP 500


Recommended Posts

Hello

After 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

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 95

I 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...