Re: [htmltmpl] Need help Urgent
Brought to you by:
samtregar
From: Matias A. G. <ma...@ni...> - 2007-02-23 11:11:02
|
Hello Ajay On 2/23/07, Ajay Maurya <am...@br...> wrote: > > Hi > > I have installed mod_perl and apache I am getting error message below > > [Fri Feb 23 11:21:45 2007] [error] HTML::Template->new() : Cannot open > included file fruit.tmpl : file not found. I would use a relative path, it is a little uncetain which will be the Apache CWD, in order tu use relative path to it. You can store a base path in a configuration file or in the Apache config (using $r->dir_config()) and the construct the template path before each call to HTML::Template mat=EDas --=20 http://confronte.com Compar=E1 y compr=E1 mejor at /usr/lib/perl5/site_perl/5.8.8/HTML/Template.pm line 1658\n > \tHTML::Template::_init_template('HTML::Template=3DHASH(0x80bafe5c)') > called at /usr/lib/perl5/site_perl/5.8.8/HTML/Template.pm line 1238\n > \tHTML::Template::_init('HTML::Template=3DHASH(0x80bafe5c)') called > at /usr/lib/perl5/site_perl/5.8.8/HTML/Template.pm line 1124\n > \tHTML::Template::new('HTML::Template', 'filename', 'fruit.tmpl') called > at /var/www/html/perl/fruit.pl line 12\n > \tModPerl::ROOT::ModPerl::Registry::var_www_html_perl_fruit_2epl::handler= ('Apache2::RequestRec=3DSCALAR(0x809da4c8)') > called at > /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/ModPerl/Registry= Cooker.pm > line 203\n\teval {...} called at > /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/ModPerl/Registry= Cooker.pm > line > 203\n\tModPerl::RegistryCooker::run('ModPerl::Registry=3DHASH(0x809da57c)= ') > called at > /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/ModPerl/Registry= Cooker.pm > line > 169\n\tModPerl::RegistryCooker::default_handler('ModPerl::Registry=3DHASH= (0x809da57c)') > called at > /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/ModPerl/Registry= .pm > line 30\n\tModPerl::Registry::handler('ModPerl::Registry', > 'Apache2::RequestRec=3DSCALAR(0x809da4c8)') called at -e line 0\n\teval {= ...} > called at -e line 0\n > > > when i use absolute path for fruit.tmpl file then only it works and when > i use relative path i does not work . Can anyone help me out > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Html-template-users mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/html-template-users > |