No Graph is displayed

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
kerthi
Posts: 17
Joined: 08 Nov 2005, 14:31

No Graph is displayed

Post by kerthi »

Hey!

I want to use the visual summary in mantis.

I have configured the following variables:

# JP GRAPH SETTINGS
$g_use_jpgraph = ON;
$g_jpgraph_path = '.' . DIRECTORY_SEPARATOR . 'jpgraph' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR; # dont forget the ending slash!

When i display the summary_jpgraph_page.php page nothing is displayed. The System tries to create the images, but none of them is displayed.

If i access a report dirctly it says:
The Image "http://fibrecatn20i:8080/mantis2/summar ... status.php" cannot be displayed, because it contains errors.

Any solutions?

The same configuration of the mantis system works on my local testsystem (images are displayed correctly), but not on the server.

My Version is 1.0.5

thx kerthi
Narcissus
Developer
Posts: 338
Joined: 17 Feb 2005, 09:45

Post by Narcissus »

Under the JPGraph directory itself (somewhere) is an "Examples" directory.

Check under it first and make sure that the examples work. If they don't, then get your installation to the point where they do. If they do, then let us know.
kerthi
Posts: 17
Joined: 08 Nov 2005, 14:31

Post by kerthi »

The examples work!

But i don't get the summary to work!!

CK
kerthi
Posts: 17
Joined: 08 Nov 2005, 14:31

Post by kerthi »

I don't get the graphs to work.

Have no idea what's the problem.
kerthi
Posts: 17
Joined: 08 Nov 2005, 14:31

Post by kerthi »

I copied the release where the summary is not working to my local test machine.
There all the graphs work as expected.

There must be something wrong with the server configuration.
I have no idea what.
TomR
Posts: 55
Joined: 01 Aug 2006, 10:22

Post by TomR »

What do you see?

A red cross?

Could be that your config file or custom files have blanks at the end.

Other thing could be memory exhaust from PHP.

Increase it to 16 Mb in php.ini
kerthi
Posts: 17
Joined: 08 Nov 2005, 14:31

Post by kerthi »

Thanks, that worked.
I had a blank at the end of my custom_strings.
atomoid
Posts: 108
Joined: 18 Aug 2005, 00:46
Location: santa cruz, ca

Post by atomoid »

We were getting all blank graph pages (no red 'X' or anything)
...yet all the jpgraph examples ran fine.

The clincher was:
php.ini: memory_limit = 8 (this defualt value was too small)

You need to set it to something like 16 or higher, we set it to 64 and all works fine now.
Uwe
Posts: 21
Joined: 05 Nov 2008, 10:13
Location: Flensburg, Germany

Re: No Graph is displayed

Post by Uwe »

Hi,

I had a similar problem with Mantis 1.1.5 & jpgraph 2.3.3.
Also no Mantis graphs were shown but the Jpgraph examples works without problem.
The cause was some leading spaces in my "custom_functions_inc.php" file.
Hopes that helps somebody...

--Uwe
Post Reply