View Issue Details

IDProjectCategoryView StatusLast Update
0012393mantisbtreportspublic2016-07-21 15:03
Reporterastekk Assigned Torombert  
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformHP DL185 G5OSOpenSolarisOS Version5.11 (snv_134)
Product Version1.2.3 
Target Version1.2.9Fixed in Version1.2.9 
Summary0012393: MantisGraph graph_api.php:error_text() is broken when using JpGraph
Description

The local $t_graph_font used is undefined in error_text().
It is assigned in error_check() just above this one, to no use.

It looks like a refactoring bug.

When using jpgraph, I get a JpGraph error 25095 "Unknown font font family specification". (because of the undefined variable used in the call to SetFont in error_text).

Steps To Reproduce

View summary graph per category with a fresh install, no added categories and a few reported issues in the general category.

This should give a image with the text "Not enough data to create graph".

Additional Information

The fix is simple: move the assignment of $t_graph_font from error_check() to the error_text() function.

This bug is present on the master tip as well...

TagsNo tags attached.

Relationships

related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 
has duplicate 0013090 closedatrol MantisGraph with jPGraph, error 25095. 

Activities

moudsen

moudsen

2011-01-12 14:55

reporter   ~0027914

I can confirm this issue as still being present in 1.2.4. The proposed fix is either not implemented in 1.2.4, or we've hit another issue in 1.2.4?

moudsen

moudsen

2011-01-12 15:21

reporter   ~0027915

Found the real issue behind it:

When there are no DEVELOPERS defined as users, this error occurs. Define at least 1 developer and the issue is gone.

moudsen

moudsen

2011-01-12 15:24

reporter   ~0027916

For cosmetic reasons this issue should be fixed to show some "message" instead of an error?

Same goes for other graphs that show the same behaviour when there is no data available.

I know, I know, this condition is only present when starting with an empty database, but it has kept me wondering "why the hell does this not work?" for a while. Wasted energy ... (and a lot of frustration).

rombert

rombert

2011-12-06 10:54

reporter   ~0030469

I am unable to reproduce this on a fresh install of master-1.2.x. Here's what I did
<ol><li>Installed 1.2 from git</li><li>Activated the graph plugin - no ez graph integration</li><li>Created a project</li><li>Viewed all graphs under summary</li><li>Reported an issue under the general category</li><li>Viewed all graphs under summary</li></ol>

I did not get any errors, and graphs displayed 'Not enough data' where applicable.

Can any of you which are affected by the issue provide steps to reproduce for this?

rombert

rombert

2011-12-06 11:03

reporter   ~0030470

Nevermind, I missed configuring the plugin to use Jpgraph.

grangeway

grangeway

2013-04-05 17:57

reporter   ~0036336

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master 1a73c894

2011-12-06 03:05

rombert


Details Diff
Fixes 0012393: MantisGraph graph_api.php:error_text() is broken when using JpGraph Affected Issues
0012393
mod - plugins/MantisGraph/core/graph_api.php Diff File

MantisBT: master-1.2.x f6a94a6f

2011-12-06 03:05

rombert


Details Diff
Fixes 0012393: MantisGraph graph_api.php:error_text() is broken when using JpGraph Affected Issues
0012393
mod - plugins/MantisGraph/core/graph_api.php Diff File