FAQ
Hi,

There is runtime error when I enable DUMP_CONFIG in C::V::TT that
prints Template toolkit configuration. The error is:

Couldn't instantiate component "My::V::TT", "Undefined subroutine
&Catalyst::View::TT::Dump called at
/usr/local/share/perl/5.8.8/Catalyst/View/TT.pm line 120." at
script/my_server.pl line 52

Here is very simple patch that solves the problem:

diff -upNr Catalyst-View-TT-0.25.orig/lib/Catalyst/View/TT.pm
Catalyst-View-TT-0.25/lib/Catalyst/View/TT.pm
--- Catalyst-View-TT-0.25.orig/lib/Catalyst/View/TT.pm 2007-02-06
23:00:05.000000000 +0200
+++ Catalyst-View-TT-0.25/lib/Catalyst/View/TT.pm 2007-02-06
23:00:32.000000000 +0200
@@ -117,7 +117,7 @@ sub new {
}

if ( $c->debug && $config->{DUMP_CONFIG} ) {
- $c->log->debug( "TT Config: ", Dump($config) );
+ $c->log->debug( "TT Config: ", Data::Dump::dump($config) );
}
if ( $config->{PROVIDERS} ) {
my @providers = ();


Regards,
Svi

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedFeb 6, '07 at 9:05p
activeFeb 6, '07 at 9:05p
posts1
users1
websitecatalystframework.org
irc#catalyst

1 user in discussion

Svilen Ivanov: 1 post

People

Translate

site design / logo © 2021 Grokbase