in reply to Re^5: apache + modperl problem
in thread apache + modperl problem
Everything works fine from the command-line, it just crashes when I run through apache.[Wed Apr 01 09:28:54 2009] [crit] (22)Invalid argument: Parent: Failed + to create the child process. [Wed Apr 01 09:28:54 2009] [crit] (OS 6)The handle is invalid. : mast +er_main: create child process failed. Exiting. [Wed Apr 01 09:28:54 2009] [notice] Parent: Forcing termination of chi +ld process 2670888
Here is the corresponding code for Template::Toolkit which crashessub Render { my $proto = shift; my ($params, $data, $template, $base_template_dir) = @_; my $engine = HTML::Template::Expr->new(filter => \&ht_tt2_filter, filename => $base_templat +e_dir.'/'.$template, die_on_bad_params=>0, encoding => ':utf8'); $engine->param($params); $engine->param($data); print $engine->output; }
and are called are called viasub Render { my $proto = shift; my ($params, $data, $template, $base_template_dir) = @_; my $tt = Template->new({INCLUDE_PATH => $base_template_dir, INTERPOLATE => 1}) || croak("$Template::ERROR\n"); $tt->process($template, { params => $params, data => $data } ); }
where $TEMPLATE_ENGINE is the appropriate prototype.$TEMPLATE_ENGINE->Render(@_, $TEMPLATE_DIR);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: apache + modperl problem
by scotbert (Initiate) on Apr 01, 2009 at 11:55 UTC | |
by jdrago_999 (Hermit) on Apr 07, 2009 at 16:06 UTC |