jpgraph library problem.

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
horizn
Posts: 19
Joined: 03 Feb 2015, 09:07

jpgraph library problem.

Post by horizn »

Hi,
I am trying to set up mantis with jpgraph but unfortunately I get this on my apache log file:

Code: Select all

[Mon Apr 20 17:07:21 2015] [error] [client a.b.c.d] PHP Fatal error:  Call to a member function SetFormat() on a non-object in /var/www/mantis/plugins/MantisGraph/core/graph_api.php on line 338, referer: https://helpdesk.domain.com/plugin.php?page=MantisGraph/summary_graph_imp_status.php
MantisBT version: 1.2.19
Apache: 2.2.16
PHP: 5.3.3-7+squeeze19
jpgraph: 1.5.2-12
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: jpgraph library problem.

Post by atrol »

jpgraph: 1.5.2-12
It seems you have to use version 3.5 with PHP 5, see http://jpgraph.net/download/
Please use Search before posting and read the Manual
horizn
Posts: 19
Joined: 03 Feb 2015, 09:07

Re: jpgraph library problem.

Post by horizn »

atrol wrote:
jpgraph: 1.5.2-12
It seems you have to use version 3.5 with PHP 5, see http://jpgraph.net/download/
now i got:

Image

php5-gd 5.3.3-7+squeeze19 is installed.

I've tried bundle graphic library but there is "Unable to read/find font"
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: jpgraph library problem.

Post by atrol »

Run admin/check.php to check your installation.

Is there anywhere on your file system the file verdana.ttf?
If not, you have to install some Microsoft fonts, e.g, depending on your distribution something like
sudo apt-get install msttcorefonts
Please use Search before posting and read the Manual
Post Reply