Mantis Logo
Mantis Manual
Manual
Troubleshooting

Installation
jpgraph
File Downloads


Partner Links

statshenryk
rammstein
piotr czajkowski
absolution
maria stuart
noclegi ³ód¼
tworzenie stron


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)