System error

error:  Can't use an undefined value as a HASH reference at /var/www/edreform/portals/perl/edref.pl line 310.
context: 
... 
306:  my @links = $self->links("vocabs/$vocab");
307:  my @resources = $self->resources;
308:  my @results = Edref::isect(\@links, \@resources);
309:  for ($order) {
310:  return sort {
311:  lc $self->resource($a)->{title} cmp lc $self->resource($b)->{title}
312:  } @results if /alpha/i;
313:  return sort { $b <=> $a } @results if /time/i;
314:  die 'bad order specified';
... 
code stack:  /var/www/edreform/portals/perl/edref.pl:310
/var/www/edreform/portals/htdocs/base/autohandler:41
/var/www/edreform/portals/htdocs/base/dhandler:42
/var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:907
/var/www/edreform/mason/nccrest/obj/284543216/base/dhandler.obj:17
/var/www/edreform/portals/htdocs/base/template/channel.html:1
/var/www/edreform/portals/htdocs/nccrest/template/shell.html:43
/var/www/edreform/portals/htdocs/base/autohandler:186
raw error






























Can't use an undefined value as a HASH reference at /var/www/edreform/portals/perl/edref.pl line 310.


Trace begun at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t use an undefined value as a HASH reference at /var/www/edreform/portals/perl/edref.pl line 310.^J') called at /var/www/edreform/portals/perl/edref.pl line 310
Edref::Portal::vocab_resources('Edref::Portal=HASH(0xe78cba0)', 'subject/highriskstudents', 'alpha') called at /var/www/edreform/portals/htdocs/base/autohandler line 41
HTML::Mason::Commands::__ANON__('vocab', 'subject/highriskstudents', 'resource', 'SCALAR(0xe85ea90)', 'attribs', 'SCALAR(0xe78e060)') called at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::Subcomponent=HASH(0xdf036c0)', 'vocab', 'subject/highriskstudents', 'resource', 'SCALAR(0xe85ea90)', 'attribs', 'SCALAR(0xe78e060)') called at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1251
eval {...} at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1245
HTML::Mason::Request::comp(undef, undef, undef, 'vocab', 'subject/highriskstudents', 'resource', 'SCALAR(0xe85ea90)', 'attribs', 'SCALAR(0xe78e060)') called at /var/www/edreform/portals/htdocs/base/dhandler line 42
HTML::Mason::Commands::__ANON__ at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 157
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0xdeba2d0)', 'main') called at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 907
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0xe78dd00)', 'main') called at /var/www/edreform/mason/nccrest/obj/284543216/base/dhandler.obj line 17
HTML::Mason::Commands::__ANON__ at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xdeba2d0)') called at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1251
eval {...} at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1245
HTML::Mason::Request::comp(undef, undef) called at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 914
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0xe78dd00)') called at /var/www/edreform/portals/htdocs/base/template/channel.html line 1
HTML::Mason::Commands::__ANON__ at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xdebe7c0)') called at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1251
eval {...} at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1245
HTML::Mason::Request::comp(undef, undef) called at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 914
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0xe78dd00)') called at /var/www/edreform/portals/htdocs/nccrest/template/shell.html line 43
HTML::Mason::Commands::__ANON__ at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xdebeb90)') called at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1251
eval {...} at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1245
HTML::Mason::Request::comp(undef, undef) called at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 914
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0xe78dd00)') called at /var/www/edreform/portals/htdocs/base/autohandler line 186
HTML::Mason::Commands::__ANON__ at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xdf035b0)') called at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1246
eval {...} at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1245
HTML::Mason::Request::comp(undef, undef, undef) called at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 459
eval {...} at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 459
eval {...} at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 411
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0xe78dd00)') called at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0xe78dd00)') called at /var/www/edreform/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 826
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0xdeb1ce0)', 'Apache=SCALAR(0xe4eb7c0)') called at /var/www/edreform/portals/perl/handler.pl line 37
Edref::Mason::handler('Apache=SCALAR(0xe4eb7c0)') called at /dev/null line 0
eval {...} at /dev/null line 0