QueryBuilder::Tree error

Hello all!

We had RT 3.4.5 working until yesterday, after a
system update. Now we have this error when going to
the Search tickets page:
Can’t locate object method “new” via package
“RT::Interface::Web::QueryBuilder::Tree” at
/opt/rt3/share/html/Search/Build.html line 288.

I searched around this mail list and found several
people with the same problem, apparently something to
do with perl and Tree::Simple module or Scalar::Util
module.
Is there a solution for this?
Many thanks in advance…

my system:
fedora 4
kernel-2.6.16-1.2108_FC4
perl-5.8.6-24

Pedro Ferreira
Grenoble - France

“Everything should be made as simple as possible, but not simpler.” - Einstein

And remember - there are 10 types of people, those who understand binary and those who don’t!

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

Thanks for your help!
I tryed to update Tree::Simple and I was getting an
error so I re-installed perl CPAN, Scalar::Util and
Tree::Simple, this worked without any errors.
So you say that now if I re-install everything it
should work… ok, going to try it, after I’ll let you
know if it worked…

Pedro Ferreira
Grenoble - France

“Everything should be made as simple as possible, but not simpler.” - Einstein

And remember - there are 10 types of people, those who understand binary and those who don’t!

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

Thanks for your help!
I tryed to update Tree::Simple and I was getting an
error so I re-installed perl CPAN, Scalar::Util and
Tree::Simple, this worked without any errors.

Tree::Simple seems to be the key to the problem, but I found that I had to
physically delete it from the /usr/lib/perl… directory tree and then use
CPAN to reinstalling it. I think once you have a version of that module which
doesn’t require weak references, RT will install and run cleanly.

So you say that now if I re-install everything it
should work… ok, going to try it, after I’ll let you
know if it worked…

Good luck!

Scott Courtney | “I don’t mind Microsoft making money. I mind them
scott@4th.com | having a bad operating system.” – Linus Torvalds
http://4th.com/ | (“The Rebel Code,” NY Times, 21 February 1999)
| PGP Public Key at http://4th.com/keys/scott.pubkey

If the error you see is about weaken that is not available in
Scalar::Util then you want do next things:

  1. reinstall Scalar::Util module from sources
  2. check that perl and libperl are compiled with the same params

Also, do you use mod_perl?On 5/16/06, Pedro Ferreira pedro_nf@yahoo.com wrote:

Thanks for your help!
I tryed to update Tree::Simple and I was getting an
error so I re-installed perl CPAN, Scalar::Util and
Tree::Simple, this worked without any errors.
So you say that now if I re-install everything it
should work… ok, going to try it, after I’ll let you
know if it worked…

Pedro Ferreira
Grenoble - France

“Everything should be made as simple as possible, but not simpler.” - Einstein

And remember - there are 10 types of people, those who understand binary and those who don’t!


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@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: Careers — Best Practical Solutions

Best regards, Ruslan.

I found this script to delete perl modules, don’t
remmember where, sorry for the credits of the
programmer…

[root@guincho perl-utils]# more perl-remove-module.pm

-begin of file------------------------------------

#!/usr/bin/perl -w

use ExtUtils::Packlist;
use ExtUtils::Installed;

$ARGV[0] or die “Usage: $0 Module::Name\n”;

my $mod = $ARGV[0];

my $inst = ExtUtils::Installed->new();

foreach my $item (sort($inst->files($mod))) {
         print "removing $item\n";
         unlink $item;
      }

 my $packfile =

$inst->packlist($mod)->packlist_file();
print “removing $packfile\n”;
unlink $packfile;

-end of file---------------------------------------- Scott Courtney scott@4th.com wrote:

On Tuesday 16 May 2006 11:26, Pedro Ferreira wrote:

Thanks for your help!
I tryed to update Tree::Simple and I was getting
an
error so I re-installed perl CPAN, Scalar::Util
and
Tree::Simple, this worked without any errors.

