I had this problem the other day and it was hell to figure out because I
couldn't see the error in front of my face.

 

Your line:

 

$c->response->redirect($c->uri_for($c->controller('WsdSis::Controller::Secti
on')->action_for('list')));

 

Is missing an 's' after "Section".

 

 

- Alan

 

From: Rippl, Steve [mailto:[email protected]] 
Sent: Friday, November 20, 2009 9:50 AM
To: [email protected]
Subject: [Catalyst] Strange warning...

 

Hi,

Catalyst version 5.80011

This line...

$c->response->redirect($c->uri_for($c->controller('WsdSis::Controller::Secti
on')->action_for('list')));

is giving me this warning...

[warn] Used regexp fallback for
$c->controller('WsdSis::Controller::Section'), which found
'WsdSis::Controller::Sections'. Relying on regexp fallback behavior for
component resolution is unreliable and unsafe. You probably meant
$c->controller('WsdSis::Controller::Sections') instead of
$c->controller({'WsdSis::Controller::Section'}), but if you really
wanted to search, pass in a regexp as the argument like so:
$c->controller(qr/WsdSis::Controller::Section/)
at /srv/WsdSis/script/../lib/WsdSis/Controller/Login.pm line 50

But I haven't got $c->controller({'WsdSis::Controller::Section'}) in my
code?

What am I missing?

Thanks,
Steve


--
Steve Rippl
Technology Director
Woodland Public Schools
360 225 9451 x326

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to