Problem with 3.5.2

I have upgraded to 3.5.2 and I’m having a strange error on the home
page just under “RT at a Glance”. I can’t find any information about
this one after hours and hours of searching. Has anyone seen this?

System error
error: Can’t call method “Content” on an undefined value at /opt/
rt3/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: /opt/rt3/share/html/Elements/MyRT:76
/opt/rt3/share/html/index.html:81
/opt/rt3/share/html/autohandler:248

raw error

Can’t call method “Content” on an undefined value at /opt/rt3/share/
html/Elements/MyRT line 76.

Trace begun at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/
Exceptions.pm line 131
HTML::Mason::Exceptions::rethrow_exception(‘Can’t call method
"Content" on an undefined value at /opt/rt3/share/html/Elements/MyRT
line 76.^J’) called at /opt/rt3/share/html/Elements/MyRT line 76
HTML::Mason::Commands::ANON at /usr/lib/perl5/vendor_perl/5.8.5/
HTML/Mason/Component.pm line 136
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH
(0x9d2ae84)’) called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/
Request.pm line 1074
eval {…}(‘HTML::Mason::Component::FileBased=HASH(0x9d2ae84)’)
called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/Request.pm line
1068
HTML::Mason::Request::comp(undef, undef) called at /opt/rt3/share/
html/index.html line 81
HTML::Mason::Commands::ANON(‘pass’, ‘walkonwater’, ‘user’,
‘bdunn’, ‘pass’, ‘walkonwater’, ‘user’, ‘bdunn’) called at /usr/lib/
perl5/vendor_perl/5.8.5/HTML/Mason/Component.pm line 136
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH
(0x9e0a47c)’, ‘pass’, ‘walkonwater’, ‘user’, ‘bdunn’, ‘pass’,
‘walkonwater’, ‘user’, ‘bdunn’) called at /usr/lib/perl5/vendor_perl/
5.8.5/HTML/Mason/Request.pm line 1074
eval {…}(‘HTML::Mason::Component::FileBased=HASH(0x9e0a47c)’,
‘pass’, ‘walkonwater’, ‘user’, ‘bdunn’, ‘pass’, ‘walkonwater’,
‘user’, ‘bdunn’) called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/
Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, ‘pass’, ‘walkonwater’,
‘user’, ‘bdunn’, ‘pass’, ‘walkonwater’, ‘user’, ‘bdunn’) called at /
usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/Request.pm line 760
HTML::Mason::Request::call_next
(‘HTML::Mason::Request::ApacheHandler=HASH(0x9e0b60c)’, ‘pass’,
‘walkonwater’, ‘user’, ‘bdunn’) called at /opt/rt3/share/html/
autohandler line 248
HTML::Mason::Commands::ANON(‘pass’, ‘walkonwater’, ‘user’,
‘bdunn’) called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/
Component.pm line 136
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH
(0x98a450c)’, ‘pass’, ‘walkonwater’, ‘user’, ‘bdunn’) called at /usr/
lib/perl5/vendor_perl/5.8.5/HTML/Mason/Request.pm line 1069
eval {…}(‘HTML::Mason::Component::FileBased=HASH(0x98a450c)’,
‘pass’, ‘walkonwater’, ‘user’, ‘bdunn’) called at /usr/lib/perl5/
vendor_perl/5.8.5/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, undef, ‘pass’,
‘walkonwater’, ‘user’, ‘bdunn’) called at /usr/lib/perl5/vendor_perl/
5.8.5/HTML/Mason/Request.pm line 338
eval {…}(undef, undef, undef, ‘pass’, ‘walkonwater’, ‘user’,
‘bdunn’) called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/
Request.pm line 338
eval {…}(undef, undef, undef, ‘pass’, ‘walkonwater’, ‘user’,
‘bdunn’) called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/
Request.pm line 297
HTML::Mason::Request::exec(‘HTML::Mason::Request::ApacheHandler=HASH
(0x9e0b60c)’) called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/
ApacheHandler.pm line 134
eval {…}(‘HTML::Mason::Request::ApacheHandler=HASH(0x9e0b60c)’)
called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/
ApacheHandler.pm line 134
HTML::Mason::Request::ApacheHandler::exec
(‘HTML::Mason::Request::ApacheHandler=HASH(0x9e0b60c)’) called at /
usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/ApacheHandler.pm line 827
HTML::Mason::ApacheHandler::handle_request
(‘HTML::Mason::ApacheHandler=HASH(0x91eb30c)’, ‘Apache=SCALAR
(0x9d08744)’) called at /opt/rt3/bin/webmux.pl line 127
eval {…}(‘HTML::Mason::ApacheHandler=HASH(0x91eb30c)’,
‘Apache=SCALAR(0x9d08744)’) called at /opt/rt3/bin/webmux.pl line 127
eval {…}(‘HTML::Mason::ApacheHandler=HASH(0x91eb30c)’,
‘Apache=SCALAR(0x9d08744)’) called at /dev/null line 0

