[Catalyst] Caught exception "Can't use string ("Admin::V::TT") as a HASH ref while "strict refs" in use at /usr/lib/perl5/site_perl/5.8.0/Class/Accessor/Fast.pm line 38."

Srinivasa Mullangi mullangi at rocketmail.com
Mon Jun 6 08:32:08 CEST 2005

My apache conf is:

        <Location /admin>
                SetHandler  perl-script
                PerlHandler BettyMills::Admin

I am using apache  Apache/1.3.29 (Unix) mod_perl/1.29 mod_ssl/2.8.16 OpenSSL/0.9.7d
Here is the code for Admin::V::TT is my view component 

package Admin::V::TT;
use strict;
use base 'Catalyst::View::TT';
use HTML::Entities;
sub new {
        my $self = shift;
        $self->config->{WRAPPER}     = 'template/wrapper';
        $self->config->{COMPILE_DIR} = 'ttc';
        $self->config->{FILTERS}     = {html_entity => \&Admin::V::TT::html_encode_entities},
        return $self->SUPER::new(@_);

sub html_encode_entities {
        return HTML::Entities::encode_entities($_[0], "\200-\377");


I developed this application using HTTP server that comes with Catalyst.

Now I am moving this application to apache/modperl environment and got into this error.

What is going wrong and how to fix it.

Thanks a lot



Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20050605/6b3eef40/attachment.html

More information about the Catalyst mailing list