Implement an image in invoice.php doesn't work

  • Posts: 15
  • Thank you received: 2
2 years 9 months ago #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 [ 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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 9 months ago #339603

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.

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 2
2 years 9 months ago #339630

Thanks a lot.
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.

  • Posts: 15
  • Thank you received: 2
2 years 8 months ago #339709

o.k. it was problem with the PHP.ini configuration.
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.060 seconds
Powered by Kunena Forum