Page 1 of 1

jpgraph library problem.

Posted: 20 Apr 2015, 16:16
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

Re: jpgraph library problem.

Posted: 20 Apr 2015, 19:50
by atrol
jpgraph: 1.5.2-12
It seems you have to use version 3.5 with PHP 5, see http://jpgraph.net/download/

Re: jpgraph library problem.

Posted: 22 Apr 2015, 15:58
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"

Re: jpgraph library problem.

Posted: 22 Apr 2015, 16:44
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