Graphs does not appear

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
acquiesce
Posts: 1
Joined: 18 Aug 2005, 02:39

Graphs does not appear

Post by acquiesce »

I'm trying to make the graphs work. I've downloaded the Jpgraph and installed it under my mantis folder. I've set the config_default files to the path and the links to the graphs have appeared in the summary page. i've also define the DIR_BASE in the jpgraph.php but when i click on the graph links, nothing appears.

Thanks!
atomoid
Posts: 108
Joined: 18 Aug 2005, 00:46
Location: santa cruz, ca

Post by atomoid »

did you enable it in config_inc.php?
If you put jpgraph folder directly under the mantis folder, your path info in config_inc.php should contain this:
$g_use_jpgraph = ON;
$g_jpgraph_path = '.' . DIRECTORY_SEPARATOR . 'jpgraph' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR;

I dont think i had t set any other files up to get it to work. I did have to make sure i used the jpgraph for php4. otherwise, are you getting any errors?
Guest

Re: Graphs does not appear

Post by Guest »

I've got the same problem you have, the jpgraph path is defined properly and the gd library is working good. I've tried jpgraph with the example provided at "jpgraph/Examples/testsuit.php"and it works great. but i can't make those graphs appear on Mantis.

PS: sorry if my english isn't good, i'm from argentina.
Guest

Re: Graphs does not appear

Post by Guest »

I've got the same problem you have, the jpgraph path is defined properly and the gd library is working good. I've tried jpgraph with the example provided at "jpgraph/Examples/testsuit.php"and it works great. but i can't make those graphs appear on Mantis.

PS: sorry if my english isn't good, i'm from argentina.
atomoid
Posts: 108
Joined: 18 Aug 2005, 00:46
Location: santa cruz, ca

Post by atomoid »

since its working on your machine youve got it set up right. that means the config is msot likely not set up right in mantis. the path as set in mantis doesnt seem to correlate in my situation to the actual folder level its in but thats the only way it works. it stook me some experimentation to stumble on the right path. hope this helps, otherwise im basically a noob at configuring this stuff...
Narcissus
Developer
Posts: 338
Joined: 17 Feb 2005, 09:45

Post by Narcissus »

I've always found that for JPGraph in Mantis, the best thing to do is go straight to an image...

View the source of your summary page (the one where the graphs are meant to be). In there, somewhere, you will find a few <img> tags where the sources are other PHP files. For example, the "By Developer" graph is handled by summary_graph_bydeveloper.php. Now, send your browser straight to that image URL. In our case, send your browser to:
http://your_server_name/mantis/summary_graph_bydeveloper.php?width=375
(make sure you change the server name and the Mantis path). This is also assuming that you're using newer releases of Mantis.

Once you send your browser there, it's quite likely that you will see a list of errors. The reason you don't see them normally is because by the time it is being embedded in the page (as another PHP request) there is nowhere for this PHP output to go.

Once you have those errors, then you should be able to pinpoint the problem more easily.
Post Reply