Subject: | Can't locate object method "use_ssl" via package "WWW::Bugzilla" |
Hello,
I've got Class-MethodMaker-2.07. When I try to establish connection to
bugzilla with WWW::Bugzilla, I get the following error:
Can't locate object method "use_ssl" via package "WWW::Bugzilla" at
blib/lib/Class/MethodMaker/Engine.pm (autosplit into
blib/lib/auto/Class/MethodMaker/Engine/new.al) line 941, <> line 1.
The attached patch fixes the problem for me.
--
Alexey Tourbin
ALT Linux Team
--- WWW-Bugzilla-0.4/Bugzilla.pm- 2004-03-22 12:22:35 +0000
+++ WWW-Bugzilla-0.4/Bugzilla.pm 2005-06-14 13:48:40 +0000
@@ -207,7 +207,7 @@ sub init {
$self->{mech} = WWW::Mechanize->new();
- $self->{protocol} = $args{use_ssl} ? 'https' : 'http';
+ $self->{protocol} = delete($args{use_ssl}) ? 'https' : 'http';
$self->{server} = $args{server};
$self->_login( delete $args{server}, delete $args{email}, delete $args{password});