Help! Modules disappeared

Help!

I made a change to a file in /opt/rt3/local/html/Elements and it was
just a wording change … and now, RTIR, RTFM, and Asset Tracker do not
show up. In my error logs, I get a lot of …

[Fri Dec 30 11:15:59 2005] [error] [client 206.80.64.3] FastCGI: server
“/opt/rt3/bin/mason_handler.fcgi” stderr: Use of uninitialized value in
concatenation (.) or string at
/usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Resolver/File.pm line 51.,
referer: http://rtserver/
[Fri Dec 30 11:15:59 2005] [error] [client 206.80.64.3] FastCGI: server
“/opt/rt3/bin/mason_handler.fcgi” stderr: Use of uninitialized value in
length at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Resolver/File.pm
line 52., referer: http://rtserver/

If I try to goto http://rtserver/AssetTracker/index.html I get:

error: Can’t locate object method “Count” via package
“RTx::AssetTracker::Assets” at
/opt/rt3/share/html/AssetTracker/Elements/Tabs line 172.
context:

168: title => loc(‘Query Builder’)};
169: $tabs->{“h”} = { path => “AssetTracker/Search/Edit.html$args”,
170: title => loc(‘Advanced’),
171: separator => 1 };
172: if (defined $session{‘assets’} and $session{‘assets’}->Count) {
173: $tabs->{“i”} = { path =>
“AssetTracker/Search/Results.html$args”,
174: title => loc(‘Show Results’),
175: separator => 1,
176: subtabs => $searchtabs };

code stack: /opt/rt3/share/html/AssetTracker/Elements/Tabs:172
/opt/rt3/share/html/AssetTracker/index.html:4
/opt/rt3/share/html/autohandler:215

Any help is appreciated. The only thing I changed was in my Tabs element
to add a button at the top of tickets.

Thanks,

Dave Kettmann
NetLogic
314-266-4000

Dave Kettmann wrote:

Any help is appreciated. The only thing I changed was in my Tabs element
to add a button at the top of tickets.

Could you post a diff of the changes you made?

The output of ‘diff -u original-file new-file’ would do.

Cheers,
Tom

Unfortunately I don’t. I just added another button. When I noticed
things were ‘broken’ then I took the lines back out. I deleted my Mason
cache, and it was still not working properly.

DaveFrom: Thomas Sibley [mailto:trs@bestpractical.com]
Sent: Friday, December 30, 2005 11:23 AM
To: Dave Kettmann
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Help! Modules disappeared

Dave Kettmann wrote:

Any help is appreciated. The only thing I changed was in my Tabs
element
to add a button at the top of tickets.

Could you post a diff of the changes you made?

The output of ‘diff -u original-file new-file’ would do.

Cheers,
Tom

Dave Kettmann wrote:

Unfortunately I don’t. I just added another button. When I noticed
things were ‘broken’ then I took the lines back out. I deleted my Mason
cache, and it was still not working properly.

Can you replace the Tabs file with the original from whatever version of
RT you’re running?

Tom

Same problem… It doesn’t seem like the problem would be in the Tabs
file, unless the options on the left are determined by that file.

Also it seems weird that if I try to go to the AssetTracker manually, it
errors out. Here is the error if I try to go to RTFM…

error: Can’t locate object method “new” via package
“RT::FM::ArticleCollection” (perhaps you forgot to load
“RT::FM::ArticleCollection”?) at
/opt/rt3/share/html/RTFM/Elements/NewestArticles line 60.
context:

56: <%INIT>
57: my $rows = 10;
58: my $i;
59: my $MyArticles;
60: $MyArticles = new RT::FM::ArticleCollection
($session{‘CurrentUser’});
61: $MyArticles->UnLimit;
62: $MyArticles->RowsPerPage($rows);
63: $MyArticles->OrderBy(FIELD => ‘LastUpdated’, ORDER => ‘DESC’);
64:

code stack: /opt/rt3/share/html/RTFM/Elements/NewestArticles:60
/opt/rt3/share/html/RTFM/index.html:24
/opt/rt3/share/html/autohandler:215
raw error

Hopefully this helps out?

DaveFrom: Thomas Sibley [mailto:trs@bestpractical.com]
Sent: Friday, December 30, 2005 11:41 AM
To: Dave Kettmann
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Help! Modules disappeared

Dave Kettmann wrote:

Unfortunately I don’t. I just added another button. When I noticed
things were ‘broken’ then I took the lines back out. I deleted my
Mason
cache, and it was still not working properly.

Can you replace the Tabs file with the original from whatever version of

RT you’re running?

Tom

The file is used for the menu on the left, yes. When you cleared the
Mason cache, did you also restart Apache/other webserver and your
FastCGI processes? If not, make sure the file is the original, and then
try clearing the cache and restarting.

Since you weren’t having problems before I’m assuming it’s because of
something that was poked when you changed things…

Hope that helps,
Tom

Dave Kettmann wrote: