I just downloaded TT 2.04 to upgrade from my TT 2.00. I'm running on windows2k with a 
perl 5.6.0 build and have just started getting
this error on a script that was working before the upgrade:
---------------------------------------
Uncaught exception from user code:
        file error - cache failed to write wrapper.tc: invalid filename:
f:/clients/towngreens/site/bin/data/cache/templates/f/clients/towngreens/site/bin/data/templates/html/exhibits/wrapper.tc
 at
c:/Perl/site/lib/Template/Context.pm line 499
        Template::Context::throw('Template::Context=HASH(0x21baba8)', 'file', 'cache 
failed to write wrapper.tc: invalid filename:
f:/clients/t...') called at c:/Perl/site/lib/Template/Context.pm line 134
        Template::Context::template('Template::Context=HASH(0x21baba8)', 
'html/exhibits/wrapper.t') called at
c:/Perl/site/lib/Template/Service.pm line 67
        eval {...} called at c:/Perl/site/lib/Template/Service.pm line 67
        Template::Service::process('Template::Service=HASH(0x1a59d38)', 
'html/exhibits/wrapper.t', 'HASH(0x280ab20)') called at
c:/Perl/site/lib/Template.pm line 59
        Template::process('Template=HASH(0x1a59bac)', 'html/exhibits/wrapper.t', 
'HASH(0x280ab20)', 'SCALAR(0x287e14c)') called at
f:/clients/towngreens/site/bin/lib//I18N/Template.pm line 99
        I18N::Template::process('I18N::Template=HASH(0x17e52a0)', 
'html/exhibits/wrapper.t', 'HASH(0x280ab20)', 'SCALAR(0x287e14c)') called
at f:/clients/towngreens/site/bin/lib//WWW/Apps/Exhibit.pm line 86
        WWW::Apps::Exhibit::show_page('WWW::Apps::Exhibit=HASH(0x17ef114)') called at 
c:/Perl/site/lib/CGI/Application.pm line 125
        CGI::Application::run('WWW::Apps::Exhibit=HASH(0x17ef114)') called at 
f:\clients\TOWNGR~1\site\www\exhibits\index.cgi line 28
---------------------------------------

The important line seems to be that first one: an invalid filename warning.  But 
although the directory structure is rediculously
long, I do not see anything actually awry with

f:/clients/towngreens/site/bin/data/cache/templates/f/clients/towngreens/site/bin/data/templates/html/exhibits/wrapper.tc

as a file name.  Am I hitting some directory tree-depth limit on windows?



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Stuart
Johnston
Sent: Sunday, July 15, 2001 04:45 AM
To: [EMAIL PROTECTED]
Subject: [Templates] Help writing docs for templates


I am designing a web-based system using the Template Toolkit and I'm
having trouble coming up with a good way to explain to the user how to
write template files to interact with my system, describing file names,
variables and so forth.

Maybe you have some advice or could point me to some examples.


Thanks,

Stuart Johnston
http://bookex.sourceforge.net


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates



Reply via email to