[rt-users] new install of rt 4.0.0 -- problem with cookies routine?

Justin Richard velusip at gmail.com
Sun May 22 07:50:15 EDT 2011


Hello list,

Problem:
-------------
* I receive the following error (within html and body tags) when
accessing my new rt installation:
"Can't call method "as_string" on an undefined value at
/opt/rt4/sbin/../lib/RT/Interface/Web.pm line 717."

* Checking line 717:
$ awk 'NR == 717' /opt/rt4/lib/RT/Interface/Web.pm
    $HTML::Mason::Commands::r->err_headers_out->{'Set-Cookie'} =
$cookie->as_string;

Seems odd to me, but not sure how to fix it.



Software used:
------------------
* RT 4.0.0
* CPAN 1.9600
* PERL 5.12.3
* mod_perl/2.0.5 and psgi/plack
* I may try something other than psgi/plack as it's completely new to
me and mod_perl2 seems to use too much memory anyway.
* Apache 2.2.17


RT_SiteConfig.pm:
-----------------------
Set($WebPath, '/rt');
Set($LogToSyslog, 'debug');


Apache virtual host config:
-------------------------------------
<VirtualHost *:80>
    # /rt ######################################################################
    Alias /rt /opt/rt4/share/html
    <Directory /opt/rt4/share/html>
        #Options FollowSymLinks
        Order allow,deny
        Allow from all
    </Directory>

    <Location /rt>
        Order allow,deny
        Allow from all

        AddDefaultCharset UTF-8

        SetHandler perl-script
        PerlResponseHandler Plack::Handler::Apache2
        PerlSetVar psgi_app /opt/rt4/sbin/rt-server
    </Location>

    <Perl>
        use Plack::Handler::Apache2;
        Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
    </Perl>
</VirtualHost>


-j



More information about the rt-users mailing list