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

#   Problem with plugin Attach Invoice PDF and logo in HS

##

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

Less More

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

3 years 4 months ago [\#352369](#352369) by [sep2014](/forum/user/31618-sep2014 "View sep2014's Profile")  *[Problem with plugin Attach Invoice PDF and logo in HS](/forum/35-orders-management/906531-problem-with-plugin-attach-invoice-pdf-and-logo-in-hs#352369 "-- url of the page with the problem -- :   www.marrys.nl  -- HikaShop version -- : 4.7.3 -- Joomla version -- : 4.3.2 -- PHP version -- : 8.0 -- Browser(s) name and version -- : firefox/safari -- Error-message(debug-mod must be tuned on) -- : Er heeft zich een fout voorgedaan 2 Unable to get the size of the image &#91;  www.marrys.nl/images/Logos/marrys-logo.png &#93;  I have installed a logo on the main page of Hikashop. When I skip the plugin Attach Invoice (PDF) 2.0 everything is OK. Or turn it off = OK  But when I put ON I get a error: Er heeft zich een fout voorgedaan.  2 Unable to get the size of the image &#91;  www.marrys.nl/images/Logos/marrys-logo.png &#93;  I have also checked PHP 8.1. But no change. allow&#95;url&#95;fopen On On allow&#95;url&#95;include Off Off")* was created by *[sep2014](/forum/user/31618-sep2014 "View sep2014's Profile")*

-- url of the page with the problem -- : [ www.marrys.nl](https://www.marrys.nl)
-- HikaShop version -- : 4.7.3
-- Joomla version -- : 4.3.2
-- PHP version -- : 8.0
-- Browser(s) name and version -- : firefox/safari
-- Error-message(debug-mod must be tuned on) -- : Er heeft zich een fout voorgedaan
2 Unable to get the size of the image [[ www.marrys.nl/images/Logos/marrys-logo.png](https://www.marrys.nl/images/Logos/marrys-logo.png)]

I have installed a logo on the main page of Hikashop. When I skip the plugin Attach Invoice (PDF) 2.0 everything is OK. Or turn it off = OK

But when I put ON I get a error:
Er heeft zich een fout voorgedaan.

2 Unable to get the size of the image [[ www.marrys.nl/images/Logos/marrys-logo.png](https://www.marrys.nl/images/Logos/marrys-logo.png)]

I have also checked PHP 8.1. But no change.
allow_url_fopen On On
allow_url_include Off Off

- [ ![Schermafbeelding2023-06-14om10.51.01.png](/forum/attachment/57175) ](/forum/attachment/57175 "...om10.51.01.png") [ ](/forum/attachment/57175?download=1 "...om10.51.01.png")
- [ ![Schermafbeelding2023-06-14om16.01.25.png](/forum/attachment/57176) ](/forum/attachment/57176 "...om16.01.25.png") [ ](/forum/attachment/57176?download=1 "...om16.01.25.png")
- [ ![Schermafbeelding2023-06-14om16.05.37.png](/forum/attachment/57177) ](/forum/attachment/57177 "...om16.05.37.png") [ ](/forum/attachment/57177?download=1 "...om16.05.37.png")
- [ ![Schermafbeelding2023-06-14om16.01.35.png](/forum/attachment/57178) ](/forum/attachment/57178 "...om16.01.35.png") [ ](/forum/attachment/57178?download=1 "...om16.01.35.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNjUzMS1wcm9ibGVtLXdpdGgtcGx1Z2luLWF0dGFjaC1pbnZvaWNlLXBkZi1hbmQtbG9nby1pbi1ocz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

3 years 4 months ago [\#352372](#352372) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Problem with plugin Attach Invoice PDF and logo in HS](/forum/35-orders-management/906531-problem-with-plugin-attach-invoice-pdf-and-logo-in-hs#352372 "-- url of the page with the problem -- :   www.marrys.nl  -- HikaShop version -- : 4.7.3 -- Joomla version -- : 4.3.2 -- PHP version -- : 8.0 -- Browser(s) name and version -- : firefox/safari -- Error-message(debug-mod must be tuned on) -- : Er heeft zich een fout voorgedaan 2 Unable to get the size of the image &#91;  www.marrys.nl/images/Logos/marrys-logo.png &#93;  I have installed a logo on the main page of Hikashop. When I skip the plugin Attach Invoice (PDF) 2.0 everything is OK. Or turn it off = OK  But when I put ON I get a error: Er heeft zich een fout voorgedaan.  2 Unable to get the size of the image &#91;  www.marrys.nl/images/Logos/marrys-logo.png &#93;  I have also checked PHP 8.1. But no change. allow&#95;url&#95;fopen On On allow&#95;url&#95;include Off Off")*

Hi,

This error means that the library the plugin uses to retrieve the image to include it in the PDF is not able to download it.
So it's a server configuration issue.
It could be that file_get_contents or cURL is not available on the hosting, or allow_url_fopen or allow_url_include are turned off:
[ stackoverflow.com/a/28007106](https://stackoverflow.com/a/28007106)
It seems you're saying allow_url_include is turned off on your hosting so that might be the reason. It could also be that ini_get is not available or not returning the correct value for some reason.
I would recommend checking with your hosting support what can be done. Unfortunately, since it's a server configuration issue, there is not much we can do on our end.

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

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

Less More

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

3 years 4 months ago [\#352459](#352459) by [sep2014](/forum/user/31618-sep2014 "View sep2014's Profile")  Replied by *[sep2014](/forum/user/31618-sep2014 "View sep2014's Profile")* on topic *[Problem with plugin Attach Invoice PDF and logo in HS](/forum/35-orders-management/906531-problem-with-plugin-attach-invoice-pdf-and-logo-in-hs#352459 "-- url of the page with the problem -- :   www.marrys.nl  -- HikaShop version -- : 4.7.3 -- Joomla version -- : 4.3.2 -- PHP version -- : 8.0 -- Browser(s) name and version -- : firefox/safari -- Error-message(debug-mod must be tuned on) -- : Er heeft zich een fout voorgedaan 2 Unable to get the size of the image &#91;  www.marrys.nl/images/Logos/marrys-logo.png &#93;  I have installed a logo on the main page of Hikashop. When I skip the plugin Attach Invoice (PDF) 2.0 everything is OK. Or turn it off = OK  But when I put ON I get a error: Er heeft zich een fout voorgedaan.  2 Unable to get the size of the image &#91;  www.marrys.nl/images/Logos/marrys-logo.png &#93;  I have also checked PHP 8.1. But no change. allow&#95;url&#95;fopen On On allow&#95;url&#95;include Off Off")*

I have forwarded the info to the provider support. At first they responded from there we can't do anything about it. That is a matter for Joomla and Hikashop.

I asked further. Now for an answer:

Which URL is being called with the file_get_contents, cURL, allow_url_fopen, or allow_url_include functions? Then we can ask the server administrators if the requests are blocked by our Web Application Firewall.
Is that a logical question? Do you have an answer to that?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNjUzMS1wcm9ibGVtLXdpdGgtcGx1Z2luLWF0dGFjaC1pbnZvaWNlLXBkZi1hbmQtbG9nby1pbi1ocz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

3 years 4 months ago [\#352464](#352464) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Problem with plugin Attach Invoice PDF and logo in HS](/forum/35-orders-management/906531-problem-with-plugin-attach-invoice-pdf-and-logo-in-hs#352464 "-- url of the page with the problem -- :   www.marrys.nl  -- HikaShop version -- : 4.7.3 -- Joomla version -- : 4.3.2 -- PHP version -- : 8.0 -- Browser(s) name and version -- : firefox/safari -- Error-message(debug-mod must be tuned on) -- : Er heeft zich een fout voorgedaan 2 Unable to get the size of the image &#91;  www.marrys.nl/images/Logos/marrys-logo.png &#93;  I have installed a logo on the main page of Hikashop. When I skip the plugin Attach Invoice (PDF) 2.0 everything is OK. Or turn it off = OK  But when I put ON I get a error: Er heeft zich een fout voorgedaan.  2 Unable to get the size of the image &#91;  www.marrys.nl/images/Logos/marrys-logo.png &#93;  I have also checked PHP 8.1. But no change. allow&#95;url&#95;fopen On On allow&#95;url&#95;include Off Off")*

Hi,

Well, the URL called is [ www.marrys.nl/images/Logos/marrys-logo.png](https://www.marrys.nl/images/Logos/marrys-logo.png)
I'm not sure what information you sent them, but the error message in your first post here provides that information.
Also, I don't think that the problem is with the WAF (Web Application Firewall).

Note that from what you said allow_url_include is turned off. It could be the reason of that issue. And this is something which can be changed in the php.ini of the server.

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

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

Less More

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

3 years 4 months ago [\#352518](#352518) by [sep2014](/forum/user/31618-sep2014 "View sep2014's Profile")  Replied by *[sep2014](/forum/user/31618-sep2014 "View sep2014's Profile")* on topic *[Problem with plugin Attach Invoice PDF and logo in HS](/forum/35-orders-management/906531-problem-with-plugin-attach-invoice-pdf-and-logo-in-hs#352518 "-- url of the page with the problem -- :   www.marrys.nl  -- HikaShop version -- : 4.7.3 -- Joomla version -- : 4.3.2 -- PHP version -- : 8.0 -- Browser(s) name and version -- : firefox/safari -- Error-message(debug-mod must be tuned on) -- : Er heeft zich een fout voorgedaan 2 Unable to get the size of the image &#91;  www.marrys.nl/images/Logos/marrys-logo.png &#93;  I have installed a logo on the main page of Hikashop. When I skip the plugin Attach Invoice (PDF) 2.0 everything is OK. Or turn it off = OK  But when I put ON I get a error: Er heeft zich een fout voorgedaan.  2 Unable to get the size of the image &#91;  www.marrys.nl/images/Logos/marrys-logo.png &#93;  I have also checked PHP 8.1. But no change. allow&#95;url&#95;fopen On On allow&#95;url&#95;include Off Off")*

Hi
This is the answer of the provider:
I do see that allow_url_include is disabled on the server. Because a shared hosting environment is used, this function cannot be enabled.

It is best to change the URL to the relative URL. If the script containing the URL is in the folder [ www.marrys.nl](http://www.marrys.nl), you need to change the URL to images/Logos/marrys-logo.png.

I have tried to change the URL but have the same error. I have the URL deleted in the configuration.

Is it possible to change the source of the plugin lay-out of Attach Invoice 2.0? Than I will try to put the logo inside the html source of the PDF. Is that possible?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNjUzMS1wcm9ibGVtLXdpdGgtcGx1Z2luLWF0dGFjaC1pbnZvaWNlLXBkZi1hbmQtbG9nby1pbi1ocz90bXBsPW1hcmtkb3du) 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/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

3 years 4 months ago -  3 years 4 months ago [\#352519](#352519) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Problem with plugin Attach Invoice PDF and logo in HS](/forum/35-orders-management/906531-problem-with-plugin-attach-invoice-pdf-and-logo-in-hs#352519 "-- url of the page with the problem -- :   www.marrys.nl  -- HikaShop version -- : 4.7.3 -- Joomla version -- : 4.3.2 -- PHP version -- : 8.0 -- Browser(s) name and version -- : firefox/safari -- Error-message(debug-mod must be tuned on) -- : Er heeft zich een fout voorgedaan 2 Unable to get the size of the image &#91;  www.marrys.nl/images/Logos/marrys-logo.png &#93;  I have installed a logo on the main page of Hikashop. When I skip the plugin Attach Invoice (PDF) 2.0 everything is OK. Or turn it off = OK  But when I put ON I get a error: Er heeft zich een fout voorgedaan.  2 Unable to get the size of the image &#91;  www.marrys.nl/images/Logos/marrys-logo.png &#93;  I have also checked PHP 8.1. But no change. allow&#95;url&#95;fopen On On allow&#95;url&#95;include Off Off")*

Hello,

You will find the file to edit in your attachinvoice folder :
**=&gt; *Your\_Website*\\plugins\\hikashop\\attachinvoice\\attachinvoice**
Then, you have to edit the **relative** file, this will depends on which **Invoice Layout** you have select in your plugin settings

Hope this will help you to solve your issue.
Regards

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

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

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

[](#top)
