[rt-users] Graph for RTx-Statistics-1.0.8 not showing

Serge Bianda serge.bianda at appian.com
Tue Jun 27 10:58:16 EDT 2006


Here are the steps I took (with the help the community) to resolve this issue on FC4:
1. I veified that libgd-devel and libpng-devel were installed(yum list | grep gd and yum list | grep png)
2. I then installed GD perl module (perl -MCPAN -e'install GD')

Note: You can have GD::Graph perl module installed even if GD perl is not installed. I learned it the hard way.


-----Original Message-----
From: Jason Fenner [mailto:jfenner at vitamix.com]
Sent: Tue 6/27/2006 9:15 AM
To: Serge Bianda
Cc: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] Graph for RTx-Statistics-1.0.8 not showing
 
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