View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012393 | mantisbt | reports | public | 2010-09-23 07:21 | 2016-07-21 15:03 |
Reporter | astekk | Assigned To | rombert | ||
Priority | low | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | HP DL185 G5 | OS | OpenSolaris | OS Version | 5.11 (snv_134) |
Product Version | 1.2.3 | ||||
Target Version | 1.2.9 | Fixed in Version | 1.2.9 | ||
Summary | 0012393: MantisGraph graph_api.php:error_text() is broken when using JpGraph | ||||
Description | The local $t_graph_font used is undefined in error_text(). 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... | ||||
Tags | No tags attached. | ||||
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? |
|
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. |
|
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). |
|
I am unable to reproduce this on a fresh install of master-1.2.x. Here's what I did 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? |
|
Nevermind, I missed configuring the plugin to use Jpgraph. |
|
Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch |
|
MantisBT: master 1a73c894 2011-12-06 03:05 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 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 |