[Catalyst] Template rendering error under mod_perl

Richard Jones ra.jones at dpw.clara.co.uk
Fri Jun 29 10:47:11 GMT 2007

Having developed my application sufficiently to see it working well so 
far, I though I should configure it to run under mod_perl. I have used 
the TTSite helper to generate the templates. The app runs fine using 
myapp_server.pl, but under mod_perl I get the following:

Couldn't render template "file error - login.tt2: not found"

I have a conventional setup (I think) with MyApp::View::TT config:
    MyApp->path_to( 'root', 'src' ),
    MyApp->path_to( 'root', 'lib' )
  # etc

The Apache mod_perl startup params include /path/to/MyApp/lib

Replacing INCLUDE_PATH with full pathnames ie /full/path/to/root/src and 
/full/path/to/root/lib doesn't help, perhaps suggesting MyApp::View::TT 
is not being found?

Catalyst::Helper::View::TTSite docs state that 'The view module that the 
helper creates is automatically configured to locate these templates.'
Is there anything I have forgoten to do to port the application to 
mod_perl that would explain this error?

Richard Jones 

More information about the Catalyst mailing list