-
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
Issues after upgrade to 0.8.0 running PHP7 #1412
Comments
The "non-numeric value" error when running PHP 7.1 is one of the driving factors behind the release of 0.8.0. So if you don't want to downgrade PHP you'll need to stick with dompdf 0.8.0. There was a missed arithmetic operation (see #1407). So it's possible you'll still run into the issue. For the other error, there's no indication of where that error occurred. I'm not sure why even a simple document would not render correctly. For your simple test is the CSS inline or in an external document. It sounds like maybe dompdf is having trouble accessing external resources, but I'm not sure. Might help if you can turn up the error reporting in PHP. If that doesn't help you can try enabling to domdpf debugging capabilities. |
Thanks for such a prompt response @bsweeney, it really helped me track down the issue, it appears your are right in that it looks to be an issue with external resources, inline styles were file. None of the external images were loading correctly, i finally work this is oddly caused by my local env (running valet) but only when SSL is enabled. This helped uncover the actual issue, which was fonts, there was a handful of fonts being included via font face, which started to get generated again when the SSL issue was identified (so when running on non SSL) once tracked down I was stuck again, but tried running the font through TransType 4, re exported, re tested and it works! Tested on our staging site and works running on SSL & NON SSL, so will be something unique to Valet. Got there in the end, only advice i can offer for anyone else who runs into similar issues is:
Thanks. |
Hi There,
I have been trying to work this one out for a few days now but i'm stuck, mainly struggling to debug and identify the actual issue.
Been successfully using version 0.7.0 on a project running on php7 for the last few months, but started experiencing bugs on both our local, staging and production environment servers (likely caused by unrelated updates).
To try and simplify, we are now running 0.8.0 on php7.1, installed via composer and with dependencies installed, all requirements met and pdf generation is causing issues:
@font-face
) created or images (even a simple html p tag with just the colour style in css doesn't work)Tried simply rendering simple html string with no difference and tried running the current master (from github) still no good.
Input HTML + CSS both validate wit no errors.
Running 0.7.0 on php7 or php7.1 - I get the following error:
Running 0.8.0 on php7 and php 7.1 (on our staging server) - I get the following error:
Really stuck now.
Any reports of any issues, things to try or better ways for debug / track down the actual issue??
The text was updated successfully, but these errors were encountered: