- Posts: 16
- Thank you received: 2
Implement an image in invoice.php doesn't work
4 years 7 months ago #339595
by Mapache64
Implement an image in invoice.php doesn't work was created by Mapache64
-- 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 ]
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 ]
So I tried different kinds of implementation, only <img src="" />, 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
-- 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 ]
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 ]
So I tried different kinds of implementation, only <img src="" />, 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 or Create an account to join the conversation.
4 years 7 months ago #339603
by nicolas
Replied by nicolas on topic Implement an image in invoice.php doesn't work
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
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 ). Il all cases, it's something to do with the server setup so you might want to check with your hosting support.
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
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 ). 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 or Create an account to join the conversation.
4 years 7 months ago #339630
by Mapache64
Replied by Mapache64 on topic Implement an image in invoice.php doesn't work
Thanks a lot.
That was my thought also. So I get in contact with my provider...
regards
Mapache
That was my thought also. So I get in contact with my provider...
regards
Mapache
Please Log in or Create an account to join the conversation.
4 years 7 months ago #339709
by Mapache64
Replied by Mapache64 on topic Implement an image in invoice.php doesn't work
o.k. it was problem with the PHP.ini configuration.
No wit his working.
Thanks.
No wit his working.
Thanks.
The following user(s) said Thank You: nicolas
Please Log in or Create an account to join the conversation.
Time to create page: 0.186 seconds