News:

Support the VirtueMart project and become a member

Main Menu

[SOLVED] TCPDF ERROR: Missing or incorrect image file in invoice generation

Started by guidocx842, September 20, 2013, 15:15:21 PM

Previous topic - Next topic

guidocx842

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!

Maxim Pishnyak

So without logo everything is fine.

BTW last version is 2.0.22d (check Dev Portal at the top of current page).
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

guidocx842

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!

jenkinhill

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....
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

guidocx842

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?

Milbo

The image must use URLS ! and I wonder, because usually it places automatically the media of the vendor in the upper left corner.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

guidocx842

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!  ;)