Tree::Simple seems to be the key to the problem, but
I found that I had to
physically delete it from the /usr/lib/perl…
directory tree and then use
CPAN to reinstalling it. I think once you have a
version of that module which
doesn’t require weak references, RT will install and
run cleanly.

So you say that now if I re-install everything it
should work… ok, going to try it, after I’ll let
you
know if it worked…

Good luck!

Scott Courtney | “I don’t mind Microsoft
making money. I mind them
scott@4th.com | having a bad operating
system.” – Linus Torvalds
http://4th.com/ | (“The Rebel Code,” NY
Times, 21 February 1999)
| PGP Public Key at
http://4th.com/keys/scott.pubkey

Pedro Ferreira
Grenoble - France

“Everything should be made as simple as possible, but not simpler.” - Einstein

And remember - there are 10 types of people, those who understand binary and those who don’t!

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

yes, I use mod_perl
I installed perl and libperl from rpm’s so I hope they
are compiled with same params… :wink:

If the error you see is about weaken that is not
available in
Scalar::Util then you want do next things:

  1. reinstall Scalar::Util module from sources
  2. check that perl and libperl are compiled with the
    same params

Also, do you use mod_perl?

Thanks for your help!
I tryed to update Tree::Simple and I was getting
an
error so I re-installed perl CPAN, Scalar::Util
and
Tree::Simple, this worked without any errors.
So you say that now if I re-install everything it
should work… ok, going to try it, after I’ll let
you
know if it worked…

Pedro Ferreira
Grenoble - France

“Everything should be made as simple as possible,
but not simpler.” - Einstein

And remember - there are 10 types of people, those
who understand binary and those who don’t!


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@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:
Careers — Best Practical Solutions


Best regards, Ruslan.

Pedro Ferreira
Grenoble - France

“Everything should be made as simple as possible, but not simpler.” - Einstein

And remember - there are 10 types of people, those who understand binary and those who don’t!

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

no way, it doesn’t work!!!
I removed Tree::Simple and Scalar::Util
I re-installed it using perl CPAN

I always get the error:

Can’t locate object method “new” via package
“RT::Interface::Web::QueryBuilder::Tree” at
/opt/rt3/share/html/Search/Build.html line 288.

and

Undefined subroutine &Scalar::Util::weaken called at
/opt/rt3/lib/RT/Action/Generic.pm line 108.

The first error is in Tickets and the second one is in
Tools…— Scott Courtney scott@4th.com wrote:

On Tuesday 16 May 2006 11:26, Pedro Ferreira wrote:

Thanks for your help!
I tryed to update Tree::Simple and I was getting
an
error so I re-installed perl CPAN, Scalar::Util
and
Tree::Simple, this worked without any errors.

Tree::Simple seems to be the key to the problem, but
I found that I had to
physically delete it from the /usr/lib/perl…
directory tree and then use
CPAN to reinstalling it. I think once you have a
version of that module which
doesn’t require weak references, RT will install and
run cleanly.

So you say that now if I re-install everything it
should work… ok, going to try it, after I’ll let
you
know if it worked…

Good luck!

Scott Courtney | “I don’t mind Microsoft
making money. I mind them
scott@4th.com | having a bad operating
system.” – Linus Torvalds
http://4th.com/ | (“The Rebel Code,” NY
Times, 21 February 1999)
| PGP Public Key at
http://4th.com/keys/scott.pubkey

Pedro Ferreira
Grenoble - France

“Everything should be made as simple as possible, but not simpler.” - Einstein

And remember - there are 10 types of people, those who understand binary and those who don’t!

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

no way, it doesn’t work!!!
I removed Tree::Simple and Scalar::Util
I re-installed it using perl CPAN

I always get the error:

Can’t locate object method “new” via package
“RT::Interface::Web::QueryBuilder::Tree” at
/opt/rt3/share/html/Search/Build.html line 288.

and

Undefined subroutine &Scalar::Util::weaken called at
/opt/rt3/lib/RT/Action/Generic.pm line 108.

Did you remember to rebuild mod_perl?

Scott

