RT::Interface::Web::QueryBuilder::Tree errors?

Dear List,

Just noticed no e-mails are getting sent out since yesterday
(auto-replies) and we have this error when trying to search tickets:

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

505: if (@current_values) {
506: foreach my $value (@current_values) {
507: my $parent = $value->getParent();
508: my $grandparent = $parent->getParent();
509: if ( !$grandparent->isRoot ) {
510: my $index = $parent->getIndex();
511: $parent->removeChild($value);
512: $grandparent->insertChild( $index, $value );
513: if ( $parent->isLeaf() ) {

code stack: /opt/rt3/share/html/Search/Build.html:509
/opt/rt3/share/html/Search/Build.html:260
/opt/rt3/share/html/autohandler:215

Kind Regards,

Gavin Henry.
Managing Director.

T +44 (0) 1224 279484
M +44 (0) 7930 323266
F +44 (0) 1224 742001
E ghenry@suretecsystems.com

Open Source. Open Solutions™.

http://www.suretecsystems.com/

> Dear List, > > Just noticed no e-mails are getting sent out since yesterday > (auto-replies) and we have this error when trying to search tickets: > > error: Can't locate object method "new" via package > "RT::Interface::Web::QueryBuilder::Tree" at > /opt/rt3/share/html/Search/Build.html line 509. > context: > ... > 505: if (@current_values) { > 506: foreach my $value (@current_values) { > 507: my $parent = $value->getParent(); > 508: my $grandparent = $parent->getParent(); > 509: if ( !$grandparent->isRoot ) { > 510: my $index = $parent->getIndex(); > 511: $parent->removeChild($value); > 512: $grandparent->insertChild( $index, $value ); > 513: if ( $parent->isLeaf() ) { > ... > code stack: /opt/rt3/share/html/Search/Build.html:509 > /opt/rt3/share/html/Search/Build.html:260 > /opt/rt3/share/html/autohandler:215

Rebuilding and installing:

Scalar-List-Utils-1.18

Fixed it.

Was getting “Undefined subroutine &Scalar::Util::weaken called at” in the
logs.

Just for others, in case they search the archives :wink: