For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > April 2004 > Can't locate object method error









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Can't locate object method error
John Fisher

2004-04-23, 3:32 pm

I need some help debugging this problem ( unless you know the magic answer):


I am installing a fresh Bugzilla using Template Toolkit and the GD graphics
libraries. ( yes I asked a similar question at the BZ list, too )
I get this error,
plugin error - Can't locate object method "load" via package
" Bugzilla::Template::Plugin::GD::Graph::b
ars" (perhaps you forgot to load
" Bugzilla::Template::Plugin::GD::Graph::b
ars"?)

so I checked to make sure that the bars.pm package is available- I changed
its name, and the error changed to 'can't find in @INC' as expected.
I tried a use statement as suggested in the error message, and got the same
error.
There is no "load" method in bars.pm, so I tried this from within my .cgi
file-
my $xxx = Bugzilla::Template::Plugin::GD::Graph::b
ars->initialise() or die
$template->error;
and I get the same error citing initialise instead of load.
Now, I am stuck.

Perl 5.8.3 on a debian 3.0 linux system

thanks!

--
John Fisher
Znyx Networks
john.fisher@znyx.com


David

2004-04-24, 9:32 am

John Fisher wrote:

>
> I am installing a fresh Bugzilla using Template Toolkit and the GD
> graphics libraries.


where did you install it?

> ( yes I asked a similar question at the BZ list, too )
> I get this error,
> plugin error - Can't locate object method "load" via package
> " Bugzilla::Template::Plugin::GD::Graph::b
ars" (perhaps you forgot to load
> " Bugzilla::Template::Plugin::GD::Graph::b
ars"?)
>
> so I checked to make sure that the bars.pm package is available- I changed
> its name, and the error changed to 'can't find in @INC' as expected.
>


why do you change its name especially after you verified that the module
does exist?

>
> I tried a use statement as suggested in the error message, and got the
> same error.
>


is that after you change its name? try not to change its name and just 'use
....' it.

david
--
s$s*$+/<tgmecJ"ntgR"tgjvqpC"vuwL$;$;=qq$
\x24\x5f\x3d\x72\x65\x76\x65\x72\x73\x65

\x24\x5f\x3b\x73\x2f\x2e\x2f\x63\x68\x72

\x28\x6f\x72\x64\x28\x24\x26\x29\x2d\x32

\x29\x2f\x67\x65\x3b\x70\x72\x69\x6e\x74

\x22\x24\x5f\x5c\x6e\x22\x3b\x3b$;eval$;

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com