Scott Courtney | “I don’t mind Microsoft making money. I mind them
scott@4th.com | having a bad operating system.” – Linus Torvalds
http://4th.com/ | (“The Rebel Code,” NY Times, 21 February 1999)
| PGP Public Key at http://4th.com/keys/scott.pubkey

I installed mod_perl using yum (automaticaly gets the
rpm package from a list of mirrors) and I’m not in the
mood to recompile it…

If someone from RT is ‘hearing’ me, don’t you have any
plans to remove this problem from your code, I guess
it will not be too difficult, replace a couple of
functions to something compatible with the latest
version…? I’m not a perl expert so I can’t help
here… but we are evaluating RT to start using it and
this problem is a major drawback…— Scott Courtney scott@4th.com wrote:

On Wednesday 17 May 2006 03:53, Pedro Ferreira wrote:

no way, it doesn’t work!!!
I removed Tree::Simple and Scalar::Util
I re-installed it using perl CPAN

I always get the error:

Can’t locate object method “new” via package
“RT::Interface::Web::QueryBuilder::Tree” at
/opt/rt3/share/html/Search/Build.html line 288.

and

Undefined subroutine &Scalar::Util::weaken called
at
/opt/rt3/lib/RT/Action/Generic.pm line 108.

Did you remember to rebuild mod_perl?

Scott

Scott Courtney | “I don’t mind Microsoft
making money. I mind them
scott@4th.com | having a bad operating
system.” – Linus Torvalds
http://4th.com/ | (“The Rebel Code,” NY
Times, 21 February 1999)
| PGP Public Key at
http://4th.com/keys/scott.pubkey

Pedro Ferreira
Grenoble - France

“Everything should be made as simple as possible, but not simpler.” - Einstein

And remember - there are 10 types of people, those who understand binary and those who don’t!

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

It’s not problem in RT code. it’s problem of your distro. We couldn’t
do anything from RT code to fix this.

Use FastCGI or install perl/mod_perl from SRPMs.On 5/19/06, Pedro Ferreira pedro_nf@yahoo.com wrote:

I installed mod_perl using yum (automaticaly gets the
rpm package from a list of mirrors) and I’m not in the
mood to recompile it…

If someone from RT is ‘hearing’ me, don’t you have any
plans to remove this problem from your code, I guess
it will not be too difficult, replace a couple of
functions to something compatible with the latest
version…? I’m not a perl expert so I can’t help
here… but we are evaluating RT to start using it and
this problem is a major drawback…

— Scott Courtney scott@4th.com wrote:

On Wednesday 17 May 2006 03:53, Pedro Ferreira wrote:

no way, it doesn’t work!!!
I removed Tree::Simple and Scalar::Util
I re-installed it using perl CPAN

I always get the error:

Can’t locate object method “new” via package
“RT::Interface::Web::QueryBuilder::Tree” at
/opt/rt3/share/html/Search/Build.html line 288.

and

Undefined subroutine &Scalar::Util::weaken called
at
/opt/rt3/lib/RT/Action/Generic.pm line 108.

Did you remember to rebuild mod_perl?

Scott


Scott Courtney | “I don’t mind Microsoft
making money. I mind them
scott@4th.com | having a bad operating
system.” – Linus Torvalds
http://4th.com/ | (“The Rebel Code,” NY
Times, 21 February 1999)
| PGP Public Key at
http://4th.com/keys/scott.pubkey

Pedro Ferreira
Grenoble - France

“Everything should be made as simple as possible, but not simpler.” - Einstein

And remember - there are 10 types of people, those who understand binary and those who don’t!


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@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: Careers — Best Practical Solutions

Best regards, Ruslan.

humm… ok, going to try to re-install mod_perl from
source code…

It’s not problem in RT code. it’s problem of your
distro. We couldn’t
do anything from RT code to fix this.

Use FastCGI or install perl/mod_perl from SRPMs.

I installed mod_perl using yum (automaticaly gets
the
rpm package from a list of mirrors) and I’m not in
the
mood to recompile it…

