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
Division by zero mpdf/mpdf.php Line: 15009 #296
Comments
Closing, unable to reporoduce in 7.0-beta |
For anyone else having this problem, it was caused for us because we had SVGs that had been saved using Adobe Illustrator's "Preserve editing abilities" setting enabled. This caused the SVG to contain invalid XML ( Looking at the latest code I suspect the issue is still present in 7.0. It's not so-much an issue with MPDF because of the broken XML, but maybe we could introduce a check for parsing errors after parsing the SVG's XML. |
I'm getting this error and I'm not even using SVGs... |
@zackphilipps You are not helpful in fixing this. What about providing a code sample? |
@finwe Sorry, this is just really frustrating. In my case, this has nothing to do with the code; it's the environment. The exact same template works on live, just not on my local. So it's a problem with missing assets, file permissions, SSL cert config, or some combination of the three. I'm still investigating and will report back once I know more. However, regarding images specifically, it seems like 9 times out of 10 the error message doesn't reflect the actual error that's occurring. I'm using 6.1; hopefully this has been improved in more recent versions. |
@finwe So, I got this error after adding this line to my
But, let's say the image in question is called Prior to adding that line, I DID get "Fatal error: Uncaught MpdfException: IMAGE Error ( |
I have this problem/would like to have this functionality
These are mPDF and PHP versions I am using
This is a PHP code snippet I use
This is a HTML code snippet I use
The text was updated successfully, but these errors were encountered: