Can't locate object method "ClausesToSQL"

I just installed rt 2.1.70 onto my debian machine, I’m seeing a very
weird problem…

After installing it, I see the login box. If I enter the wrong
password, it tells me my password is wrong, and to try again. If I
enter the correct password, I get a weird system error:

System error
error:
Can’t locate object method “ClausesToSQL” via package “RT::Tickets” at
/usr/local/rt3/lib/RT/Tickets_Overlay.pm line 1931.

context:

277: }
278:
279: # All errors returned from this routine will be in exception form.
280: local $SIG{‘DIE’} = sub {
281: rethrow_exception( $_[0] );
282: };
283:
284: #
285: # $m is a dynamically scoped global containing this

code stack:
/usr/share/perl5/HTML/Mason/Request.pm:281
/usr/local/rt3/lib/RT/Tickets_Overlay.pm:1931
/usr/local/rt3/lib/RT/Tickets_Overlay.pm:1722
/usr/local/rt3/share/html/Elements/MyTickets:36
/usr/local/rt3/share/html/index.html:32
/usr/local/rt3/share/html/autohandler:162

(I’m happy to send the raw error along if people want it, it’s long)

All my log variables are set to debug, and I don’t see anything in the
syslogs, nor in the logfile, nor in apache’s error logs.

the database is fresh, I’ve tried with both fascgi and modperl, here’s
a snippet of my apache config for modperl:

ServerName localhost DocumentRoot /usr/local/rt3/share/html AddDefaultCharset UTF-8
# mod perl
PerlModule Apache::DBI
PerlRequire /usr/local/rt3/bin/webmux.pl

<Location />
  SetHandler perl-script
  PerlHandler RT::Mason
</Location>

anyone have any ideas? either about the problem, or how to debug it?

seph

       Can't locate object method "ClausesToSQL" via package "RT::Tickets" at 
              /usr/local/rt3/lib/RT/Tickets_Overlay.pm line 1931.

anyone have any ideas? either about the problem, or how to debug it?

What version of Perl?

The error is caused by a require failing, but it shouldn’t be failing,
and you should get a different error.

-R

       Can't locate object method "ClausesToSQL" via package "RT::Tickets" at 
              /usr/local/rt3/lib/RT/Tickets_Overlay.pm line 1931.

anyone have any ideas? either about the problem, or how to debug it?

What version of Perl?

The error is caused by a require failing, but it shouldn’t be failing,
and you should get a different error.

laptop:~# perl --version
This is perl, v5.8.0 built for i386-linux-thread-multi

laptop:~# suidperl --version
This is perl, v5.8.0 built for i386-linux-thread-multi

seems odd for it not to find that though, I can clearly see if defined
in Tickets_Overlay_SQL.p

seph

seems odd for it not to find that though, I can clearly see if defined
in Tickets_Overlay_SQL.p

Right. And Tickets_Overlay_SQL is clearly require’d by
Tickets_Overlay.

Hrm.

-R

       Can't locate object method "ClausesToSQL" via package "RT::Tickets" at 
              /usr/local/rt3/lib/RT/Tickets_Overlay.pm line 1931.

anyone have any ideas? either about the problem, or how to debug it?
The error is caused by a require failing, but it shouldn’t be failing,
and you should get a different error.

seems odd for it not to find that though, I can clearly see if defined
in Tickets_Overlay_SQL.p

Check the permission of html files? I had similar problems before,
and the permission was set to 600, owner was me instead of root:wheel.
Resolved it and everything was fine.

plasma

�e�b�~�ɤQ�U�K��
http://edm-prg.epaper.com.tw/click.php?ad_code=1401
PC home Online �����a�x�G�|���Ĥ@�A�x�W�̤j���J�f����

       Can't locate object method "ClausesToSQL" via package "RT::Tickets" at 
              /usr/local/rt3/lib/RT/Tickets_Overlay.pm line 1931.

anyone have any ideas? either about the problem, or how to debug it?
The error is caused by a require failing, but it shouldn’t be failing,
and you should get a different error.

seems odd for it not to find that though, I can clearly see if defined
in Tickets_Overlay_SQL.p

Check the permission of html files? I had similar problems before,
and the permission was set to 600, owner was me instead of root:wheel.
Resolved it and everything was fine.

seems unlikely. The only files www-data (my apache user) can’t read in the rt tree are:

etc/acl.Oracle
etc/acl.Pg
etc/acl.mysql
etc/initialdata
etc/schema.Pg
etc/schema.SQLite
etc/schema.mysql
etc/RT_SiteConfig.pm-orig
etc/RT_SiteConfig.pm~
share/doc

(note that that’s an emacs save file, not the actual config)

seph

For what it’s worth, there’s a bug in the overlay mechanism that was
masking the fact that seph was erroring out because Regexp::Common was
missing. :wink:

-jesseOn Tue, Feb 11, 2003 at 07:25:08PM -0800, seph wrote:
       Can't locate object method "ClausesToSQL" via package "RT::Tickets" at 
              /usr/local/rt3/lib/RT/Tickets_Overlay.pm line 1931.

anyone have any ideas? either about the problem, or how to debug it?
The error is caused by a require failing, but it shouldn’t be failing,
and you should get a different error.

seems odd for it not to find that though, I can clearly see if defined
in Tickets_Overlay_SQL.p

Check the permission of html files? I had similar problems before,
and the permission was set to 600, owner was me instead of root:wheel.
Resolved it and everything was fine.

seems unlikely. The only files www-data (my apache user) can’t read in the rt tree are:

etc/acl.Oracle
etc/acl.Pg
etc/acl.mysql
etc/initialdata
etc/schema.Pg
etc/schema.SQLite
etc/schema.mysql
etc/RT_SiteConfig.pm-orig
etc/RT_SiteConfig.pm~
share/doc

(note that that’s an emacs save file, not the actual config)

seph


rt-devel mailing list
rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel

�|� Request Tracker... So much more than a help desk — Best Practical Solutions – Trouble Ticketing. Free.