[rt-users] rt4.0: anonymous hash error on apache startup

Daniel G. Rohan d-rohan at northwestern.edu
Sat May 28 06:15:28 EDT 2011


Hello everyone,

We've recently upgraded to 4.0.0 and whenever we start up our apache (using mod_perl), we get the following errors:

Starting httpd: Odd number of elements in anonymous hash at /opt/rt4/sbin/../lib/RT/Config.pm line 861.
Use of uninitialized value in anonymous hash ({}) at /opt/rt4/sbin/../lib/RT/Config.pm line 861.
Odd number of elements in hash assignment at /opt/rt4/sbin/../lib/RT/Config.pm line 862.
Use of uninitialized value in list assignment at /opt/rt4/sbin/../lib/RT/Config.pm line 862.

This seems to reference this subroutine in /opt/rt4//lib/RT/Config.pm

sub Set {
    my ( $self, $name ) = ( shift, shift );

    my $old = $OPTIONS{$name};
    my $type = $META{$name}->{'Type'} || 'SCALAR';
    if ( $type eq 'ARRAY' ) {
        $OPTIONS{$name} = [@_];
        { no warnings 'once'; no strict 'refs'; @{"RT::$name"} = (@_); }
    } elsif ( $type eq 'HASH' ) {
        $OPTIONS{$name} = {@_};
        { no warnings 'once'; no strict 'refs'; %{"RT::$name"} = (@_); }
    } else {
        $OPTIONS{$name} = shift;
        {no warnings 'once'; no strict 'refs'; ${"RT::$name"} = $OPTIONS{$name}; }
    }
    $META{$name}->{'Type'} = $type;
    return $self->_ReturnValue( $old, $type );
}


Apache starts up fine, and RT seems to be working, but this is concerning to us. Any suggestions or insight into what might be the issue?

Thanks,

Dan Rohan


More information about the rt-users mailing list