System error

error:  Can't call method "get_id" on an undefined value at /usr/local/bricolage/data/burn/stage/oc_1027/smetimes/dhandler.html line 24.
context: 
... 
20:  </%method>
21: 
22:  % foreach my $c (@categories) {
23:  <%perl>
24:  my $category_id = $c->get_id();
25:  my @stories = Bric::Biz::Asset::Business::Story->list ( { element_type_id=>1148, category_id=>$category_id , Order=> 'cover_date', publish_status => 't' , OrderDirection=> 'DESC' , Limit=>10 } );
26:  </%perl>
27:  <table width="90%" border="0" cellspacing="0" cellpadding="0">
28:  <tr>
... 
code stack:  /usr/local/bricolage/data/burn/stage/oc_1027/smetimes/dhandler.html:24
/usr/share/perl5/HTML/Mason/Request.pm:948
/var/cache/mason/obj/2011159162/main/smetimes/dhandler.html.obj:17
/usr/local/bricolage/data/burn/stage/oc_1027/smetimes/autohandler_template.html:176
raw error






























Can't call method "get_id" on an undefined value at /usr/local/bricolage/data/burn/stage/oc_1027/smetimes/dhandler.html line 24.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "get_id" on an undefined value at /usr/local/bricolage/data/burn/stage/oc_1027/smetimes/dhandler.html line 24.^J') called at /usr/local/bricolage/data/burn/stage/oc_1027/smetimes/dhandler.html line 24
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 157
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x5602b61a5420)', 'main') called at /usr/share/perl5/HTML/Mason/Request.pm line 948
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x5602b60a0190)', 'main') called at /var/cache/mason/obj/2011159162/main/smetimes/dhandler.html.obj line 17
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5602b61a5420)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x5602b60a0190)') called at /usr/local/bricolage/data/burn/stage/oc_1027/smetimes/autohandler_template.html line 176
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5602b60a51c0)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1300
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x5602b60a0190)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x5602b60a0190)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x5602ad304ad0)', 'Apache2::RequestRec=SCALAR(0x5602b60a8708)') called at (eval 612) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x5602b60a8708)') called at -e line 0
eval {...} at -e line 0