Author Topic: Solution for: TCPDF ERROR: [Image] Unable to get image  (Read 30461 times)

lanthan

  • Jr. Member
  • **
  • Posts: 99
  • VM 2.6.10, J2.5.27, PHP5.5
Solution for: TCPDF ERROR: [Image] Unable to get image
« on: July 30, 2013, 21:50:17 pm »
Hi,
as me and many people seem to have the TCPDF ERROR and can not produce .pdf invoices with images added under the invoices menu (shop -> invoices). I share my solution with you. This error could occur if you have your Joomla installation not in the root of your webserver and redirect to a subfolder. For e.g. www.website.com redirects on your webserver to www.website.com/joomla/...

Just type the complete (not redirected) link for your image you want to add in the head or footer (insert image).

www.website.com/images/stories/virtuemart/vendor/image.jpg and not only image/stories/virtuemart/vendor/image.jpg

You won´t see the image anymore in the head or footer (image can´t be found) but it works with your .pdf.

Hope this helps some of you.

jhoompk

  • Beginner
  • *
  • Posts: 31
Re: Solution for: TCPDF ERROR: [Image] Unable to get image
« Reply #1 on: November 07, 2013, 10:53:10 am »
Thnx Lanthan  :)

lanthan

  • Jr. Member
  • **
  • Posts: 99
  • VM 2.6.10, J2.5.27, PHP5.5
Re: Solution for: TCPDF ERROR: [Image] Unable to get image
« Reply #2 on: January 27, 2014, 11:49:49 am »
you are welcome ;-) one guy said thank you but more than 1600 times  my thread was read  ;-)

lliseil

  • Beginner
  • *
  • Posts: 34
  • Man is Web's future.
    • LLiseil Web services e-Commerce Virtuemart
  • VirtueMart Version: 2.0.26
Re: Solution for: TCPDF ERROR: [Image] Unable to get image
« Reply #3 on: April 29, 2014, 11:20:24 am »
Hi,
Same TCPDF Error when generating invoices from Virtuemart 2.6's backend:
Code: [Select]
TCPDF ERROR: [Image] Unable to get image: http://DOMAIN/images/stories/virtuemart/shipment/logo-colissimo.bmpThe appropriate images are located in 'shipment' folder.
The website is located at the server's root (no sub-folder)

Anyway thank you lanthan for sharing the tip. Also, sorry for my late follow-up with an updated VM's version :}
---
Joomla 2.5.19
Virtuemart 2.6.0
PHP 5.4.24 & MySQL 5.5.32
- A thread solved is a thread [SOLVED]! (a memo for myself)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27431
  • Always on vacation
    • Jenkin Hill Internet
Re: Solution for: TCPDF ERROR: [Image] Unable to get image
« Reply #4 on: April 29, 2014, 11:34:07 am »
VirtueMart uses the TCPDF library from http://sourceforge.net/projects/tcpdf/   IIRC this version requires images to be .jpg or .png
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.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8

arunverma1090

  • Beginner
  • *
  • Posts: 2
    • Free url submission
TCPDF ERROR: [Image] Unable to get image:
« Reply #5 on: November 04, 2014, 13:00:27 pm »
In my local machine it works fine but in live server get error:
TCPDF ERROR: [Image] Unable to get image: http://lwstudios.co.uk/images/stories/virtuemart/product/resized/pack4.jpg

Joomla version - 2.5.16
PHP Version - 5.3.28
Virtue Mart - 2.0.6