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

#   Implement an image in invoice.php doesn't work

##

- **[Mapache64](/forum/user/35916-mapache64 "View Mapache64's Profile")**
- [![Mapache64's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35916-mapache64 "View Mapache64's Profile") Topic Author
- [ Offline](/forum/user/35916-mapache64)

Less More

- Posts: 16
- Thank you received: 2
-
-

4 years 9 months ago [\#339595](#339595) by [Mapache64](/forum/user/35916-mapache64 "View Mapache64's Profile")  *[Implement an image in invoice.php doesn't work](/forum/35-orders-management/904008-implement-an-image-in-invoice-php-doesnt-work#339595 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 3.10.6 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : every browser -- Error-message(debug-mod must be tuned on) -- : Unable to get the size of the image &#91;  www.schafstour.de/plugins/hikashop/attac.../logo-schafstour.jpg &#93;  Hi,  i want to implement a logo in the PDF Invoice (work with the plugin attachinvoice). Therefore I added the img-html-Code in the invoice.php but the the system get out the error: Unable to get the size of the image &#91;  www.schafstour.de/plugins/hikashop/attac.../logo-schafstour.jpg &#93;  So I tried different kinds of implementation, only , or per echo and also by function $logo, but no way ist working, always the same error. I change the image form jpeg to png and added the width and height also, noop!  So, do you have any idea, why it is not working or have a good explanation how to add the logo?  thanks, Mapache")* was created by *[Mapache64](/forum/user/35916-mapache64 "View Mapache64's Profile")*

-- HikaShop version -- : 4.5.0
-- Joomla version -- : 3.10.6
-- PHP version -- : 7.4.3
-- Browser(s) name and version -- : every browser
-- Error-message(debug-mod must be tuned on) -- : Unable to get the size of the image [[ www.schafstour.de/plugins/hikashop/attac.../logo-schafstour.jpg](https://www.schafstour.de/plugins/hikashop/attachinvoice/logo-schafstour.jpg)]

Hi,

i want to implement a logo in the PDF Invoice (work with the plugin attachinvoice).
Therefore I added the img-html-Code in the invoice.php but the the system get out the error:
Unable to get the size of the image [[ www.schafstour.de/plugins/hikashop/attac.../logo-schafstour.jpg](https://www.schafstour.de/plugins/hikashop/attachinvoice/logo-schafstour.jpg)]

So I tried different kinds of implementation, only &lt;img src="" /&gt;, or per echo and also by function $logo, but no way ist working, always the same error. I change the image form jpeg to png and added the width and height also, noop!

So, do you have any idea, why it is not working or have a good explanation how to add the logo?

thanks,
Mapache

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNDAwOC1pbXBsZW1lbnQtYW4taW1hZ2UtaW4taW52b2ljZS1waHAtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

4 years 9 months ago [\#339603](#339603) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Implement an image in invoice.php doesn't work](/forum/35-orders-management/904008-implement-an-image-in-invoice-php-doesnt-work#339603 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 3.10.6 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : every browser -- Error-message(debug-mod must be tuned on) -- : Unable to get the size of the image &#91;  www.schafstour.de/plugins/hikashop/attac.../logo-schafstour.jpg &#93;  Hi,  i want to implement a logo in the PDF Invoice (work with the plugin attachinvoice). Therefore I added the img-html-Code in the invoice.php but the the system get out the error: Unable to get the size of the image &#91;  www.schafstour.de/plugins/hikashop/attac.../logo-schafstour.jpg &#93;  So I tried different kinds of implementation, only , or per echo and also by function $logo, but no way ist working, always the same error. I change the image form jpeg to png and added the width and height also, noop!  So, do you have any idea, why it is not working or have a good explanation how to add the logo?  thanks, Mapache")*

Hi,

The HTML you added is probably already ok.
If you get that error, it means that PHP is not able to download the file [ www.schafstour.de/plugins/hikashop/attac.../logo-schafstour.jpg](https://www.schafstour.de/plugins/hikashop/attachinvoice/logo-schafstour.jpg)
And you can't change your HTML or HikaShop or the plugin to fix this.
It's porbably because allow_url_fopen needs to be enabled in your php.ini, but it could also be mod_security (apache) or safe mode causing the issue ( [ stackoverflow.com/questions/37531149/php...ng-on-external-links](https://stackoverflow.com/questions/37531149/php-getimagesize-not-working-on-external-links) ). Il all cases, it's something to do with the server setup so you might want to check with your hosting support.

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

- **[Mapache64](/forum/user/35916-mapache64 "View Mapache64's Profile")**
- [![Mapache64's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35916-mapache64 "View Mapache64's Profile") Topic Author
- [ Offline](/forum/user/35916-mapache64)

Less More

- Posts: 16
- Thank you received: 2
-
-

4 years 9 months ago [\#339630](#339630) by [Mapache64](/forum/user/35916-mapache64 "View Mapache64's Profile")  Replied by *[Mapache64](/forum/user/35916-mapache64 "View Mapache64's Profile")* on topic *[Implement an image in invoice.php doesn't work](/forum/35-orders-management/904008-implement-an-image-in-invoice-php-doesnt-work#339630 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 3.10.6 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : every browser -- Error-message(debug-mod must be tuned on) -- : Unable to get the size of the image &#91;  www.schafstour.de/plugins/hikashop/attac.../logo-schafstour.jpg &#93;  Hi,  i want to implement a logo in the PDF Invoice (work with the plugin attachinvoice). Therefore I added the img-html-Code in the invoice.php but the the system get out the error: Unable to get the size of the image &#91;  www.schafstour.de/plugins/hikashop/attac.../logo-schafstour.jpg &#93;  So I tried different kinds of implementation, only , or per echo and also by function $logo, but no way ist working, always the same error. I change the image form jpeg to png and added the width and height also, noop!  So, do you have any idea, why it is not working or have a good explanation how to add the logo?  thanks, Mapache")*

Thanks a lot.
That was my thought also. So I get in contact with my provider...

regards
Mapache

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

- **[Mapache64](/forum/user/35916-mapache64 "View Mapache64's Profile")**
- [![Mapache64's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35916-mapache64 "View Mapache64's Profile") Topic Author
- [ Offline](/forum/user/35916-mapache64)

Less More

- Posts: 16
- Thank you received: 2
-
-

4 years 9 months ago [\#339709](#339709) by [Mapache64](/forum/user/35916-mapache64 "View Mapache64's Profile")  Replied by *[Mapache64](/forum/user/35916-mapache64 "View Mapache64's Profile")* on topic *[Implement an image in invoice.php doesn't work](/forum/35-orders-management/904008-implement-an-image-in-invoice-php-doesnt-work#339709 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 3.10.6 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : every browser -- Error-message(debug-mod must be tuned on) -- : Unable to get the size of the image &#91;  www.schafstour.de/plugins/hikashop/attac.../logo-schafstour.jpg &#93;  Hi,  i want to implement a logo in the PDF Invoice (work with the plugin attachinvoice). Therefore I added the img-html-Code in the invoice.php but the the system get out the error: Unable to get the size of the image &#91;  www.schafstour.de/plugins/hikashop/attac.../logo-schafstour.jpg &#93;  So I tried different kinds of implementation, only , or per echo and also by function $logo, but no way ist working, always the same error. I change the image form jpeg to png and added the width and height also, noop!  So, do you have any idea, why it is not working or have a good explanation how to add the logo?  thanks, Mapache")*

o.k. it was problem with the PHP.ini configuration.
No wit his working.
Thanks.

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNDAwOC1pbXBsZW1lbnQtYW4taW1hZ2UtaW4taW52b2ljZS1waHAtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) 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.058 seconds

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