3.6.0pre error

Just installed 3.6.0pre to test functionality, but got this error when I
login:

System error

error: Can’t call method “Content” on an undefined value at
/site/rt-3.6.0pre/share/html/Elements/MyRT line 76.

context:

72:
73: unless (exists $session{‘my_rt_portlets’}) {
74: my ($d_portlets) =
RT::System->new($session{‘CurrentUser’})->Attributes->Named(‘HomepageSettings’);
75: my $user = $session{‘CurrentUser’}->UserObj;
76: $session{‘my_rt_portlets’} =
$user->Preferences(‘HomepageSettings’, $d_portlets->Content);
77: }
78:
79: my $portlets = $session{‘my_rt_portlets’};
80:

code stack: /site/rt-3.6.0pre/share/html/Elements/MyRT:76
/site/rt-3.6.0pre/share/html/index.html:79
/site/rt-3.6.0pre/share/html/autohandler:247
raw error

Tomas A. P. Olaj, email: tomas.olaj@usit.uio.no, web: folk.uio.no/tomaso
University of Oslo / USIT (Center for Information Technology Services)
System- and Application Management / Applications Management Group

Hm… search Gossamer and found solution in

bdunn at bdunn

Aug 3, 2005, 7:12 AM

Problem with 3.5.2

Tomas A. P. Olaj, email: tomas.olaj@usit.uio.no, web: folk.uio.no/tomaso
University of Oslo / USIT (Center for Information Technology Services)
System- and Application Management / Applications Management Group---------- Forwarded message ----------
Date: Thu, 23 Mar 2006 11:26:40 +0100 (CET)
From: Tomas Olaj tomaso@ulrik.uio.no
Reply-To: Tomas Olaj tomas.olaj@usit.uio.no
To: rt-devel@lists.bestpractical.com
Subject: 3.6.0pre error

Just installed 3.6.0pre to test functionality, but got this error when I login:

System error

error: Can’t call method “Content” on an undefined value at
/site/rt-3.6.0pre/share/html/Elements/MyRT line 76.

context:

72:
73: unless (exists $session{‘my_rt_portlets’}) {
74: my ($d_portlets) =
RT::System->new($session{‘CurrentUser’})->Attributes->Named(‘HomepageSettings’);
75: my $user = $session{‘CurrentUser’}->UserObj;
76: $session{‘my_rt_portlets’} = $user->Preferences(‘HomepageSettings’,
$d_portlets->Content);
77: }
78:
79: my $portlets = $session{‘my_rt_portlets’};
80:

code stack: /site/rt-3.6.0pre/share/html/Elements/MyRT:76
/site/rt-3.6.0pre/share/html/index.html:79
/site/rt-3.6.0pre/share/html/autohandler:247
raw error

Tomas A. P. Olaj, email: tomas.olaj@usit.uio.no, web: folk.uio.no/tomaso
University of Oslo / USIT (Center for Information Technology Services)
System- and Application Management / Applications Management Group

error: Can’t call method “Content” on an undefined value at
/site/rt-3.6.0pre/share/html/Elements/MyRT line 76.

I had the same problem, first login as root. I could go to the other
pages, but RT-AT-A-Glance was giving the above error. I did figure it
out, I just can’t remember what I did to fix it. We use ExternalAuth
here so maybe I just turned that on and all the users were working fine.
I’ll try to rack my brain some more, see if I recall what I did to fix
it. Getting older now, probably should start writing things
down… :-).

context:

72:
73: unless (exists $session{‘my_rt_portlets’}) {
74: my ($d_portlets) =
RT::System->new($session{‘CurrentUser’})->Attributes->Named(‘HomepageSettings’);
75: my $user = $session{‘CurrentUser’}->UserObj;
76: $session{‘my_rt_portlets’} = $user->Preferences(‘HomepageSettings’,
$d_portlets->Content);
77: }
78:
79: my $portlets = $session{‘my_rt_portlets’};
80:

code stack: /site/rt-3.6.0pre/share/html/Elements/MyRT:76
/site/rt-3.6.0pre/share/html/index.html:79
/site/rt-3.6.0pre/share/html/autohandler:247
raw error

Scott T. Hildreth shildret@scotth.emsphone.com

On the marvelous Thu, 23 Mar 2006, Scott T. Hildreth wrote kindly to me …

error: Can’t call method “Content” on an undefined value at
/site/rt-3.6.0pre/share/html/Elements/MyRT line 76.

I had the same problem, first login as root. I could go to the other
pages, but RT-AT-A-Glance was giving the above error. I did figure it
out, I just can’t remember what I did to fix it. We use ExternalAuth
here so maybe I just turned that on and all the users were working fine.
I’ll try to rack my brain some more, see if I recall what I did to fix
it. Getting older now, probably should start writing things
down… :-).

Thanks, after an update in the postgres db, all worked fine. Now, I am
looking at how to fit the css files for our University’s own color
profile. It’s very different than the old version, and webrt.css seems to
be obsolete. But what an improvement this new pre release is when it comes
to user defined customization!

Good work!

Tomas A. P. Olaj, email: tomas.olaj@usit.uio.no, web: folk.uio.no/tomaso
University of Oslo / USIT (Center for Information Technology Services)
System- and Application Management / Applications Management Group