[Handel] Couldn't render template "file error - cart/add: not found"

pierre.beland at prrbl.org pierre.beland at prrbl.org
Sun Aug 20 05:43:29 CEST 2006


On Fri, Aug 04, 2006 at 03:45:50PM -0400, Christopher H. Laco wrote:
> pierre.beland at prrbl.org wrote:
> > On Fri, Aug 04, 2006 at 05:35:10AM -0400, Todd W wrote:
> >> From: <pierre.beland at prrbl.org>
> >>
> >>> 7) In Firefox:
> >>>
> >>>    http://localhost:3000/cart
> >>>
> >>> which results in the following error:
> >>>
> >>>    Couldn't render template "file error - /cart/view.tt: \
> >>>    absolute paths are not allowed (set ABSOLUTE option)"
> >>>
> >>> If I call the add action in the cart namespace
> >>>
> >>>    http://localhost:3000/cart/add
> >>>
> >>> I get an error:
> >>>
> >>>    Couldn't render template "file error - cart/add: not found"
> >>>
> >>> ...
> >>>
> >>> But if (just to see what happens) I modify the 'view' action in
> >>>
> >>>    lib/shop/Controler/Cart.pm
> >>>
> >>> and remove the forward slash  before 'cart' in "/cart/view.tt"
> >>> so it becomes  "cart/view.tt", I can see the cart with the
> >>> product I've added (or deleted).
> >>>
> >>> ...
> >>>
> >>> Handel               0.33
> >>> Catalyst             5.6902
> >>> Catalyst::View::TT   0.22
> >>>
> >> Are you sure you are using 0.33? I submitted a patch a few months back that 
> >> takes care of this.
> >>
> >> Todd W.
> >>
> > 
> > Todd,
> > 
> > Thank you for your reply. I am sure it is version 0.33 as far as it is the version number I get when interrogating Handel:
> > 
> > ]# perl -MHandel -e 'print Handel->VERSION, "\n";'
> > 0.33
> > 
> > The Handel.pm module was commited to the repository at the end of January (although your patch may have been intended for another module which is part of Handel):
> > 
> > ]# head /usr/lib/perl5/site_perl/5.8.7/Handel.pm
> > # $Id: Handel.pm 1094 2006-01-24 00:45:55Z claco $
> > package Handel;
> > use strict;
> > use warnings;
> > use vars qw($VERSION);
> > 
> > $VERSION = '0.33';
> > 
> > I checked out the trunk from the svn repository in mid-may and compiled its content with no problem.
> > 
> > I'll reinstall version 0.33 of the module using CPAN and see what happens.
> > 
> > Thanks again.
> 
> Assuming I didn't just make it all up in my head, the Changelog for 0.33
> includes the patch Todd made.
> 
> Just for giggles, why are you setting the path to root in TT::new,
> instead of sticking with the defaults? I'd suspect that may be the cause
> of this issue.
> 



> _______________________________________________
> Handel mailing list
> Handel at lists.rawmode.org
> http://lists.rawmode.org/cgi-bin/mailman/listinfo/handel

Chris

sorry I couldn't reply earlier.

As I said in my previous reply to Todd, I re-installed 0.33 and, now, it works.

And, as I said in a previous post, setting the path to root was just one of the many configurations I tried.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/handel/attachments/20060819/91adeadf/attachment.pgp 


More information about the Handel mailing list