Images are not included in summary screen when downloaded as PDF.
When I display a summary screen of an item, it displays correctly but when I download it as PDF, then the text is there but the image is not.
This happened after the PHP version running was updated to 7.0.20.
I am running providence 1.6.1
Does anyone know if there is interaction between PHP 7 and providence 1.6.1 that could cause this situation.
Comments
Got it fixed.
It was PHP 7.0.22 option allow_url_fopen was set to off. Changed it to on and pdf downloads from summary works great now.
Thanks for the hint about resolving url path.
Back again. Problem happens after upgrade to PHP 7.2, providence 1.7.6.
Image does not display in summary PDF download.
I'm having this problem too. I checked the allow_url_fopen ini setting and it is already turned on. In the PDF, it prints out "Image not found or type unknown". In my case, the likely cause is that I have HTTP Auth enabled, which could cause a 401 response to internal requests.
What version are you running? What PDF back-end are you running (domPDF or wkhtmltopdf)? And what shows where the image should be?
Also, does your site hostname resolve from the server itself? (Eg. if you try to wget a url on your site from the server command line does it work?)
Already resolved and edited above. To make CA compatible with HTTP Auth, it is necessary to make an exception for the server's own IP address.