-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error displaying image. Any solution? #2966
Comments
Have you allowed remote files (set isRemoteEnabled to true)? I know "localhost" is not a remote URL but as far as Dompdf is concerned anything accessed over HTTP is remote. |
@bsweeney I'm using laravel-dompdf wrapper (dompdf 1.2.2) and having the same issue. Offending line: config/dompdf.php:
It works fine in my local environment, but fails in our staging environment, don't see anything in the PHP log. I'm having trouble finding out why. Things I've confirmed about the staging environment:
|
Sounds like you've done the basics with regard to trouble-shooting. I don't have any additional thoughts off the top of my head. You might try enabling additional debugging (debug configuration in the wiki). |
As a note to anyone who runs into this, my work-around was to base64 encode the image. No issues that way, and I default to a local image on error:
|
@Ajility97 yeah that is definitely one way around the issue. Sorry I didn't have any better advice on what was causing problems fetching the image. |
The text was updated successfully, but these errors were encountered: