Anya writes:
> I have a strange problem on Template->new() method on Template
> Toolkit in a cgi script.
>
> The program just stops at Template->new() instead of creating a new
> object. Could anybody give me some clues on how to resolve it?
>
> [...]
> print 'before creating Template->new';
> my $tt = Template->new({INTERPOLATE => 1,
> INCLUDE_PATH => ["$root/cgi-bin"]})
> || die "$Template::ERROR\n";
> print 'after creating Template->new';
> [...]
> it stops at my $tt.....; and no error message shows.
Strange indeed since Template->new is pretty straightforward.
Maybe STDERR ends where you didn't find it so far? 'print' goes to
STDOUT, but 'die' writes to STDERR....
Did you look into the server's logfile?
Can you run the CGI program from the command line? If so, you could
venture to trace into the Template creation procedure.
--
Cheers,
haj
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates