..
>>
>> It looks like the template you are loading can't find one of it's
>> included
>> files. I can't be sure, but this might have to do with a change that
>> was made
>> in ModPerl::Registry to make it tread safe. ModPerl::Registry no
>> longer chdir's
>> to the directory that your script resides in when it executes your
>> script (this
>> is different from what mod_cgi CGI script does). Since the perl
>> interpreter is
>> shared between threads, you can't chdir to change the directory,
>> because that
>> would affect all threads.
>>
>> I am guessing that your didn't provide HTML::Template with a path option
>> pointing to your template directory, so it is looking in the current
>> directory
>> for include files, and the current directory is not necesarily the
>> same as the
>> script directory.
>>
>> I would suggest you provide a path => '/path/to/include/files to
>> HTML::Template
>> and see what happens then.
>>
>>
>>
>
> and you are absolutely right !!!
>
> thanks.
>
> of course, now the problem is that all my paths are screwed up... for
> example, I have a stylesheet linked to index.tmpl (relative path)...
> that is no longer being picked up. I don't want to insert absolute
> paths to the templates and linked files (I move the projects around
> between the iBook and the Win2k boxes).
>
> is there something I can do with the modperl::registry to get around
> this behavior?
oh no... I spoke too soon... the problem was not with the path to the
stylesheet (your diagnosis was still correct in solving the initial
problem). But, it seems that moperl::registry is trying to parse and
compile my stylesheet as well. The Apache error.log shows
[Fri May 09 17:23:04 2003] [error] 2996: ModPerl::Registry: syntax error
at C:/h
tdocs/bims/bims.css line 1, near "color:"
syntax error at C:/htdocs/bims/bims.css line 2, near "size :"
syntax error at C:/htdocs/bims/bims.css line 2, near "height:"
syntax error at C:/htdocs/bims/bims.css line 3, near "family :"
syntax error at C:/htdocs/bims/bims.css line 4, near "family :"
syntax error at C:/htdocs/bims/bims.css line 5, near "family :"
syntax error at C:/htdocs/bims/bims.css line 5, near "style :"
syntax error at C:/htdocs/bims/bims.css line 6, near "family :"
syntax error at C:/htdocs/bims/bims.css line 6, near "size :"
syntax error at C:/htdocs/bims/bims.css line 7, near "family :"
C:/htdocs/bims/bims.css has too many errors.
yikes! what to do?
|