System error

error:  Can't call method "category" on an undefined value at /home/sites/pghinsp/htdocs/comp/webcasts/display.mc line 92.
context: 
... 
88:  use List::Group qw[group];
89:  use HTML::Table;
90:  my ($id) = $m->dhandler_arg =~ /(\d+)/;
91:  my $media = HV::CMS::Media->retrieve($id);
92:  my @info = ('<strong>Category</strong>',$media->category->title);
93:  foreach ( sort qw[author church town contact date speed] ) {
94:  next if $_ eq 'speed' and $media->$_ eq 'Any';
95:  next if $_ eq 'date' and $media->$_ eq '0000-00-00';
96:  push @info, join(ucfirst($_),'<strong>','</strong>'), ($_ eq 'date' ? $media->$_->strftime("%B %d, %Y") : $media->$_) if $media->$_;
... 
code stack:  /home/sites/pghinsp/htdocs/comp/webcasts/display.mc:92
/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:910
/home/sites/pghinsp/mason/obj/1163448460/comp/webcasts/display.mc.obj:31
/home/sites/pghinsp/htdocs/dhandler:1
/home/sites/pghinsp/htdocs/autohandler:53
raw error






























Can't call method "category" on an undefined value at /home/sites/pghinsp/htdocs/comp/webcasts/display.mc line 92.


Trace begun at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "category" on an undefined value at /home/sites/pghinsp/htdocs/comp/webcasts/display.mc line 92.^J') called at /home/sites/pghinsp/htdocs/comp/webcasts/display.mc line 92
HTML::Mason::Commands::__ANON__ at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 146
HTML::Mason::Component::dynamic_subs_init('HTML::Mason::Component::FileBased=HASH(0x944edbc)') called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 910
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x9334728)', 'main') called at /home/sites/pghinsp/mason/obj/1163448460/comp/webcasts/display.mc.obj line 31
HTML::Mason::Commands::__ANON__ at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x944edbc)') called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1262
eval {...} at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1252
HTML::Mason::Request::comp(undef, undef) called at /home/sites/pghinsp/htdocs/dhandler line 1
HTML::Mason::Commands::__ANON__ at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9241f0c)') called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1257
eval {...} at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1252
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 921
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x9334728)') called at /home/sites/pghinsp/htdocs/autohandler line 53
HTML::Mason::Commands::__ANON__ at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x92b296c)') called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1257
eval {...} at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1252
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 466
eval {...} at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 466
eval {...} at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 418
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9334728)') called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9334728)') called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 826
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x9241b88)', 'Apache=SCALAR(0x9242560)') called at (eval 35) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache=SCALAR(0x9242560)') called at /dev/null line 0
eval {...} at /dev/null line 0