VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: guidocx842 on September 20, 2013, 15:15:21 PM

Title: [SOLVED] TCPDF ERROR: Missing or incorrect image file in invoice generation
Post by: guidocx842 on September 20, 2013, 15:15:21 PM
Hi everybody,
I search a lot in internet about this problem but I find only old solutions for old joomla and virtuemart.
I have Virtuemart 2.0.22b over Joomla 2.5.14 and, if I press "HERE" in Shop Invoice page of virtuemart backoffice to see the preview of my header and footer I receive a blank page with an error: TCPDF ERROR: Missing or incorrect image file
I use the absolute path and the name of the image is logo.jpg
I try many path but the problem remain... can somebody help me to solve this problem? I can't put image in my invoices!
Thank you so much!
Title: Re: TCPDF ERROR: Missing or incorrect image file in invoice generation
Post by: Maxim Pishnyak on September 21, 2013, 12:51:44 PM
So without logo everything is fine.

BTW last version is 2.0.22d (check Dev Portal at the top of current page).
Title: Re: TCPDF ERROR: Missing or incorrect image file in invoice generation
Post by: guidocx842 on September 21, 2013, 17:37:41 PM
Yes, withoud logo everything works ok... I try every path, every image name and every extensions that is possible to try...
I use 2.0.22b because I had to downgrade to this version from the 2.0.22c that have problems with multilanguage website.
I read that 2.0.22d is made to solve these problems but I also read on the forum that some people are still having issues with multilanguage so I remain with 2.0.22b by now because it works well... do you know if 2.0.22d expressly solves problems with invoice TCPDF ERROR? In that case I can try to switch to the new version into my test environment... I put the website online just yesterday... so now I can try some tests on development web server... thanks a lot!
Title: Re: TCPDF ERROR: Missing or incorrect image file in invoice generation
Post by: jenkinhill on September 21, 2013, 18:08:07 PM
See this solution - maybe worth checking: http://forum.virtuemart.net/index.php?topic=117596.msg397462#msg397462

2.0.22e should be released in the next couple of days. But nobody else has reported a TCPDF ERROR with 2.0.22c so there has been no specific fix....
Title: Re: TCPDF ERROR: Missing or incorrect image file in invoice generation
Post by: guidocx842 on September 21, 2013, 20:13:04 PM
Hi jenkinhill and thank you for your answer!  ;)
I supposed that problem could be the path so I disabled the TinyMce editor (that use relative link by default) and saved the invoice header with the absolute path to the image. I also try this path in a browser and I see the image... so it's a right link.
But also in this way, if I press the HERE link to see the preview, I have the TCPDF ERROR...
In my header I have a table with two columns and one row. On the left colon I try to put the ecommerce logo aligned to left. In the second column I inserted the information about the company aligned to right.
If I mantain the logo, it not works... 2.0.22e will contains the official solution?
Title: Re: TCPDF ERROR: Missing or incorrect image file in invoice generation
Post by: Milbo on September 22, 2013, 15:39:59 PM
The image must use URLS ! and I wonder, because usually it places automatically the media of the vendor in the upper left corner.
Title: Re: TCPDF ERROR: Missing or incorrect image file in invoice generation
Post by: guidocx842 on September 22, 2013, 16:06:30 PM
Hi Milbo!
Thank you so much for your answer. I try another time with the absolute url and now it works! I probably understand wich is the problem... I have multilanguage site. I disable TinyMCE so in the english side I put the absolute url but I forget to put it also in the italian site side... my browser recognize the italian language for the frontend so, when I press on "HERE" link to see the preview, it shows me the italian invoice, that has the problem of the relative url... sorry... thank you very much for your help!  ;)