Author Topic: [SOLVED] TCPDF ERROR: Missing or incorrect image file in invoice generation  (Read 5942 times)

guidocx842

  • Jr. Member
  • **
  • Posts: 74
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2660
Re: TCPDF ERROR: Missing or incorrect image file in invoice generation
« Reply #1 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).

guidocx842

  • Jr. Member
  • **
  • Posts: 74
Re: TCPDF ERROR: Missing or incorrect image file in invoice generation
« Reply #2 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!

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27898
  • Always on vacation
    • Jenkin Hill Internet
Re: TCPDF ERROR: Missing or incorrect image file in invoice generation
« Reply #3 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....
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.8.5 10338 on Joomla 3.9.22 PHP 7.4.9

guidocx842

  • Jr. Member
  • **
  • Posts: 74
Re: TCPDF ERROR: Missing or incorrect image file in invoice generation
« Reply #4 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?

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: TCPDF ERROR: Missing or incorrect image file in invoice generation
« Reply #5 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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

guidocx842

  • Jr. Member
  • **
  • Posts: 74
Re: TCPDF ERROR: Missing or incorrect image file in invoice generation
« Reply #6 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!  ;)