[Skip to main content](#vessel-content)

#   Cannot include images into invoice

##

- **[carniel](/forum/user/39404-carniel "View carniel's Profile")**
- [![carniel's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/crossing_kangaroo.png)](/forum/user/39404-carniel "View carniel's Profile") Topic Author
- [ Offline](/forum/user/39404-carniel)

Less More

- Posts: 27
- Thank you received: 1
-
-
-

10 years 9 months ago [\#229544](#229544) by [carniel](/forum/user/39404-carniel "View carniel's Profile")  *[Cannot include images into invoice](/forum/36-reports-statistics/882224-cannot-include-images-into-invoice#229544 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Safari 6.2.8 -- Error-message(debug-mod must be tuned on) -- : Ã— ERROR nÂ°6 File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php Line : 1326  Impossible to load the image   www.meintraining.at/images/logo.gif  I edited the file /hikashop/attachinvoice/attachinvoice/invoice.php to customize the invoice layout. All works fine, except when I try to include the logo image to the invoice.  Tried several ways:    and with format .png but keep getting above error.  I read through several forum entries and checked php setting  allow&#95;url&#95;fopen On  There must be a problem with tcpdf opening an image file, but don't know how to debug or solve. Pls advice on how to include logo image to the invoice.")* was created by *[carniel](/forum/user/39404-carniel "View carniel's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.3.10
-- Browser(s) name and version -- : Safari 6.2.8
-- Error-message(debug-mod must be tuned on) -- : Ã—
ERROR nÂ°6
File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php
Line : 1326

Impossible to load the image [ www.meintraining.at/images/logo.gif](http://www.meintraining.at/images/logo.gif)

I edited the file /hikashop/attachinvoice/attachinvoice/invoice.php to customize the invoice layout.
All works fine, except when I try to include the logo image to the invoice.

Tried several ways:

&lt;img src="/var/www/clients/client65/web100/web/images/logo.gif"/&gt;
&lt;img src="[ www.meintraining.at/images/logo.gif"/](http://www.meintraining.at/images/logo.gif%22/)&gt;
and with format .png but keep getting above error.

I read through several forum entries and checked php setting

allow_url_fopen On

There must be a problem with tcpdf opening an image file, but don't know how to debug or solve.
Pls advice on how to include logo image to the invoice.

---

There are no kangaroos in Austria! ![;-)](/media/kunena/emoticons/24.png ";-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODIyMjQtY2Fubm90LWluY2x1ZGUtaW1hZ2VzLWludG8taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 9 months ago -  10 years 9 months ago [\#229573](#229573) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Cannot include images into invoice](/forum/36-reports-statistics/882224-cannot-include-images-into-invoice#229573 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Safari 6.2.8 -- Error-message(debug-mod must be tuned on) -- : Ã— ERROR nÂ°6 File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php Line : 1326  Impossible to load the image   www.meintraining.at/images/logo.gif  I edited the file /hikashop/attachinvoice/attachinvoice/invoice.php to customize the invoice layout. All works fine, except when I try to include the logo image to the invoice.  Tried several ways:    and with format .png but keep getting above error.  I read through several forum entries and checked php setting  allow&#95;url&#95;fopen On  There must be a problem with tcpdf opening an image file, but don't know how to debug or solve. Pls advice on how to include logo image to the invoice.")*

hello,

Just a check :
- Did you change your **php.ini** ?
=&gt; You must turned "**ON**" the "**allow\_url\_fopen**" if you use **URL** to add an image.

Maybe if you have already done this, that will be more easy to have a look on your code, and to process some tests.
Hope this will help, keep in touch.

Regards,

Last edit: 10 years 9 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODIyMjQtY2Fubm90LWluY2x1ZGUtaW1hZ2VzLWludG8taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[carniel](/forum/user/39404-carniel "View carniel's Profile")**
- [![carniel's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/crossing_kangaroo.png)](/forum/user/39404-carniel "View carniel's Profile") Topic Author
- [ Offline](/forum/user/39404-carniel)

Less More

- Posts: 27
- Thank you received: 1
-
-
-

10 years 9 months ago [\#229784](#229784) by [carniel](/forum/user/39404-carniel "View carniel's Profile")  Replied by *[carniel](/forum/user/39404-carniel "View carniel's Profile")* on topic *[Cannot include images into invoice](/forum/36-reports-statistics/882224-cannot-include-images-into-invoice#229784 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Safari 6.2.8 -- Error-message(debug-mod must be tuned on) -- : Ã— ERROR nÂ°6 File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php Line : 1326  Impossible to load the image   www.meintraining.at/images/logo.gif  I edited the file /hikashop/attachinvoice/attachinvoice/invoice.php to customize the invoice layout. All works fine, except when I try to include the logo image to the invoice.  Tried several ways:    and with format .png but keep getting above error.  I read through several forum entries and checked php setting  allow&#95;url&#95;fopen On  There must be a problem with tcpdf opening an image file, but don't know how to debug or solve. Pls advice on how to include logo image to the invoice.")*

Hello,

it is turned on. I checked again with phpinfo (see image)
[ ![Snap&#95;2016-02-12&#95;at&#95;10&#95;36&#95;43.png](/forum/attachment/29499) ](/forum/attachment/29499 "...t&#95;10&#95;36&#95;43.png")

allow_url_fopen On

the code where the image is included is just like this:

&lt;table class="header"&gt;
&lt;tr&gt;
&lt;td colspan="1"&gt;&lt;img src="[ www.meintraining.at/images/logo.gif"/](http://www.meintraining.at/images/logo.gif%22/)&gt;
&lt;/td&gt;
&lt;td colspan="5"&gt;
&lt;div class="storeaddress"&gt;
&lt;?php
$store = str_replace(array("\r\n","\n","\r"),array('&lt;br/&gt;','&lt;br/&gt;','&lt;br/&gt;'),$config-&gt;get('store_address',''));
if(JText::_($store)!=$store){
$store = JText::_($store);
}
echo $store;
?&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

What else can I test, has this worked ever in an invoice?

---

There are no kangaroos in Austria! ![;-)](/media/kunena/emoticons/24.png ";-)")

- [ ![Snap&#95;2016-02-12&#95;at&#95;10&#95;36&#95;43.png](/forum/attachment/29499) ](/forum/attachment/29499 "...t&#95;10&#95;36&#95;43.png") [ ](/forum/attachment/29499?download=1 "...t&#95;10&#95;36&#95;43.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODIyMjQtY2Fubm90LWluY2x1ZGUtaW1hZ2VzLWludG8taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

10 years 9 months ago [\#229792](#229792) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cannot include images into invoice](/forum/36-reports-statistics/882224-cannot-include-images-into-invoice#229792 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Safari 6.2.8 -- Error-message(debug-mod must be tuned on) -- : Ã— ERROR nÂ°6 File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php Line : 1326  Impossible to load the image   www.meintraining.at/images/logo.gif  I edited the file /hikashop/attachinvoice/attachinvoice/invoice.php to customize the invoice layout. All works fine, except when I try to include the logo image to the invoice.  Tried several ways:    and with format .png but keep getting above error.  I read through several forum entries and checked php setting  allow&#95;url&#95;fopen On  There must be a problem with tcpdf opening an image file, but don't know how to debug or solve. Pls advice on how to include logo image to the invoice.")*

Hi,

Yes, it works on most servers. But it seems that on some servers the tcpdf we use to conver the HTML of the invoice into a PDF is not able to get the images because of the way the server is configured.

Can you confirm with your hosting company that your server is able to send requests to third party servers ? Sometimes hosting companies block that to prevent abuses of their servers for spam.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODIyMjQtY2Fubm90LWluY2x1ZGUtaW1hZ2VzLWludG8taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[carniel](/forum/user/39404-carniel "View carniel's Profile")**
- [![carniel's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/crossing_kangaroo.png)](/forum/user/39404-carniel "View carniel's Profile") Topic Author
- [ Offline](/forum/user/39404-carniel)

Less More

- Posts: 27
- Thank you received: 1
-
-
-

10 years 8 months ago [\#230954](#230954) by [carniel](/forum/user/39404-carniel "View carniel's Profile")  Replied by *[carniel](/forum/user/39404-carniel "View carniel's Profile")* on topic *[Cannot include images into invoice](/forum/36-reports-statistics/882224-cannot-include-images-into-invoice#230954 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Safari 6.2.8 -- Error-message(debug-mod must be tuned on) -- : Ã— ERROR nÂ°6 File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php Line : 1326  Impossible to load the image   www.meintraining.at/images/logo.gif  I edited the file /hikashop/attachinvoice/attachinvoice/invoice.php to customize the invoice layout. All works fine, except when I try to include the logo image to the invoice.  Tried several ways:    and with format .png but keep getting above error.  I read through several forum entries and checked php setting  allow&#95;url&#95;fopen On  There must be a problem with tcpdf opening an image file, but don't know how to debug or solve. Pls advice on how to include logo image to the invoice.")*

Hello,

I'm not sure what to check with the hosting provider precisely..

The allow_url_fopen=on (according to phpinfo)
I even tried to install the latest tcpdf version (6.2.12) and use this, but also not working.

Any more hint what I could check ? Why is there a request to third party server anyway? Can't the image be loaded locally?

---

There are no kangaroos in Austria! ![;-)](/media/kunena/emoticons/24.png ";-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODIyMjQtY2Fubm90LWluY2x1ZGUtaW1hZ2VzLWludG8taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

10 years 8 months ago [\#231033](#231033) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cannot include images into invoice](/forum/36-reports-statistics/882224-cannot-include-images-into-invoice#231033 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Safari 6.2.8 -- Error-message(debug-mod must be tuned on) -- : Ã— ERROR nÂ°6 File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php Line : 1326  Impossible to load the image   www.meintraining.at/images/logo.gif  I edited the file /hikashop/attachinvoice/attachinvoice/invoice.php to customize the invoice layout. All works fine, except when I try to include the logo image to the invoice.  Tried several ways:    and with format .png but keep getting above error.  I read through several forum entries and checked php setting  allow&#95;url&#95;fopen On  There must be a problem with tcpdf opening an image file, but don't know how to debug or solve. Pls advice on how to include logo image to the invoice.")*

Hi,

If you enter a URL for the image, the plugin has to load the image through a request to the domain name of that URL. So it requires connection to the outside (even though it goes back on the same server).
If you enter a local path of the image it should be able to load it directly from the folder without that.
So you can try that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODIyMjQtY2Fubm90LWluY2x1ZGUtaW1hZ2VzLWludG8taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[carniel](/forum/user/39404-carniel "View carniel's Profile")**
- [![carniel's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/crossing_kangaroo.png)](/forum/user/39404-carniel "View carniel's Profile") Topic Author
- [ Offline](/forum/user/39404-carniel)

Less More

- Posts: 27
- Thank you received: 1
-
-
-

10 years 8 months ago [\#231213](#231213) by [carniel](/forum/user/39404-carniel "View carniel's Profile")  Replied by *[carniel](/forum/user/39404-carniel "View carniel's Profile")* on topic *[Cannot include images into invoice](/forum/36-reports-statistics/882224-cannot-include-images-into-invoice#231213 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Safari 6.2.8 -- Error-message(debug-mod must be tuned on) -- : Ã— ERROR nÂ°6 File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php Line : 1326  Impossible to load the image   www.meintraining.at/images/logo.gif  I edited the file /hikashop/attachinvoice/attachinvoice/invoice.php to customize the invoice layout. All works fine, except when I try to include the logo image to the invoice.  Tried several ways:    and with format .png but keep getting above error.  I read through several forum entries and checked php setting  allow&#95;url&#95;fopen On  There must be a problem with tcpdf opening an image file, but don't know how to debug or solve. Pls advice on how to include logo image to the invoice.")*

Hello
I tried with a local image path, like this:

img src="/web/plugins/hikashop/attachinvoice/attachinvoice/_tcpdf_5.0.002/images/logo.png"
-&gt;
File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php
Line : 1328
Impossible to load the image [ meintraining.at/web/plugins/hikashop/att....002/images/logo.png](http://meintraining.at/web/plugins/hikashop/attachinvoice/attachinvoice/_tcpdf_5.0.002/images/logo.png)

OR
&lt;td colspan="1"&gt;&lt;img src="logo.png"/&gt;
-&gt;
File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php
Line : 1328
Impossible to load the image [ meintraining.at/logo.png](http://meintraining.at/logo.png)

It seems it's converted to a http ref in any case!
How to load a local image here ?

I'm not so good at php but from tcpdf.php I read that the domain is added to image URL in every case?!

$imglink = '';
if (isset($this-&gt;HREF) AND !$this-&gt;empty_string($this-&gt;HREF)) {
$imglink = $this-&gt;HREF;
if ($imglink{0} == '#') {
// convert url to internal link
$page = intval(substr($imglink, 1));
$imglink = $this-&gt;AddLink();
$this-&gt;SetLink($imglink, 0, $page);
}
}

Any more hints what I could try? Thank you.

---

There are no kangaroos in Austria! ![;-)](/media/kunena/emoticons/24.png ";-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODIyMjQtY2Fubm90LWluY2x1ZGUtaW1hZ2VzLWludG8taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

10 years 8 months ago [\#231220](#231220) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cannot include images into invoice](/forum/36-reports-statistics/882224-cannot-include-images-into-invoice#231220 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Safari 6.2.8 -- Error-message(debug-mod must be tuned on) -- : Ã— ERROR nÂ°6 File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php Line : 1326  Impossible to load the image   www.meintraining.at/images/logo.gif  I edited the file /hikashop/attachinvoice/attachinvoice/invoice.php to customize the invoice layout. All works fine, except when I try to include the logo image to the invoice.  Tried several ways:    and with format .png but keep getting above error.  I read through several forum entries and checked php setting  allow&#95;url&#95;fopen On  There must be a problem with tcpdf opening an image file, but don't know how to debug or solve. Pls advice on how to include logo image to the invoice.")*

Hi,

Well, I don't have any other idea.
Normally, the image tags work automatically with the PDF invoice system without doing anything. So I can't think of anything else than something on the server which prevents the tcpdf library to load the image.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODIyMjQtY2Fubm90LWluY2x1ZGUtaW1hZ2VzLWludG8taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nuntius](/forum/user/29512-nuntius "View nuntius's Profile")**
- [![nuntius's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar29512.jpg)](/forum/user/29512-nuntius "View nuntius's Profile")
- [ Offline](/forum/user/29512-nuntius)
- nuntius.nl

Less More

- Posts: 62
- Thank you received: 1
-
-
-
-

10 years 7 months ago [\#236512](#236512) by [nuntius](/forum/user/29512-nuntius "View nuntius's Profile")  Replied by *[nuntius](/forum/user/29512-nuntius "View nuntius's Profile")* on topic *[Cannot include images into invoice](/forum/36-reports-statistics/882224-cannot-include-images-into-invoice#236512 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Safari 6.2.8 -- Error-message(debug-mod must be tuned on) -- : Ã— ERROR nÂ°6 File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php Line : 1326  Impossible to load the image   www.meintraining.at/images/logo.gif  I edited the file /hikashop/attachinvoice/attachinvoice/invoice.php to customize the invoice layout. All works fine, except when I try to include the logo image to the invoice.  Tried several ways:    and with format .png but keep getting above error.  I read through several forum entries and checked php setting  allow&#95;url&#95;fopen On  There must be a problem with tcpdf opening an image file, but don't know how to debug or solve. Pls advice on how to include logo image to the invoice.")*

Carniel, did you try to use the full URL? Make sure you use a full url like:
[ domain.tld/images/logo.png](https://domain.tld/images/logo.png) instead of logo.png or /images/logo.png (http:// or https:// depending if your shop has a SSL certificate)

That did the trick for me.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODIyMjQtY2Fubm90LWluY2x1ZGUtaW1hZ2VzLWludG8taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")**
- [![CarlosC's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6899-carlosc "View CarlosC's Profile")
- [ Offline](/forum/user/6899-carlosc)

Less More

- Posts: 23
- Thank you received: 0
-
-

9 years 11 months ago [\#256308](#256308) by [CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")  Replied by *[CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")* on topic *[Cannot include images into invoice](/forum/36-reports-statistics/882224-cannot-include-images-into-invoice#256308 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Safari 6.2.8 -- Error-message(debug-mod must be tuned on) -- : Ã— ERROR nÂ°6 File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php Line : 1326  Impossible to load the image   www.meintraining.at/images/logo.gif  I edited the file /hikashop/attachinvoice/attachinvoice/invoice.php to customize the invoice layout. All works fine, except when I try to include the logo image to the invoice.  Tried several ways:    and with format .png but keep getting above error.  I read through several forum entries and checked php setting  allow&#95;url&#95;fopen On  There must be a problem with tcpdf opening an image file, but don't know how to debug or solve. Pls advice on how to include logo image to the invoice.")*

I have the same problem. Is there enyone who has solved this problem.??

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODIyMjQtY2Fubm90LWluY2x1ZGUtaW1hZ2VzLWludG8taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nuntius](/forum/user/29512-nuntius "View nuntius's Profile")**
- [![nuntius's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar29512.jpg)](/forum/user/29512-nuntius "View nuntius's Profile")
- [ Offline](/forum/user/29512-nuntius)
- nuntius.nl

Less More

- Posts: 62
- Thank you received: 1
-
-
-
-

9 years 11 months ago [\#256311](#256311) by [nuntius](/forum/user/29512-nuntius "View nuntius's Profile")  Replied by *[nuntius](/forum/user/29512-nuntius "View nuntius's Profile")* on topic *[Cannot include images into invoice](/forum/36-reports-statistics/882224-cannot-include-images-into-invoice#256311 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Safari 6.2.8 -- Error-message(debug-mod must be tuned on) -- : Ã— ERROR nÂ°6 File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php Line : 1326  Impossible to load the image   www.meintraining.at/images/logo.gif  I edited the file /hikashop/attachinvoice/attachinvoice/invoice.php to customize the invoice layout. All works fine, except when I try to include the logo image to the invoice.  Tried several ways:    and with format .png but keep getting above error.  I read through several forum entries and checked php setting  allow&#95;url&#95;fopen On  There must be a problem with tcpdf opening an image file, but don't know how to debug or solve. Pls advice on how to include logo image to the invoice.")*

I solved it by using full URL's in the template instead of relative URL's.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODIyMjQtY2Fubm90LWluY2x1ZGUtaW1hZ2VzLWludG8taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

9 years 11 months ago [\#256310](#256310) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cannot include images into invoice](/forum/36-reports-statistics/882224-cannot-include-images-into-invoice#256310 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Safari 6.2.8 -- Error-message(debug-mod must be tuned on) -- : Ã— ERROR nÂ°6 File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php Line : 1326  Impossible to load the image   www.meintraining.at/images/logo.gif  I edited the file /hikashop/attachinvoice/attachinvoice/invoice.php to customize the invoice layout. All works fine, except when I try to include the logo image to the invoice.  Tried several ways:    and with format .png but keep getting above error.  I read through several forum entries and checked php setting  allow&#95;url&#95;fopen On  There must be a problem with tcpdf opening an image file, but don't know how to debug or solve. Pls advice on how to include logo image to the invoice.")*

Hi,

Well, the issue is that basically, that error says that the image can't be retrieved and included in the PDF.
So either the path you entered is wrong (because it's not the good folder, it's relative to the wrong folder, etc), or the image format is invalid, or the PHP cannot download files or doesn't have access to the folder where the image is stored, etc.
So there are many ways to solve the problem and each person having that problem will likely have it because of a different reason.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODIyMjQtY2Fubm90LWluY2x1ZGUtaW1hZ2VzLWludG8taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")**
- [![CarlosC's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6899-carlosc "View CarlosC's Profile")
- [ Offline](/forum/user/6899-carlosc)

Less More

- Posts: 23
- Thank you received: 0
-
-

9 years 11 months ago [\#256423](#256423) by [CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")  Replied by *[CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")* on topic *[Cannot include images into invoice](/forum/36-reports-statistics/882224-cannot-include-images-into-invoice#256423 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Safari 6.2.8 -- Error-message(debug-mod must be tuned on) -- : Ã— ERROR nÂ°6 File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php Line : 1326  Impossible to load the image   www.meintraining.at/images/logo.gif  I edited the file /hikashop/attachinvoice/attachinvoice/invoice.php to customize the invoice layout. All works fine, except when I try to include the logo image to the invoice.  Tried several ways:    and with format .png but keep getting above error.  I read through several forum entries and checked php setting  allow&#95;url&#95;fopen On  There must be a problem with tcpdf opening an image file, but don't know how to debug or solve. Pls advice on how to include logo image to the invoice.")*

All the things above I have checked. allow_url_fopen = on. directory I have tryed everything also with http://, https://, /var..... etc.
But is it possible that the used html2pdf in version 4.0.3, is to old to work with php7. The new version with adaptions to php 7 is html2pdf 4.5.1?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODIyMjQtY2Fubm90LWluY2x1ZGUtaW1hZ2VzLWludG8taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

9 years 11 months ago [\#256431](#256431) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cannot include images into invoice](/forum/36-reports-statistics/882224-cannot-include-images-into-invoice#256431 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Safari 6.2.8 -- Error-message(debug-mod must be tuned on) -- : Ã— ERROR nÂ°6 File : /var/www/clients/client65/web100/web/plugins/hikashop/attachinvoice/attachinvoice/html2pdf.class.php Line : 1326  Impossible to load the image   www.meintraining.at/images/logo.gif  I edited the file /hikashop/attachinvoice/attachinvoice/invoice.php to customize the invoice layout. All works fine, except when I try to include the logo image to the invoice.  Tried several ways:    and with format .png but keep getting above error.  I read through several forum entries and checked php setting  allow&#95;url&#95;fopen On  There must be a problem with tcpdf opening an image file, but don't know how to debug or solve. Pls advice on how to include logo image to the invoice.")*

Hi,

If it would be too old to work with PHP7, then you wouldn't be able to get PDF files at all for your invoices.
The changelog for HTML2PDF is here: [ raw.githubusercontent.com/spipu/html2pdf/master/\_changelog.txt](https://raw.githubusercontent.com/spipu/html2pdf/master/_changelog.txt)
And it doesn't mention anything regarding PHP7 support since the 4.0.3 or anything regarding improvments on images support.
So if you have a problem with image display, all I can think of is a server restriction of some sort.

The following user(s) said Thank You: [CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODIyMjQtY2Fubm90LWluY2x1ZGUtaW1hZ2VzLWludG8taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.129 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
