VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: kostianev on May 10, 2017, 15:25:26 PM

Title: Error while generating the PDF - TCPDF ERROR: [Image] Unable to get the size of
Post by: kostianev on May 10, 2017, 15:25:26 PM
Dear, I have problem, after upgrade the VirtueMart maybe.

When try to generate Invoice, I see this error:
TCPDF ERROR: [Image] Unable to get the size of the image: /images/stories/virtuemart/shipment/speedy.png

See demo: https://www.dropbox.com/s/gdyo51kmkecvihq/vm_pdf_error.MP4?dl=0

I checked, my HDD space is okay. Everything seem to be okay. :(
Title: Re: Error while generating the PDF - TCPDF ERROR: [Image] Unable to get the size of
Post by: jenkinhill on May 10, 2017, 15:54:49 PM
Have you tried using a jpg file for the image?
Title: Re: Error while generating the PDF - TCPDF ERROR: [Image] Unable to get the size of
Post by: kostianev on May 11, 2017, 08:24:46 AM
I tried to replace with .jpg, but in the order details is still loading .png file. So, when I try to generate the invoice, there is still the problem.
Title: Re: Error while generating the PDF - TCPDF ERROR: [Image] Unable to get the size of
Post by: jjk on May 11, 2017, 11:12:14 AM
You might find a solution in this long forum thread: https://forum.virtuemart.net/index.php?topic=128538.0
Title: Re: Error while generating the PDF - TCPDF ERROR: [Image] Unable to get the size of
Post by: psm on May 13, 2017, 00:01:10 AM
I do not know if it is best solution, but I had the same problem and I just changed tcpdf for later version 1.0.0 and it is running now for me.
Title: Re: Error while generating the PDF - TCPDF ERROR: [Image] Unable to get the size of
Post by: kostianev on May 13, 2017, 12:43:36 PM
Quote from: psm on May 13, 2017, 00:01:10 AM
I do not know if it is best solution, but I had the same problem and I just changed tcpdf for later version 1.0.0 and it is running now for me.

I tried long thread and nothing helped me.
Please, psm tell me how to change tcpdf for version 1.0.0?
Title: Re: Error while generating the PDF - TCPDF ERROR: [Image] Unable to get the size of
Post by: psm on May 13, 2017, 14:11:42 PM
Just need to download older version of virtuemart for example 3.0.18 full version also with aio and then extract it and install just tcpdf through extension manager. I hope it will help you.
Title: Re: Error while generating the PDF - TCPDF ERROR: [Image] Unable to get the size of
Post by: Milbo on May 15, 2017, 12:35:56 PM
Here you can download the seperate package http://dev.virtuemart.net/projects/tcpdf/files