Mantis Logo
Mantis Manual
Manual
Troubleshooting

Installation
jpgraph
File Downloads


Partner Links


jpgraph
Last Modified: September 16, 2004 08:09AM
(Any)
Description

In troubleshooting jpgraph issues, please check the following steps.
  1. Will jpgraph run on it's own? In the src directory of jpgraph, there is an "Examples" subdirectory containing a test suite (test_suit.php). Try to run this program to ensure that jpgraph fonts and other settings (in jpg-config.inc) are correct. Check the jpgraph site (http://www.aditus.nu/jpgraph/) for more details.

    Some settings to note:
    1. jpgraph uses TrueType fonts. On RedHat Linux systems these are usually located in "/usr/X11R6/lib/X11/fonts/truetype/", if you installed them from the distribution. They can also be downloaded from the jpgraph web site.
    2. jpgraph can have problems figuring out which version of GD is installed. Auto detection does not work properly on RH8.0 (for example). This can be forced by changing the "USE_LIBRARY_GD2" definition from "auto" to "false" to force GD v1 mode. GD v2 mode is set by changing the constant to "true".

  2. Ensure that the Mantis settings for jpgraph are set in your config_inc.php file.

    $g_use_jpgraph = ON; $g_jpgraph_path = '/srv/www/htdocs/jpgraph/src/';

  3. Try executing the graphs directly. This will expose any error messages from the creation of the image that would normally be hidden by the image tag. For example, open http://www.example.com/mantis/summary_graph_bystatus.php and look for error messages.

    Some common problems are:
    • php runs out of memory. In php.ini, change:
      memory_limit = 16M ; Maximum amount of memory a script may consume (was 8M)
    • php takes too long to execute. In php.ini, change:
      max_execution_time = 60 ; Maximum execution time of each script ; in seconds (was 30)


User Contributed Notes
JpGraph
Add Notes About Notes
fsebbah@gnuline.com
06-Jan-2004 15:11
#48
Hello
I am not sure to undersdand your concept with jpgraph
In my config_inc.php, I have this:

$g_use_jpgraph = ON;
$g_jpgraph_path ='/var/www/toto.net/jpgraph/src/';

But it's not good??
Thanks
Franck
lhauserm@naema.org
20-Jan-2004 9:54
#54
It seems that the DIR_BASE is not present in latest stable release of the jpgraph package.
I could not get mantisbt running with 1.14...

Regards,
robert@toequest.com
21-Jan-2004 22:58
#55
I couldn't find DIR_BASE in jpgraph 1.13 or 1.12.2. I'd really like to get jpgraph working with mantis. I've seen sites that have done this. Could anyone provide step-by-step instructions on what to do? I just don't get it.

Thanks,
--Robert
bogdan@itcnet.ro
22-Jan-2004 6:40
#56
Jpgraph 1.14 and mantis
Let's say you installed jpgraph in /www/html/jpgraph. So in this directory you have the file jpgraph.php. Verify this and there is no need to change this file.

In config_inc.php add/modify these lines:
$g_use_jpgraph = ON;
$g_jpgraph_path = '/var/www/html/mantis/jpgraph/'; #if you are on unix

or

$g_jpgraph_path = DIRECTORY_SEPARATOR . 'www' . DIRECTORY_SEPARATOR . 'html' . DIRECTORY_SEPARATOR . 'jpgraph' . DIRECTORY_SEPARATOR; # for a platform independent configuration

Take care that the latest jpgraph archive has the actual php files in jpgraph-x-x-x/src directory. So move the src directory as /www/html/jpgraph.

Works for me in this setup.
Great job Mantis group )

Bogdan
ance_x@msn.com
28-Jan-2004 22:34
#64
i'm running mantis on windows OS, is there anybody know how to config mantis with jpgraph in Windows?thanx!
Add Notes About Notes
Last updated: Thu, 11 Mar 2010 - 20:33:42

Mantis @ SourceForge