For old posts/forum, please go here : https://sourceforge.net/p/soplanning/discussion/
Pour l'ancien forum, accédez à cette page : https://sourceforge.net/p/soplanning/discussion/

JpGraph Error 25092

Post Reply
JGS
Posts: 4
Joined: Wed Apr 29, 2020 7:42 pm

JpGraph Error 25092

Post by JGS » Wed Apr 29, 2020 7:51 pm

Greetings,

I'm getting the following error in the STATS section of SOplanning.
soplanning_error.png
soplanning_error.png (8.22 KiB) Viewed 2567 times
There is either a configuration problem with TrueType or a problem reading the font file
"/var/www/html/planning/jpgraph/src/fonts/DejaVuSans.ttf"
Make sure file exists and is in a readable place for the HTTP process.



I've tried about everything I know, checked here, checked google. Made sure the fonts were in the right places. Permissions and rw access for the http process is correct. I checked jpg-config.inc and verified paths are pointing to the proper locations.

FreeType Version: freetype-2.8.14.el7.x86_64
PHP version: 7.3.17

Everything except this works. Any help would be greatly appreciated.

-JGS

soplanning
Site Admin
Posts: 254
Joined: Thu Aug 31, 2017 3:58 pm

Re: JpGraph Error 25092

Post by soplanning » Wed Apr 29, 2020 9:39 pm

We don't have any clue for the moment, it's weird...
We tested on several PHP version including 7.4, it's working.
Nobody reported this error before, so i guess it's related to your environment.

You probably already tried, but just to be sure, can you re-upload the whole JPGraph directory, or download it again from our website ?
The message is quite clear, it seems this file is not readable/present.
Can you try in another environment / PHP version ?
Did you also dig on the truetype side ? maybe a bad linux setup ?

JGS
Posts: 4
Joined: Wed Apr 29, 2020 7:42 pm

Re: JpGraph Error 25092

Post by JGS » Thu Apr 30, 2020 12:58 pm

Regarding the TrueType side - I removed and re-installed via yum - no change. Just wanted to show the jpg-config.inc.php matches:

jpg-config.inc.php

define('CACHE_DIR','/tmp/jpgraph_cache/');
define('TTF_DIR','/var/www/html/planning/jpgraph/src/fonts/');
define('MBTTF_DIR','/var/www/html/planning/jpgraph/src/fonts/');


/var/www/html/planning/jpgraph/src/fonts/
[root@server fonts]# ls -l
total 2544
-rwxrwxrwx 1 apache apache 574636 Apr 7 10:18 DejaVuSans-BoldOblique.ttf
-rwxrwxrwx 1 apache apache 634184 Apr 7 10:18 DejaVuSans-Bold.ttf
-rwxrwxrwx 1 apache apache 574456 Apr 7 10:18 DejaVuSans-Oblique.ttf
-rwxrwxrwx 1 apache apache 683528 Apr 7 10:18 DejaVuSans.ttf
-rwxrwxrwx 1 apache apache 13456 Apr 7 10:18 FF_FONT0-Bold.gdf
-rwxrwxrwx 1 apache apache 13456 Apr 7 10:18 FF_FONT0.gdf
-rwxrwxrwx 1 apache apache 18832 Apr 7 10:18 FF_FONT1-Bold.gdf
-rwxrwxrwx 1 apache apache 18832 Apr 7 10:18 FF_FONT1.gdf
-rwxrwxrwx 1 apache apache 25104 Apr 7 10:18 FF_FONT2-Bold.gdf
-rwxrwxrwx 1 apache apache 25104 Apr 7 10:18 FF_FONT2.gdf

It obviously is something with my setup, but I need some help finding this. Debug mode in Soplanning? Any other suggestions? Appreciate your help and feedback.

soplanning
Site Admin
Posts: 254
Joined: Thu Aug 31, 2017 3:58 pm

Re: JpGraph Error 25092

Post by soplanning » Thu Apr 30, 2020 2:33 pm

Sorry but as said above, we never saw such error before.
We are happy to help users, but we don't have any idea, and can't reproduce it (so we can't really dig).
As the problem is coming from a third part library, i would suggest to submit them the issue, they probably know how to fix it.
Here's the official support forum where you can ask :
https://groups.google.com/forum/#!forum/jpgraph

One related topic : https://groups.google.com/forum/?hl=en- ... J58zFMFNeI

hope it helps...

JGS
Posts: 4
Joined: Wed Apr 29, 2020 7:42 pm

Re: JpGraph Error 25092

Post by JGS » Thu Apr 30, 2020 2:38 pm

Excellent, thank you!

JGS
Posts: 4
Joined: Wed Apr 29, 2020 7:42 pm

Re: JpGraph Error 25092

Post by JGS » Thu Apr 30, 2020 6:05 pm

Just an update to prove it's my centos 7 environment.

I just spun up a centos 8 vm
Apache 2.4.37
PHP 7.4.5
MariaDB 10.3.17

It works just fine without issue. Sorry for the "bug" report when the bug was with me (and my system).

jamesalex
Posts: 1
Joined: Mon Sep 21, 2020 1:18 pm

Re: JpGraph Error 25092

Post by jamesalex » Mon Sep 21, 2020 1:19 pm

God information thanks for sharing

Post Reply