[Catalyst] Error loading data from schema
Eden Cardim
edencardim at gmail.com
Wed Apr 4 16:11:29 GMT 2012
>>>>> "Kenneth" == Kenneth S Mclane <ksmclane at us.ibm.com> writes:
Kenneth> I am getting the following error: Caught exception in
Kenneth> dbms::Controller::AccountView->list "Can't call method "all" on
Kenneth> an undefined value at
Kenneth> /tmp/catalyst/dbms/script/../lib/dbms/Controller/AccountView.pm
Kenneth> line 7."
Kenneth> this is the referenced sub:
Kenneth> sub list : Local { my ($self, $c) = @_; $c->stash(accounts =>
Kenneth> $c->model('dbms::ACCOUNT_VIEW')->all); $c->stash(template =>
Kenneth> 'accountview/list.tt2'); }
Kenneth> I have seen quite a few posts about this error but no real
Kenneth> explanations of what is causing the issue. I created a view in
Kenneth> the DB containing the data I need to display on the page. The
Kenneth> error is occurring at this line: $c->stash(accounts => $c->
Kenneth> model('dbms::ACCOUNT_VIEW')->all); which I have tried several
Kenneth> different things. If I remove the ->all I get no error and my
Kenneth> header row appears. I cannot find anything that tells me
Kenneth> specifically what this should be composed of. Any pointers to
Kenneth> help figure this out are appreciated.
When the app loads, you should get a list of loaded components, please show us
that list.
--
Eden Cardim Need help with your Catalyst or DBIx::Class project?
Code Monkey http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://edencardim.com http://www.shadowcat.co.uk/servers/
More information about the Catalyst
mailing list