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

kakimoto at tpg.com.au kakimoto at tpg.com.au
Fri Mar 13 15:53:34 GMT 2009


Hi, everyone,

   I realised that my app's terminal console has been spitting out a
warning as per below each time I make a request to the app. This is be
it to '/' or to a valid controller like 'subscriptions/create',
'subscriptions/update',
'subscriptions/delete', and so forth.


----- 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 -------

Here are my loaded path actions:


----- extract START -------

[debug] Loaded Path actions:
.-------------------------------------+--------------------------------------.
| Path                                | Private                        
     |
+-------------------------------------+--------------------------------------+
| /                                   | /default                       
     |
| /addresses                          | /addresses/index               
     |

    ...

'-------------------------------------+--------------------------------------'


----- extract END -------


I went into myApp::Controller::Root->end.

It now reads,  "sub end : ActionClass('RenderView') {}".

If I removed the whole line and restarted the app and tried to access
any controller, well, nothing will get shown (rendered) on the web
browser AND the warning dissappears. 

Just what am I doing wrong with the call to RenderView?


Thanks!


K. akimoto







More information about the Catalyst mailing list