News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Solution for: TCPDF ERROR: [Image] Unable to get image

Started by lanthan, July 30, 2013, 21:50:17 PM

Previous topic - Next topic

lanthan

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.


lanthan

you are welcome ;-) one guy said thank you but more than 1600 times  my thread was read  ;-)

lliseil

Hi,
Same TCPDF Error when generating invoices from Virtuemart 2.6's backend:
TCPDF ERROR: [Image] Unable to get image: http://DOMAIN/images/stories/virtuemart/shipment/logo-colissimo.bmp
The 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

VirtueMart uses the TCPDF library from http://sourceforge.net/projects/tcpdf/   IIRC this version requires images to be .jpg or .png
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

arunverma1090

#5
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