• I have been using this plugin for years with no problem and since recently, I get errors when trying to download invoices if I use a logo, which I have been doing for years.

    The error is this:

    Exception: unable to open image ‘file:///…’: No such file or directory @ error/blob.c/OpenBlob/3569

    But the path is fine and the image exists. In fact it previews fine when you choose it from the media library.

    What could be happening?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor kluver

    (@kluver)

    Hi @carazo,

    I’m sorry to hear you are experiencing this issue. In our latest release we’ve updated the PDF library we use to convert HTML to PDF (called DomPDF) to the latest version. It seems that doing this creates issues on some setups when loading PNG files. We suspect it has something to do with the ImageMagick version the server is running.

    The developers of DomPDF are also helping us troubleshoot this issue, so hopefully we can find the culprit soon. In the mean time we’ve released a beta version of the plugin that has a temporary workaround. Could you redirect your question to [email protected] so we can provide you with this beta version and some additional instructions? Thank you in advance!

    Thread Starter Javier Carazo

    (@carazo)

    @kluver,

    If I use another format instead PNG it will work?

    Plugin Contributor alexmigf

    (@alexmigf)

    Plugin Contributor kluver

    (@kluver)

    Yes, you can for instance use JPEG. But beware that this will only solve your problem for new invoices. We follow GAAP (Generally Accepted Accounting Principles) which states an invoice should be immutable after issuing. Therefore we store data from the invoice in the order meta. This data is then used to generate the PDF file whenever the invoice is requested again.

    One of the things that is stored, is the path to the logo image that was set when the invoice was created for the first time. So if you switch the logo on your invoice to a JPEG file, the already generated invoices will still point to the PNG file.

    However you can regenerate invoices with the latest settings if you wish. More information on how to do that can be found here: https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/show-pdf-documents-with-the-latest-settings/

    Thread Starter Javier Carazo

    (@carazo)

    I used Webp to solve the issue and I activated the compatibility setting to make sure it will work with the latest settings.

    Problem solved in this way.

    Thanks for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.