[Catalyst] Getting strange warning each time a request is made to myApp

kakimoto at tpg.com.au kakimoto at tpg.com.au
Sat Mar 14 13:43:37 GMT 2009


hi there
 Definitely not. 
What I don't understand is that this error has not surfaced until recently.


Really strange.
 Any idea where to trace?



Quoting Greg Matheson <drbean at freeshell.org>:

> On Sat, 14 Mar 2009, kakimoto at tpg.com.au wrote:
> 
> > > > ----- extract START -------
> 
> > > > [warn] Used regexp fallback for
> $c->model('myApp::View::HTML'),
> > > > which
> > > > found 'myApp::View::HTML=HASH(0x8ef7b50)'. Relying on regexp
> > > > fallback
> > > > behavior for component resolution is unreliable and unsafe.
> You
> > > > probably
> > > > meant $c->model('myApp::View::HTML=HASH(0x8ef7b50)') instead
> of
> > > > $c->model{'myApp::View::HTML'}, but if you really wanted to
> > > search,
> > > > pass
> > > > in a regexp as the argument like so:
> > > $c->model(qr/myApp::View::HTML/)
> > > > at
> > > >
> /usr/local/lib/perl5/site_perl/5.8.9/Catalyst/Action/RenderView.pm
> > > > line 56
> > > > [debug] Rendering template "index.tt2"
> > > > [debug] Applying HTML page layout wrappers to index.tt2
> 
> > > > ----- extract END -------
> 
> You're not calling $c->model('Table') instead of 
> $c->model('DB::Table') are you?
> 
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
> 
> 
> 






More information about the Catalyst mailing list