Solved: Jpgraph 2.2, Mantis 1.0.7 => Classes not found

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
CryoGenID
Posts: 3
Joined: 10 Apr 2006, 08:57

Solved: Jpgraph 2.2, Mantis 1.0.7 => Classes not found

Post by CryoGenID »

Hey :-)

I've just installed Mantis and everything is running fine here except the
jpgraph-things :cry:

I have installed JPgraph 2.2 (because I have PHP 5.1.x) and all Examples are running fine (except the fonts somehow but that's another story).

Inside Mantis I can't see any graphs and I get this error here:

Code: Select all

[Sat Jun 30 13:51:23 2007] [error] [client 84.153.208.101] PHP Fatal error:  Class 'CanvasGraph' not found in /var/www/vhosts/xxx.com/httpdocs/core/graph_api.php on line 673, referer: http://www.xxx.com/summary_graph_imp_category.php
For each Graph I click in Mantis I get different Classes which cannot be found (CanvasGraph, PieGraph, etc.).
I have checked that the path is correct in the Mantis-Config-File:
--
$g_use_jpgraph = 'ON';
$g_jpgraph_path = '/var/www/vhosts/xxx.com/httpdocs/jpgraph/src/';
--

Any clue what I can do here to make it work?

Thanks a lot in advance for your help :-)

Best regards,

Christian
Last edited by CryoGenID on 30 Jun 2007, 12:32, edited 1 time in total.
CryoGenID
Posts: 3
Joined: 10 Apr 2006, 08:57

Post by CryoGenID »

Solved:

I have the single quotation marks in the config file, that was the error.

You have to write it like this:

--
$g_use_jpgraph = ON;
$g_jpgraph_path = '/var/www/vhosts/xxx.com/httpdocs/jpgraph/src/';
--

Perhaps somebody else will stumble over this and this might possibly help him :wink:
Post Reply