[rt-users] Graph for RTx-Statistics-1.0.8 not showing
Jason Fenner
jfenner at vitamix.com
Tue Jun 27 09:15:13 EDT 2006
I would double check that GD::Graph is installed and operational.
Serge Bianda wrote:
> My RT 3.4.5 was installed correctly and I also have GD and all the perl
> modules installed (GD::Graph, Apache::GD::options, ...), but I don't
> seem to see the graph when I go to "Resolve Time Graph" under
> "RTx-Statistics". All I can see if an icon of a picture that did not
> load. If I right click on it and select "view image" from my browser, I
> get this message:
>
> System error
> error: Can't locate object method "new" via package
> "GD::Graph::points" at
> /opt/rt3/share/html/RTx/Statistics/TimeToResolve/Elements/Chart line 9.
> context:
> ...
> 5: <%INIT>
> 6: use GD::Graph::points;
> 7:
> 8: my @data;
> 9: my $graph = GD::Graph::points->new(400,300);
> 10: $graph->set(export_format => "png",
> 11: marker_size => $ARGS{marker_size},
> 12: x_label => 'Average time to resolve (Days)',
> 13: y_label => 'Number of tickets resolved' );
> ...
> code stack:
> /opt/rt3/share/html/RTx/Statistics/TimeToResolve/Elements/Chart:9
> /opt/rt3/share/html/autohandler:215
> Raw error
>
> And when I look at the raw error link, I get this output:
> Can't locate object method "new" via package "GD::Graph::points" at
> /opt/rt3/share/html/RTx/Statistics/TimeToResolve/Elements/Chart line 9.
>
>
> Trace begun at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Exceptions.pm
> line 129
> HTML::Mason::Exceptions::rethrow_exception('Can\'t locate object method
> "new" via package "GD::Graph::points" at
> /opt/rt3/share/html/RTx/Statistics/TimeToResolve/Elements/Chart line
> 9.^J') called at
> /opt/rt3/share/html/RTx/Statistics/TimeToResolve/Elements/Chart line 9
> HTML::Mason::Commands::__ANON__('marker_size', 1, 'x_labels',
> '0,,2,,,17,,longer', 'data1', '18,2,1,1,1,2,1,2', 'marker_size', 1,
> 'x_labels', '0,,2,,,17,,longer', 'data1', '18,2,1,1,1,2,1,2') called at
> /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Component.pm line 135
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa8
> bec48)', 'marker_size', 1, 'x_labels', '0,,2,,,17,,longer', 'data1',
> '18,2,1,1,1,2,1,2', 'marker_size', 1, 'x_labels', '0,,2,,,17,,longer',
> 'data1', '18,2,1,1,1,2,1,2') called at
> /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 1251
> eval {...} at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line
> 1245
> HTML::Mason::Request::comp(undef, undef, 'marker_size', 1, 'x_labels',
> '0,,2,,,17,,longer', 'data1', '18,2,1,1,1,2,1,2', 'marker_size', 1,
> 'x_labels', '0,,2,,,17,,longer', 'data1', '18,2,1,1,1,2,1,2') called at
> /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 914
> HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HAS
> H(0xa5ab0c4)', 'marker_size', 1, 'x_labels', '0,,2,,,17,,longer',
> 'data1', '18,2,1,1,1,2,1,2') called at /opt/rt3/share/html/autohandler
> line 215
> HTML::Mason::Commands::__ANON__('marker_size', 1, 'x_labels',
> '0,,2,,,17,,longer', 'data1', '18,2,1,1,1,2,1,2') called at
> /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Component.pm line 135
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa8
> 06f34)', 'marker_size', 1, 'x_labels', '0,,2,,,17,,longer', 'data1',
> '18,2,1,1,1,2,1,2') called at
> /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 1246
> eval {...} at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line
> 1245
> HTML::Mason::Request::comp(undef, undef, undef, 'marker_size', 1,
> 'x_labels', '0,,2,,,17,,longer', 'data1', '18,2,1,1,1,2,1,2') called at
> /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 459
> eval {...} at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line
> 459
> eval {...} at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line
> 411
> HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0xa
> 5ab0c4)') called at
> /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/ApacheHandler.pm line 168
> HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheH
> andler=HASH(0xa5ab0c4)') called at
> /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/ApacheHandler.pm line 826
> HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=H
> ASH(0x9da9c20)', 'Apache2::RequestRec=SCALAR(0xa86e6d0)') called at
> /opt/rt3/bin/webmux.pl line 137
> eval {...} at /opt/rt3/bin/webmux.pl line 137
> RT::Mason::handler('Apache2::RequestRec=SCALAR(0xa86e6d0)') called at -e
> line 0
> eval {...} at -e line 0
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
>
> We're hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.html
>
>
More information about the rt-users
mailing list