If someone from RT is ‘hearing’ me, don’t you have
any
plans to remove this problem from your code, I
guess
it will not be too difficult, replace a couple of
functions to something compatible with the latest
version…? I’m not a perl expert so I can’t help
here… but we are evaluating RT to start using it
and
this problem is a major drawback…

no way, it doesn’t work!!!
I removed Tree::Simple and Scalar::Util
I re-installed it using perl CPAN

I always get the error:

Can’t locate object method “new” via package
“RT::Interface::Web::QueryBuilder::Tree” at
/opt/rt3/share/html/Search/Build.html line

and

Undefined subroutine &Scalar::Util::weaken
called
at
/opt/rt3/lib/RT/Action/Generic.pm line 108.

Did you remember to rebuild mod_perl?

Scott

Scott Courtney | “I don’t mind Microsoft
making money. I mind them
scott@4th.com | having a bad operating
system.” – Linus Torvalds
http://4th.com/ | (“The Rebel Code,” NY
Times, 21 February 1999)
| PGP Public Key at
http://4th.com/keys/scott.pubkey

Pedro Ferreira
Grenoble - France

“Everything should be made as simple as possible,
but not simpler.” - Einstein

And remember - there are 10 types of people, those
who understand binary and those who don’t!


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@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:
Careers — Best Practical Solutions


Best regards, Ruslan.

Pedro Ferreira
Grenoble - France

“Everything should be made as simple as possible, but not simpler.” - Einstein

And remember - there are 10 types of people, those who understand binary and those who don’t!

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

do you believe in miracles?
on friday I re-installed Tree::Simple and
Scalar::Util, I re-started the apache server but still
the same error… this morning, without a reboot or a
apache restart RT is working fine!
I guess there must be some temporary buffer for perl
web transactions that takes a while to reset…?!?
Well, anyway now it looks ok and working!
Thanks for all your help!

humm… ok, going to try to re-install mod_perl from
source code…

It’s not problem in RT code. it’s problem of your
distro. We couldn’t
do anything from RT code to fix this.

Use FastCGI or install perl/mod_perl from SRPMs.

I installed mod_perl using yum (automaticaly
gets
the
rpm package from a list of mirrors) and I’m not
in
the
mood to recompile it…

If someone from RT is ‘hearing’ me, don’t you
have
any
plans to remove this problem from your code, I
guess
it will not be too difficult, replace a couple
of
functions to something compatible with the
latest
version…? I’m not a perl expert so I can’t
help
here… but we are evaluating RT to start using
it
and
this problem is a major drawback…

no way, it doesn’t work!!!
I removed Tree::Simple and Scalar::Util
I re-installed it using perl CPAN

I always get the error:

Can’t locate object method “new” via package
“RT::Interface::Web::QueryBuilder::Tree” at
/opt/rt3/share/html/Search/Build.html line

and

Undefined subroutine &Scalar::Util::weaken
called
at
/opt/rt3/lib/RT/Action/Generic.pm line 108.

Did you remember to rebuild mod_perl?

Scott

Scott Courtney | “I don’t mind
Microsoft
making money. I mind them
scott@4th.com | having a bad
operating
system.” – Linus Torvalds
http://4th.com/ | (“The Rebel Code,” NY
Times, 21 February 1999)
| PGP Public Key at
http://4th.com/keys/scott.pubkey

Pedro Ferreira
Grenoble - France

“Everything should be made as simple as
possible,
but not simpler.” - Einstein

And remember - there are 10 types of people,
those
who understand binary and those who don’t!


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@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:
Careers — Best Practical Solutions


Best regards, Ruslan.

Pedro Ferreira
Grenoble - France

“Everything should be made as simple as possible,
but not simpler.” - Einstein

And remember - there are 10 types of people, those
who understand binary and those who don’t!


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@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:
Careers — Best Practical Solutions

Pedro Ferreira
Grenoble - France

“Everything should be made as simple as possible, but not simpler.” - Einstein

And remember - there are 10 types of people, those who understand binary and those who don’t!

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around