Thread: [htmltmpl] Need help Urgent
Brought to you by:
samtregar
From: Ajay M. <am...@br...> - 2007-02-23 09:19:29
|
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. at /usr/lib/perl5/site_perl/5.8.8/HTML/Template.pm line 1658\n \tHTML::Template::_init_template('HTML::Template=HASH(0x80bafe5c)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Template.pm line 1238\n \tHTML::Template::_init('HTML::Template=HASH(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=SCALAR(0x809da4c8)') called at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/ModPerl/RegistryCooker.pm line 203\n\teval {...} called at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/ModPerl/RegistryCooker.pm line 203\n\tModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x809da57c)') called at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/ModPerl/RegistryCooker.pm line 169\n\tModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(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=SCALAR(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 |
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 > |
From: Sam T. <sa...@tr...> - 2007-02-23 20:37:08
|
On Fri, 23 Feb 2007, Ajay Maurya wrote: > 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. Where is fruit.tmpl located? Where is the script that's trying to access it located? What does you code look like? Are you setting the 'path' option or HTML_TEMPLATE_ROOT? -sam |
From: Ajay M. <am...@br...> - 2007-02-26 05:12:36
|
Hi Sam Thanks fot your reply both file are in same directory i am not setting any variable actually i dont want to set any path. will it not work without setting these variables? Regards Jeet On Fri, 2007-02-23 at 15:36 -0500, Sam Tregar wrote: > On Fri, 23 Feb 2007, Ajay Maurya wrote: > > > 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. > > Where is fruit.tmpl located? Where is the script that's trying to > access it located? What does you code look like? Are you setting the > 'path' option or HTML_TEMPLATE_ROOT? > > -sam > |