What's strange is it doesn't write any error message to the server log file. It just doesn't go through the Template->new method and nothing returned even without any error message.
And the same subroutine works in the same server for other cgi scripts except this one(with https request to another server). I'm extremely confused. ----- Original Message ----- From: "Harald Joerg" <[EMAIL PROTECTED]> To: "Anya" <[EMAIL PROTECTED]> Cc: <[email protected]> Sent: Tuesday, July 05, 2005 3:43 PM Subject: Re: [Templates] very strange Template->new behave > 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 > > _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