I have upgraded to 3.5.2 and I’m having a strange error on the home
page just under “RT at a Glance”. I can’t find any information about
this one after hours and hours of searching. Has anyone seen this?

It looks like the attributes table hasn’t been populated with the
HompageSettings attribute for each user. Did you run all of the upgrade
scripts? As upgrading section of the README says, running:
/opt/rt3/sbin/rt-setup-database --action insert --datadir etc/upgrade/
…should have taken care of this.

  • Alex

I have upgraded to 3.5.2 and I’m having a strange error on the home
page just under “RT at a Glance”. I can’t find any information about
this one after hours and hours of searching. Has anyone seen this?

It looks like the attributes table hasn’t been populated with the
HompageSettings attribute for each user. Did you run all of the
upgrade
scripts? As upgrading section of the README says, running:
/opt/rt3/sbin/rt-setup-database --action insert --datadir etc/
upgrade/
…should have taken care of this.

  • Alex

I did run everything available to me… BUT, inside this path I only
had one file called “content”:

/tmp/rt-3.5.2/etc/upgrade/3.5.1/

There were no sql files to run. The content file contains this:

@Attributes = (
{ Name => ‘Search - My Tickets’,
Description => ‘[_1] highest priority tickets I own’,
Content =>
{ Format => “’<a href=“WebPath/Ticket/Display.html?
id=id”>id/TITLE:#’, '<a href=”$RT::WebPath/Ticket/
Display.html?id=id">Subject/TITLE:Subject’, Priority,
QueueName, ExtendedStatus",
Query => " Owner = ‘CurrentUser’ AND ( Status = ‘new’
OR Status = ‘open’)",
OrderBy => ‘Priority’,
Order => ‘DESC’ },
},
{ Name => ‘Search - Unowned Tickets’,
Description => ‘[_1] newest unowned tickets’,
Content =>
{ Format => "’<a href=“WebPath/Ticket/Display.html?
id=id”>id/TITLE:#’, ‘<a href=“WebPath/Ticket/
Display.html?id=id”>Subject/TITLE:Subject’, QueueName,
ExtendedStatus, CreatedRelative, '<A HREF=“WebPath/Ticket/
Display.html?Action=Take&id=id”>loc(Take)/TITLE: ’ “,
Query => " Owner = ‘Nobody’ AND ( Status = ‘new’ OR Status
= ‘open’)”,
OrderBy => ‘Created’,
Order => ‘DESC’ },
},
{ Name => ‘HomepageSettings’,
Description => ‘HomepageSettings’,
Content =>
{ ‘body’ =>
[ { type => ‘system’, name => ‘My Tickets’ },
{ type => ‘system’, name => ‘Unowned Tickets’ },
{ type => ‘component’, name => ‘QuickCreate’},
],
‘summary’ =>
[
{ type => ‘component’, name => ‘MyReminders’ },
{ type => ‘component’, name => ‘Quicksearch’ },
{ type => ‘component’, name => ‘RefreshHomepage’ },
]
},
}
);

1;

Nevermind… although I didn’t see this in the docs, I was able to
resolve the problem with this:

