System error

error:  Can't call method "getChildNodes" on an undefined value at /home/jan/htdocs/news.html line 48.
context: 
... 
44:  my $date1 = "$ARGS{year}/01/01";
45:  my $date2 = "$ARGS{year}/12/31/";
46:  $news = $database->table('news')->getChildNodes({where=>'archived is true and date between ? and ?', order=>'date desc'},[$date1, $date2]);
47:  } else {
48:  $news = $database->table('news')->getChildNodes({where=>'archived is false', order=>'date desc'});
49:  }
50:  </%init>
51: 
code stack:  /home/jan/htdocs/news.html:48
/home/jan/htdocs/autohandler:20
raw error






























Can't call method "getChildNodes" on an undefined value at /home/jan/htdocs/news.html line 48.


Trace begun at /home/dev/clue/share/perl/5.8.4/HTML/Mason/Exceptions.pm line 131
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "getChildNodes" on an undefined value at /home/jan/htdocs/news.html line 48.^J') called at /home/jan/htdocs/news.html line 48
HTML::Mason::Commands::__ANON__ at /home/dev/clue/share/perl/5.8.4/HTML/Mason/Component.pm line 136
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9e9fa8c)') called at /home/dev/clue/share/perl/5.8.4/HTML/Mason/Request.pm line 1069
eval {...} at /home/dev/clue/share/perl/5.8.4/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef) called at /home/dev/clue/share/perl/5.8.4/HTML/Mason/Request.pm line 760
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x9e7d044)') called at /home/jan/htdocs/autohandler line 20
HTML::Mason::Commands::__ANON__ at /home/dev/clue/share/perl/5.8.4/HTML/Mason/Component.pm line 136
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x99a45b4)') called at /home/dev/clue/share/perl/5.8.4/HTML/Mason/Request.pm line 1069
eval {...} at /home/dev/clue/share/perl/5.8.4/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, undef) called at /home/dev/clue/share/perl/5.8.4/HTML/Mason/Request.pm line 338
eval {...} at /home/dev/clue/share/perl/5.8.4/HTML/Mason/Request.pm line 338
eval {...} at /home/dev/clue/share/perl/5.8.4/HTML/Mason/Request.pm line 297
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9e7d044)') called at /home/dev/clue/share/perl/5.8.4/HTML/Mason/ApacheHandler.pm line 134
eval {...} at /home/dev/clue/share/perl/5.8.4/HTML/Mason/ApacheHandler.pm line 134
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9e7d044)') called at /home/dev/clue/lib/perl5/ClueInc/SiteConfig.pm line 174
ClueInc::SiteConfig::handle_request('ClueInc::SiteConfig=HASH(0x99b2a54)', 'Apache=SCALAR(0x9fbe558)') called at /home/dev/clue/lib/perl5/SiteConfig.pm line 105
SiteConfig::content_handler('Apache=SCALAR(0x9fbe558)') called at /dev/null line 0
eval {...} at /dev/null line 0