- Posts: 105
- Thank you received: 8
could not create pdf invoice
Hi!
I use the pdf plugin. But both - the invoice and delivery note - shows an error.
I tried PNG and JPG images - same issue. I can show the logo via direct link in the browser so the path should be correct.
Please Log in or Create an account to join the conversation.
This indicates that the PHP running on your server does not have permission to access the logo image in order to include it in the PDF.
The first thing to do is to temporarily change the logo to one hosted on another server that you know does not have protection measures against this.
For example, try using this image ( www.google.fr/images/branding/googlelogo...t_color_272x92dp.png ), which is Google's logo.
If it works with the Google logo but not with your own, it's likely that your site’s `.htaccess` file (or another system like ProxyShield: forums.phpfreaks.com/topic/162357-solved...-that-a-browser-can/ ) has restrictions on the "user-agent", preventing the plugin’s PHP code from accessing your logo.
However, if you encounter the same issue even with the Google logo, then it's more likely related to your PHP configuration, which is blocking external connections (particularly due to the `allow_url_fopen` flag in `php.ini`):
ask.gibbonedu.org/t/allow-url-fopen-1-wont-work/2981/15
Please Log in or Create an account to join the conversation.
nicolas wrote: The first thing to do is to temporarily change the logo to one hosted on another server that you know does not have protection measures against this.
For example, try using this image ( www.google.fr/images/branding/googlelogo...t_color_272x92dp.png ), which is Google's logo.
If it works with the Google logo but not with your own, it's likely that your site’s `.htaccess` file (or another system like ProxyShield: forums.phpfreaks.com/topic/162357-solved...-that-a-browser-can/ ) has restrictions on the "user-agent", preventing the plugin’s PHP code from accessing your logo.
the external Google logo is showing correctly.
But the htaccess tip I did not understand. I use no proxy. It is Joomla's default htaccess.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.