jpgraph
Last Modified: September 16, 2004 08:09AM
|
|
(Any)
|
Description
In troubleshooting jpgraph issues, please check the following steps.
- 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:
- 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.
- 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".
- 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/';
- 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:
|
|