[cgiapp] mod_perl/fast_cgi No such runmode

John cgiapp at moe.co.uk
Fri Jan 14 16:55:31 EST 2011


> I've been using CGI::Application with a number of modules and it
> has been working fine in plain CGI mode.  I want the pages loading
> a bit faster, so, have been looking at both FastCGI and mod_perl.
> 
> Some of the main modules I'm using are:
> 
>   CGI::Application::Plugin::AutoRunmode
>   CGI::Application::Plugin::Authentication
>   CGI::Application::Plugin::Session
>   CGI::Application::Plugin::DBH
>   CGI::Application::Plugin::DBIx::Class ':all';
>   CGI::Application::Plugin::TT
> 
> I have tried both FastCGI and mod_perl and both display the same 
> problem.  Simple scripts that basically output a template via TT 
> work fine, however, when I try to authenticate and login I start
> getting the error:
> 
>   No such run mode 'login_okay'
> 
> It appears that I now have a logged in session, but, getting the
> "No such run mode" error.
> 

Sorted this out in the end.

Ended up making a custom callback in my Base.pm package and
moved most of cgiapp_init into the callback and another change
calling $self->SUPER::cgiapp_prerun.

Regards,
John


More information about the cgiapp mailing list