Print PDF error - Unable to get image:

Posted on May 23, 2012 by ext4mage There have been 0 comments

When trying to preview a template or pressing print on invoice, shipping or creditmemo only get error - Unable to get image:

Problem:
When pressing either preview or print of any of the PDF the pdf is not shown and one of the following kind of error text shows:
TCPDF ERROR: [Image] Unable to get image: /media/wysiwyg/xxx.jpg
Unable to get image: /var/html2pdf/cache/*

Solution
There can be a couple of different reason for this error - try going trough these solution

  • The compleate Magento application is protected by .htaccess
  • The folder /var/html2pdf do not have the right permissions, should be same as rest of /var/ folder (properly 755 or 777) - also subfolders shall have these permissions

You can also try deleting everything in the folder /var/html2pdf/cache/

Related product:
  HTML2PDF extension


This post was posted in FAQ and was tagged with html2pdf, invoice, magento, pdf