Jeff Peng a écrit :
Hello,
The first,I would suggest you take a look at apache's error_log,you
could find something wrong with your scripts or config there.
From: sfantar <[EMAIL PROTECTED]>
To: beginners-cgi@perl.org, beginners@perl.org
Subject: Problems with HTML::Template
Date: Tue, 20 Jun 2006 09:22:00 +0200
Hi there,
I am starting using HTML::Template modules and I wrote a script with
the first example within the doc.
I am not able to see the results of my CGI from my browser. It
displayed error 500 Internal Server Error.
I gave the correct rights to my script to make it executable.
In the @INC, there is no problem. When I run perl -e 'use
HTML::Template', there is no error in the output.
When I launch my script from the command line, it's ok. I can see the
results.
I don't know where the problem is.
Thanks for your help.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
In the apache's error log, here is what's written :
[error] HTML::Template->new() : Cannot open included file test.tmpl :
file not found. at
/usr/local/lib/perl5/site_perl/5.8.8//HTML/Template.pm line
1632\n\tHTML::Template::_init_template('HTML::Template=HASH(0x838ee78)')
called at /usr/local/lib/perl5/site_perl/5.8.8//HTML/Template.pm line
1205\n\tHTML::Template::_init('HTML::Template=HASH(0x838ee78)') called
at /usr/local/lib/perl5/site_perl/5.8.8//HTML/Template.pm line
1099\n\tHTML::Template::new('HTML::Template', 'filename', 'test.tmpl')
called at /var/www/perl/template.pl line
8\n\tModPerl::ROOT::ModPerl::Registry::var_www_perl_template_2epl::handler('Apache2::RequestRec=SCALAR(0x819f95c)')
called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 203\n\teval
{...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line
203\n\tModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x819fa10)')
called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line
169\n\tModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x819fa10)')
called at /usr/lib/perl5/ModPerl/Registry.pm line
30\n\tModPerl::Registry::handler('ModPerl::Registry',
'Apache2::RequestRec=SCALAR(0x819f95c)') called at -e line 0\n\teval
{...} called at -e line 0\n
I was wondering if there was not an error with the INC variable within
the server. To sump up, when I run the cgi from the browser, does it the
server find the module HTML::Template?
What do you think?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>