"Can't use an undefined value as a HASH reference at /opt/rt3/share/html/Admin/Users/index.html line 120, line 69."

hi
got RT 3.8.8 instance which was working happily for quite some time now
(although it could be that I didn’t use these particular options), and
today I noticed that when logging as superuser, and going to
configuration-> usetrs, groups, queues or custom fields - i get these
errors:

Can’t use an undefined value as a HASH reference at /opt/rt3/share/html/Admin/Users/index.html line 120, line 69.
Can’t use an undefined value as a HASH reference at /opt/rt3/share/html/Admin/Groups/index.html line 116, line 69.
Can’t use an undefined value as a HASH reference at /opt/rt3/share/html/Admin/Queues/index.html line 114, line 69.
Can’t use an undefined value as a HASH reference at /opt/rt3/share/html/Admin/CustomFields/index.html line 110, line 69.

these errors are showed in browser, and nothing about it got logged (i’m using syslog logger).

Global and Tools configurations looks like working.

This installation is on linux (debian), with postgresql 9.0 backend.

In database query logs I see these queries:

SELECT * FROM Groups WHERE LOWER(Domain) = LOWER(‘SystemInternal’) AND LOWER(Type) = LOWER(‘Privileged’)
SELECT * FROM GroupMembers WHERE GroupId = ‘4’ AND MemberId = ‘12’
SELECT * FROM Users WHERE id = ‘12’
SELECT * FROM Principals WHERE id = ‘12’
SELECT ACL.id, ACL.ObjectType, ACL.ObjectId FROM ACL, Principals, CachedGroupMembers WHERE (ACL.RightName = ‘SuperUser’ OR ACL.RightName = ‘ShowConfigTab’) AND Principals.id = ACL.PrincipalId AND Principals.PrincipalType = ‘Group’ AND Principals.Disabled = 0 AND CachedGroupMembers.GroupId = ACL.PrincipalId AND CachedGroupMembers.GroupId = Principals.id AND CachedGroupMembers.MemberId = 12 AND CachedGroupMembers.Disabled = 0 AND ((ACL.ObjectType = ‘RT::System’ AND ACL.ObjectId = 1) OR (ACL.ObjectType = ‘RT::System’ AND ACL.ObjectId = 1)) LIMIT 1

and all of them return single row.

what could be wrong?

Best regards,

depesz

Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

I’ve seen that error when I was in correctly calling an object ie: $ticket instead of $ticket->id . Have you made any changes to AdminSearchResultFormat in your Site config or Config.

This config value is called in the default unedited of each of the files.
$Format ||= RT->Config->Get(‘AdminSearchResultFormat’)->{‘Groups’};-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of hubert depesz lubaczewski
Sent: Tuesday, March 01, 2011 3:46 AM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] “Can’t use an undefined value as a HASH reference at /opt/rt3/share/html/Admin/Users/index.html line 120, line 69.”

hi
got RT 3.8.8 instance which was working happily for quite some time now
(although it could be that I didn’t use these particular options), and
today I noticed that when logging as superuser, and going to
configuration-> usetrs, groups, queues or custom fields - i get these
errors:

Can’t use an undefined value as a HASH reference at /opt/rt3/share/html/Admin/Users/index.html line 120, line 69.
Can’t use an undefined value as a HASH reference at /opt/rt3/share/html/Admin/Groups/index.html line 116, line 69.
Can’t use an undefined value as a HASH reference at /opt/rt3/share/html/Admin/Queues/index.html line 114, line 69.
Can’t use an undefined value as a HASH reference at /opt/rt3/share/html/Admin/CustomFields/index.html line 110, line 69.

these errors are showed in browser, and nothing about it got logged (i’m using syslog logger).

Global and Tools configurations looks like working.

This installation is on linux (debian), with postgresql 9.0 backend.

In database query logs I see these queries:

SELECT * FROM Groups WHERE LOWER(Domain) = LOWER(‘SystemInternal’) AND LOWER(Type) = LOWER(‘Privileged’)
SELECT * FROM GroupMembers WHERE GroupId = ‘4’ AND MemberId = ‘12’
SELECT * FROM Users WHERE id = ‘12’
SELECT * FROM Principals WHERE id = ‘12’
SELECT ACL.id, ACL.ObjectType, ACL.ObjectId FROM ACL, Principals, CachedGroupMembers WHERE (ACL.RightName = ‘SuperUser’ OR ACL.RightName = ‘ShowConfigTab’) AND Principals.id = ACL.PrincipalId AND Principals.PrincipalType = ‘Group’ AND Principals.Disabled = 0 AND CachedGroupMembers.GroupId = ACL.PrincipalId AND CachedGroupMembers.GroupId = Principals.id AND CachedGroupMembers.MemberId = 12 AND CachedGroupMembers.Disabled = 0 AND ((ACL.ObjectType = ‘RT::System’ AND ACL.ObjectId = 1) OR (ACL.ObjectType = ‘RT::System’ AND ACL.ObjectId = 1)) LIMIT 1

and all of them return single row.

what could be wrong?

Best regards,

depesz

Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

I’ve seen that error when I was in correctly calling an object ie: $ticket instead of $ticket->id . Have you made any changes to AdminSearchResultFormat in your Site config or Config.

This config value is called in the default unedited of each of the files.
$Format ||= RT->Config->Get(‘AdminSearchResultFormat’)->{‘Groups’};

No. At the very least - as far as I know.

14:08:30 root@andy /opt/rt3
=# find etc/ | xargs grep AdminSearchResultFormat

doesn’t return anything.

can I help in any other way to solve the problem?

Best regards,

depesz

Then something wrong with your setup. RT_Config.pm should contain defaults
for this option.

Regards, Ruslan. From phone.

написал:

I’ve seen that error when I was in correctly calling an object ie:
$ticket instead of $ticket->id . Have you made any changes to
AdminSearchResultFormat in your Site config or Config.

Then something wrong with your setup. RT_Config.pm should contain defaults
for this option.

This is config from rather old version of rt moved across versions to
current version.

What can I do now to solve the problem?

Best regards,

depesz

Then something wrong with your setup. RT_Config.pm should contain defaults
for this option.

This is config from rather old version of rt moved across versions to
current version.

What can I do now to solve the problem?

Best regards,

depesz

You need to put your local differences from RT_Config.pm in the
RT_SiteConfig.pm. Then check the new config file to see if there
are any changes that need to be put in your site specific config
file. This check should be part of the upgrade process.

Cheers,
Ken

You need to put your local differences from RT_Config.pm in the
RT_SiteConfig.pm. Then check the new config file to see if there
are any changes that need to be put in your site specific config
file. This check should be part of the upgrade process.

thanks a lot. works now.

Best regards,

depesz

Linkedin: Hubert Lubaczewski - Instructure, Inc. | LinkedIn / blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007