Can't get Graph plugin to work...

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
ernst67
Posts: 4
Joined: 23 Jun 2014, 11:23

Can't get Graph plugin to work...

Post by ernst67 »

Hello all,

I'm using MantisBT on a shared hosting account. The version I'm using is 1.2.17
All works well, but I can't get the Graph plugin to work.

The server I'm using does not have truetype fonts installed, so In the plugin settings I have referred to the 'bundled' font settings. I still get an error though... "unable to read/find font".

When I look at the plugin setting I notice that it is pointing to a directory in the library that does not exist. Would that be the problem? I was trying to find the directory, but it's not in the install package, neither can I find what the contents should be....
mantisgraphsettings.jpg
mantisgraphsettings.jpg (139.15 KiB) Viewed 9447 times
Can anyone please give a hint?
Thanks in advance!
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Can't get Graph plugin to work...

Post by atrol »

Did you set $g_system_font_folder in config_inc.php?

This should be set to a directory (including trailing /) where you have installed ttf fonts.
Search your disk for file Arial.ttf to check if you have fonts on your system.
Please use Search before posting and read the Manual
ernst67
Posts: 4
Joined: 23 Jun 2014, 11:23

Re: Can't get Graph plugin to work...

Post by ernst67 »

hi there atrol,

thank you for your quick response.
like I said; the server is a shared hosting server,
true type fonts are not installed on the server, and i do not have permission to install fonts myself.
that's why i would like to use the bundled library, but that was not installed when i installed mantis

oh, sorry, i'm now completely repeating myself. the question remains though...
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Can't get Graph plugin to work...

Post by atrol »

"Bundled" is not a font setting, it's a setting of the graph library.
Both libraries use the same fonts.
Copy the fonts to any directory you want and set $g_system_font_folder to the directory (don't forget a trailing slash).
Please use Search before posting and read the Manual
ernst67
Posts: 4
Joined: 23 Jun 2014, 11:23

Re: Can't get Graph plugin to work...

Post by ernst67 »

Well, ok,

- I created the directory library/jpgraph and copied arial.ttf in it.
- Set the plugin to work with arial
- set $g_system_font_folder = '/library/jpgraph/'

Still get: "unable to read/find font"

:?

I copied the font from my windows PC. Does that have anything to do with it..? Would that normally work on a linux box?
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Can't get Graph plugin to work...

Post by atrol »

Try

Code: Select all

$g_system_font_folder = 'library/jpgraph/'
Please use Search before posting and read the Manual
ernst67
Posts: 4
Joined: 23 Jun 2014, 11:23

Re: Can't get Graph plugin to work...

Post by ernst67 »

Thank you Atrol!

I've made progress... Now I get a warning "Bug Graph" for 1 or 2 seconds, then the graph displays :-)

Not sure what the initial warning text means... maybe I should install more fonts than Arial.ttf only?

Thanks again..
Tatous
Posts: 1
Joined: 23 Apr 2015, 11:26

Re: Can't get Graph plugin to work...

Post by Tatous »

Hello,

i'm matis new user and i have a probleme with the plugin MantisGraph
attached a bug screen capture 'Bug Graph'
please if any one have an ideo about the source of the problem
Attachments
bugGraphMantis.PNG
bugGraphMantis.PNG (76.97 KiB) Viewed 7803 times
Post Reply