<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=771484008-12102006></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT
size=2>I think I am getting crazy here.</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=771484008-12102006></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>I<SPAN class=771484008-12102006> traced it down to
Template::Provider::_fetch_path.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006></SPAN></FONT></FONT></FONT><SPAN
class=771484008-12102006></SPAN><FONT face=Arial><FONT color=#0000ff><FONT
size=2>S<SPAN class=771484008-12102006>ome extra debug statements give this in
the logs:</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006>In apache (user
apache):</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006>[Template::Provider] fetching
search.tt2<BR>[Template::Provider]
_fetch_path(search.tt2)<BR>[Template::Provider] searching path:
/home/marcl/catalyst/posedb/root/src/search.tt2<BR>[Template::Provider] path not
found: /home/marcl/catalyst/posedb/root/src/search.tt2<BR>[Template::Provider]
searching path:
/home/marcl/catalyst/posedb/root/lib/search.tt2<BR>[Template::Provider] path not
found:
/home/marcl/catalyst/posedb/root/lib/search.tt2</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006>... (skipped)</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006>In catalyst test server (user marcl, working in home
directory):</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006>[Template::Provider] fetching
search.tt2<BR>[Template::Provider]
_fetch_path(search.tt2)<BR>[Template::Provider] searching path:
/home/marcl/catalyst/posedb/root/src/search.tt2<BR>[Template::Provider] slot =
ARRAY(0xa101c88)<BR>[Template::Provider] _refresh([ ARRAY(0xa103d8c),
/home/marcl/catalyst/posedb/root/src/search.tt2,
Template::Document=HASH(0xa0f0eb0), 1160464516, <undef>,
1160641995])<BR>[Template::Provider] fetching config/main<BR>...
(skipped)</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006>The relevant code in Template::Provider::_fetch_path
is:</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006>
if ($caching && ($slot = $self->{ LOOKUP }->{ $path }))
{<BR>
# cached entry exists, so refresh slot and extract data<BR>$self->debug("slot
=
$slot");<BR>
($data, $error) =
$self->_refresh($slot);<BR>
$data = $slot->[ DATA
]<BR>
unless
$error;<BR>
last
INCLUDE;<BR>
}<BR> elsif
(-f $path)
{<BR>
$compiled =
$self->_compiled_filename($path)<BR>
if $compext || $compdir;<BR>$self->debug("compiled_filename =
$compiled");</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006>So, it seems that in case of the catalyst server, the
cache is found. In case of apache, the cache slot is not found and the file path
'/home/marcl/catalyst/posedb/root/src/search.tt2' is not found
neither.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006>How the heck is that possible, the file is really there
(it is paranoia, but I actually did a test -f on the command line and it
returned true) !!</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006>Can the expression "-f $path" fail or succeed
depending on the user (apache user versus marcl)
?</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006>regards,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006>Marc </SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=771484008-12102006></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff
size=2></FONT><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial
color=#0000ff size=2></FONT><BR></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> catalyst-bounces@lists.rawmode.org
[mailto:catalyst-bounces@lists.rawmode.org] <B>On Behalf Of </B>Marc
Logghe<BR><B>Sent:</B> Wednesday, October 11, 2006 11:48 AM<BR><B>To:</B>
catalyst@lists.rawmode.org<BR><B>Subject:</B> [Catalyst] problem deploying
with apache: templates not found<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial size=2>Hi all,
</FONT></SPAN></DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial size=2>I tried to deploy
my little test application with apache, basically just like indicated
here:</FONT></SPAN></DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial size=2><A
href="http://www.mail-archive.com/catalyst@lists.rawmode.org/msg01410.html">http://www.mail-archive.com/catalyst@lists.rawmode.org/msg01410.html</A></FONT></SPAN></DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial size=2>Apache starts
without errors but when a request is send for <A
href="http://localhost/pdfjoin">http://localhost/pdfjoin</A>, I get the
catalyst error dump saying it can not find the template.</FONT></SPAN></DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial size=2>Running the very
same application using the test server all works fine.</FONT></SPAN></DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial size=2>The paths for
TTSite are configured as shown in the examples:</FONT></SPAN></DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial
size=2>__PACKAGE__->config({<BR># CATALYST_VAR =>
'Catalyst',<BR> INCLUDE_PATH =>
[<BR> posedb->path_to( 'root',
'src' ),<BR> posedb->path_to(
'root', 'lib' )<BR> ],<BR> PRE_CHOMP
=> 1,<BR>....</FONT></SPAN></DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial size=2>Any clues
?</FONT></SPAN></DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial size=2>Thanks and
regards,</FONT></SPAN></DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial
size=2>Marc</FONT></SPAN></DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=720094409-11102006><FONT face=Arial
size=2></FONT></SPAN> </DIV></BLOCKQUOTE></BODY></HTML>