Subject: | HTTP::Prefork failed to start |
I used the newest Catalyst and Catalyst::Devel version. If you create a
new application with it, and try to start the development server with
HTTP::Prefork as Engine, you get the following error back.
Show quoted text
> Can't use an undefined value as an ARRAY reference at
/home/sidburn/perl510/lib/site_perl/5.10.1/Catalyst/Engine/HTTP/Prefork.
pm line 35.
In this line you do:
Show quoted text> @ARGV = @{ $options->{argv} };
But if i dump $options then i got something like this:
Show quoted text> $VAR1 = {
> 'pidfile' => undef,
> 'fork' => '0',
> 'follow_symlinks' => '0',
> 'background' => '0',
> 'keepalive' => '0'
> };
There "argv" does not exists and the code stops here. To fix this error:
Show quoted text> @ARGV = @{ $options->{argv} || [] };