[rt-users] Index.html not found
Erik Andrejko
EAndrejko at transwesttel.com
Tue Dec 4 12:07:04 EST 2001
The login screen now works. However when I attempt to log in I get an
error:
Mason error
error in file: /usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm
line 789: Can't call method "SimpleQuery" on an undefined value
context: ...
785: my $self = shift;
786: my $QueryString = shift;
787: my @bind_values = (@_);
788:
789: my $sth = $self->_Handle->SimpleQuery($QueryString, @bind_values);
790:
791: #TODO this only gets the first row. we should check if there are more.
792:
793: eval {
...
component stack: /autohandler
code stack:
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm:720
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record/Cachable.pm:71
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm:740
/opt/rt2/lib/RT/CurrentUser.pm:179
/opt/rt2/WebRT/sessiondata/obj/autohandler:43
error while executing /autohandler:
Can't call method "SimpleQuery" on an undefined value at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm line 789.
HTML::Mason::Interp::__ANON__('Can\'t call method "SimpleQuery" on an
undefined value at /usr/l...') called at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm line 789
DBIx::SearchBuilder::Record::_LoadFromSQL('RT::CurrentUser=HASH(0x8641100)',
'SELECT * FROM Users WHERE id = ?', '') called at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm line 720
DBIx::SearchBuilder::Record::LoadByCols('RT::CurrentUser=HASH(0x8641100)',
'id', '') called at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record/Cachable.pm line 71
DBIx::SearchBuilder::Record::Cachable::LoadByCols('RT::CurrentUser=HASH(0x86
41100)', 'id', '') called at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm line 740
DBIx::SearchBuilder::Record::LoadById('RT::CurrentUser=HASH(0x8641100)', '')
called at /opt/rt2/lib/RT/CurrentUser.pm line 179
RT::CurrentUser::Load('RT::CurrentUser=HASH(0x8641100)', '') called at
/opt/rt2/WebRT/sessiondata/obj/autohandler line 43
HTML::Mason::Commands::__ANON__('pass', '', 'user', '') called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Component.pm line 131
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8640f2
0)', 'pass', '', 'user', '') called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 653
require 0 called at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm
line 653
HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x863ec
34)', 'HASH(0x863eebc)',
'HTML::Mason::Component::FileBased=HASH(0x8640f20)', 'pass', '', 'user', '')
called at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 159
require 0 called at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm
line 159
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x863ec
34)', '/index.html', 'pass', '', 'user', '') called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 914
HTML::Mason::ApacheHandler::handle_request_1('HTML::Mason::ApacheHandler=HAS
H(0x863e514)', 'Apache=SCALAR(0x863e97c)',
'HTML::Mason::Request::ApacheHandler=HASH(0x863ec34)', undef) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 560
require 0 called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 560
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(
0x863e514)', 'Apache=SCALAR(0x863e97c)') called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 1019
HTML::Mason::ApacheHandler::handler('/is/app/rt/index.html',
'Apache=SCALAR(0x863e97c)', 'Apache=SCALAR(0x863e97c)') called at /dev/null
line 0
require 0 called at /dev/null line 0
> -----Original Message-----
> From: Josh Krikke [SMTP:krikke at macatawa.org]
> Sent: Tuesday, December 04, 2001 9:35 AM
> To: Erik Andrejko; 'rt-users at lists.fsck.com'
> Subject: Re: [rt-users] Index.html not found
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> IIRC, Mason doesn't like symbolic links...
>
> On Tuesday 04 December 2001 11:21 am, Erik Andrejko wrote:
> > I am experiencing the following trouble with RT2.0.9 and HTML::Mason
> > 1.0.4.
> >
> > When I attempt to open the WebRT page I receive the error:
> >
> > Not Found
> > The requested URL /is/app/rt/index.html was not found on this server.
> >
> > Apache/1.3.22 Server at wwwi.transwesttel.com Port 80
> >
> > In the error log is the following:
> >
> > [Tue Dec 4 11:13:26 2001] [warn] [Mason] Cannot resolve file to
> > component: /www/wwwi.transwesttel.com/html/is/app/rt/index.html (is file
> > outside component root?)
> >
> > Now I have the following symbolic links:
> >
> > /wwwi -> /www/wwwi.transwesttel.com/html
> > /wwwi/is/app/rt -> /opt/rt2/WebRT/html/
> >
> > and
> >
> > [root at twtlnx HTML-Mason-1.04]# ls -la /wwwi/is/app/rt
> > lrwxrwxrwx 1 root root 20 Nov 29 13:22 /wwwi/is/app/rt
> > -> /opt/rt2/WebRT/html/
> > [root at twtlnx HTML-Mason-1.04]# ls -la /wwwi/is/app/rt/
> > total 14
> > drwxrwxr-x 10 root is 1024 Dec 4 08:32 .
> > drwxr-xr-x 5 root root 1024 Nov 29 12:41 ..
> > drwxr-xr-x 10 root is 1024 Nov 29 12:13 Admin
> > drwxr-xr-x 2 root is 1024 Nov 29 12:13 CVS
> > drwxr-xr-x 3 root is 1024 Nov 29 12:13 Elements
> > drwxr-xr-x 4 root is 1024 Nov 29 12:13 NoAuth
> > drwxr-xr-x 3 root is 1024 Nov 29 12:13 Search
> > drwxr-xr-x 5 root is 1024 Nov 29 12:13 SelfService
> > drwxr-xr-x 5 root is 1024 Nov 29 12:13 Ticket
> > drwxr-xr-x 3 root is 1024 Nov 29 12:13 User
> > -rwxr-xr-x 1 root is 1918 Nov 6 16:06 autohandler
> > -rwxr-xr-x 1 root is 684 Nov 6 16:06 index.html
> > -rw-rw-r-- 1 andrejko andrejko 84 Dec 4 08:32 test.html
> > [root at twtlnx HTML-Mason-1.04]#
> >
> >
> > The Apache configuration looks like:
> >
> > PerlSetVar MasonCompRoot /wwwi
> > PerlSetVar MasonDataDir /opt/rt2/WebRT/sessiondata
> > PerlModule Apache::DBI
> > PerlModule Apache::Registry
> > PerlModule HTML::Mason::ApacheHandler
> > PerlFreshRestart On
> > PerlRequire /opt/rt2/bin/webmux.pl
> >
> > <Location /is/app/rt>
> > SetHandler perl-script
> > PerlHandler HTML::Mason::ApacheHandler
> > Options +ExecCGI +Indexes
> > </Location>
> >
> >
> >
> > Thanks,
> > Erik
> >
> >
> >
> > _______________________________________________
> > rt-users mailing list
> > rt-users at lists.fsck.com
> > http://lists.fsck.com/mailman/listinfo/rt-users
>
> - --
> - ---------------------------------------
> Josh Krikke krikke at macatwa.org
> Systems Administrator
> 76 1/2 E. 8th St
> Holland, MI 49423
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE8DPs2j0GVSWTdldsRAh39AJ9uqskT0d1dkMtA8hDKtF4o0W8kQwCeJKHs
> Q6RczJ7UEb92+ToXxGZsW2s=
> =JVKk
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
More information about the rt-users
mailing list