/opt/rt3/sbin/rt-setup-database --action insert --datadir etc/upgrade/
3.5.1/

Thanks Alex!On Aug 3, 2005, at 10:02 AM, Billy Dunn wrote:

On Aug 3, 2005, at 9:35 AM, Alex Vandiver wrote:

On Wed, 2005-08-03 at 09:12 -0500, Billy Dunn wrote:

I have upgraded to 3.5.2 and I’m having a strange error on the home
page just under “RT at a Glance”. I can’t find any information
about
this one after hours and hours of searching. Has anyone seen this?

It looks like the attributes table hasn’t been populated with the
HompageSettings attribute for each user. Did you run all of the
upgrade
scripts? As upgrading section of the README says, running:
/opt/rt3/sbin/rt-setup-database --action insert --datadir etc/
upgrade/
…should have taken care of this.

  • Alex

I did run everything available to me… BUT, inside this path I
only had one file called “content”:

/tmp/rt-3.5.2/etc/upgrade/3.5.1/

There were no sql files to run. The content file contains this:


@Attributes = (
{ Name => ‘Search - My Tickets’,
Description => ‘[_1] highest priority tickets I own’,
Content =>
{ Format => “’<a href=“WebPath/Ticket/Display.html?
id=id”>id/TITLE:#’, '<a href=”$RT::WebPath/Ticket/
Display.html?id=id">Subject/TITLE:Subject’, Priority,
QueueName, ExtendedStatus",
Query => " Owner = ‘CurrentUser’ AND ( Status = ‘new’
OR Status = ‘open’)",
OrderBy => ‘Priority’,
Order => ‘DESC’ },
},
{ Name => ‘Search - Unowned Tickets’,
Description => ‘[_1] newest unowned tickets’,
Content =>
{ Format => "’<a href=“WebPath/Ticket/Display.html?
id=id”>id/TITLE:#’, ‘<a href=“WebPath/Ticket/
Display.html?id=id”>Subject/TITLE:Subject’, QueueName,
ExtendedStatus, CreatedRelative, '<A HREF=“WebPath/Ticket/
Display.html?Action=Take&id=id”>loc(Take)/
TITLE: ’ “,
Query => " Owner = ‘Nobody’ AND ( Status = ‘new’ OR
Status = ‘open’)”,
OrderBy => ‘Created’,
Order => ‘DESC’ },
},
{ Name => ‘HomepageSettings’,
Description => ‘HomepageSettings’,
Content =>
{ ‘body’ =>
[ { type => ‘system’, name => ‘My Tickets’ },
{ type => ‘system’, name => ‘Unowned Tickets’ },
{ type => ‘component’, name => ‘QuickCreate’},
],
‘summary’ =>
[
{ type => ‘component’, name => ‘MyReminders’ },
{ type => ‘component’, name => ‘Quicksearch’ },
{ type => ‘component’, name => ‘RefreshHomepage’ },
]
},
}
);

1;


Rt-devel mailing list
Rt-devel@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

I have upgraded to 3.5.2 and I’m having a strange error on the home
page just under “RT at a Glance”. I can’t find any information about
this one after hours and hours of searching. Has anyone seen this?

System error
error: Can’t call method “Content” on an undefined value at /opt/
rt3/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: /opt/rt3/share/html/Elements/MyRT:76
/opt/rt3/share/html/index.html:81
/opt/rt3/share/html/autohandler:248

raw error

Can’t call method “Content” on an undefined value at /opt/rt3/share/
html/Elements/MyRT line 76.

