-
Notifications
You must be signed in to change notification settings - Fork 58
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
cannot find fonts #92
Comments
I noticed I get this error when JpGraph tries to render an empty string... |
the same error. @nicman23 |
yes, thank u murrant. But i had no idea how to fix it few days ago.
filter parameters $txt & $text in the function like this:
|
@murrant @richardZhengGR, thanks for providing workarounds. Both work, even with JPGraph 3.0.7! @murrant your fix will still emit a PHP warning: |
I'd still like to know how to reproduce this issue. I tried manually setting wrong titles and legends to no avail. Is this one of those bugs that won't manifest themselves in testing or mocking environments? |
it throws this error
JpGraph Error: 25092There is either a configuration problem with TrueType or a problem reading font file "/usr/share/fonts/TTF/DejaVuSans.ttf" Make sure file exists and is in a readable place for the HTTP process. (If 'basedir' restriction is enabled in PHP then the font file must be located in the document root.). It might also be a wrongly installed FreeType library. Try upgrading to at least FreeType 2.1.13 and recompile GD with the correct setup so it can find the new FT library.
but phpinfo() shows it enabled and the file exists, with no basedir configuration (it is disabled on php.ini
open_basedir => no value => no value
)i recompiled php, resulting in the same issue. also this is from php cli not apache etc.
The text was updated successfully, but these errors were encountered: