Closed Bug 299262 Opened 20 years ago Closed 19 years ago

uninitialized value when using chart.cgi

Categories

(Bugzilla :: Reporting/Charting, defect)

2.19.3
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: LpSolit, Assigned: gerv)

References

Details

chart.cgi: Use of uninitialized value in subroutine entry at
/usr/lib/perl5/vendor_perl/5.8.5/GD/Graph/area.pm line 104.

The corresponding line in area.pm is:

$self->{graph}->dashedLine($x, $y, $x, $bottom, $brci);

Maybe this could help:

Checking for              GD (v1.20)   ok: found v2.21
Checking for     Chart::Base (v1.0)    ok: found v2.3
Checking for     XML::Parser (any)     ok: found v2.34
Checking for       GD::Graph (any)     ok: found v1.35
Checking for GD::Text::Align (any)     ok: found v1
Target Milestone: --- → Bugzilla 2.20
Maybe the culprit is template/en/default/reports/chart.png.tmpl, line 26:

[% USE graph = GD.Graph.area(width, height) %]
When you get this error, if you do a View Image on the image, does the URL have
a width and height on it?

Can you edit area.pm to reference those five variables one at a time, to see
which one is uninitialised?

Gerv
Keywords: qawanted
LpSolit: is this still happening?

Gerv
gerv, I tried a few minutes ago and I cannot reproduce the problem anymore. Note
that I upgraded my OS meanwhile. My Perl version is now 5.8.6 instead of 5.8.5.
The module versions mentioned in comment 0 are unchanged.

Could it be a bug in Perl 5.8.5? Or has something changed in Bugzilla (or maybe
a param)?

I tried on both 2.21.1 and 2.20.
Marking WORKSFORME, then.

Gerv
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
Tested this on current tip using perl 5.8.5 and couldn't reproduce. Although, my
GD::Graph is v1.43 and there's some entries in it's changelog related to area.
Keywords: qawanted
Target Milestone: Bugzilla 2.20 → ---
You need to log in before you can comment on or make changes to this bug.