Trace begun at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/
Exceptions.pm line 131
HTML::Mason::Exceptions::rethrow_exception(‘Can’t call method
"Content" on an undefined value at /opt/rt3/share/html/Elements/MyRT
line 76.^J’) called at /opt/rt3/share/html/Elements/MyRT line 76
HTML::Mason::Commands::ANON at /usr/lib/perl5/vendor_perl/5.8.5/
HTML/Mason/Component.pm line 136
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH
(0x9d2ae84)’) called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/
Request.pm line 1074
eval {…}(‘HTML::Mason::Component::FileBased=HASH(0x9d2ae84)’)
called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/Request.pm line
1068
HTML::Mason::Request::comp(undef, undef) called at /opt/rt3/share/
html/index.html line 81
HTML::Mason::Commands::ANON(‘pass’, ‘walkonwater’, ‘user’,
‘bdunn’, ‘pass’, ‘walkonwater’, ‘user’, ‘bdunn’) called at /usr/lib/
perl5/vendor_perl/5.8.5/HTML/Mason/Component.pm line 136
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH
(0x9e0a47c)’, ‘pass’, ‘walkonwater’, ‘user’, ‘bdunn’, ‘pass’,
‘walkonwater’, ‘user’, ‘bdunn’) called at /usr/lib/perl5/vendor_perl/
5.8.5/HTML/Mason/Request.pm line 1074
eval {…}(‘HTML::Mason::Component::FileBased=HASH(0x9e0a47c)’,
‘pass’, ‘walkonwater’, ‘user’, ‘bdunn’, ‘pass’, ‘walkonwater’,
‘user’, ‘bdunn’) called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/
Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, ‘pass’, ‘walkonwater’,
‘user’, ‘bdunn’, ‘pass’, ‘walkonwater’, ‘user’, ‘bdunn’) called at /
usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/Request.pm line 760
HTML::Mason::Request::call_next
(‘HTML::Mason::Request::ApacheHandler=HASH(0x9e0b60c)’, ‘pass’,
‘walkonwater’, ‘user’, ‘bdunn’) called at /opt/rt3/share/html/
autohandler line 248
HTML::Mason::Commands::ANON(‘pass’, ‘walkonwater’, ‘user’,
‘bdunn’) called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/
Component.pm line 136
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH
(0x98a450c)’, ‘pass’, ‘walkonwater’, ‘user’, ‘bdunn’) called at /usr/
lib/perl5/vendor_perl/5.8.5/HTML/Mason/Request.pm line 1069
eval {…}(‘HTML::Mason::Component::FileBased=HASH(0x98a450c)’,
‘pass’, ‘walkonwater’, ‘user’, ‘bdunn’) called at /usr/lib/perl5/
vendor_perl/5.8.5/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, undef, ‘pass’,
‘walkonwater’, ‘user’, ‘bdunn’) called at /usr/lib/perl5/vendor_perl/
5.8.5/HTML/Mason/Request.pm line 338
eval {…}(undef, undef, undef, ‘pass’, ‘walkonwater’, ‘user’,
‘bdunn’) called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/
Request.pm line 338
eval {…}(undef, undef, undef, ‘pass’, ‘walkonwater’, ‘user’,
‘bdunn’) called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/
Request.pm line 297
HTML::Mason::Request::exec(‘HTML::Mason::Request::ApacheHandler=HASH
(0x9e0b60c)’) called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/
ApacheHandler.pm line 134
eval {…}(‘HTML::Mason::Request::ApacheHandler=HASH(0x9e0b60c)’)
called at /usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/
ApacheHandler.pm line 134
HTML::Mason::Request::ApacheHandler::exec
(‘HTML::Mason::Request::ApacheHandler=HASH(0x9e0b60c)’) called at /
usr/lib/perl5/vendor_perl/5.8.5/HTML/Mason/ApacheHandler.pm line 827
HTML::Mason::ApacheHandler::handle_request
(‘HTML::Mason::ApacheHandler=HASH(0x91eb30c)’, ‘Apache=SCALAR
(0x9d08744)’) called at /opt/rt3/bin/webmux.pl line 127
eval {…}(‘HTML::Mason::ApacheHandler=HASH(0x91eb30c)’,
‘Apache=SCALAR(0x9d08744)’) called at /opt/rt3/bin/webmux.pl line 127
eval {…}(‘HTML::Mason::ApacheHandler=HASH(0x91eb30c)’,
‘Apache=SCALAR(0x9d08744)’) called at /dev/null line 0