System error

error:  Can't call method "getChildNodes" on an undefined value at /home/jan/htdocs/media.html line 42.
context: 
... 
38:  <%init>
39:  my ( $wrap, $albums, $galleries, $gal_id, $gallery, $images );
40: 
41:  $wrap = 3;
42:  $albums = $database->table('photo_albums')->getChildNodes({where=>'parent_id is null',order=>'date asc'});
43:  </%init>
44: 
code stack:  /home/jan/htdocs/media.html:42
/home/jan/htdocs/autohandler:20
raw error






























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


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/media.html line 42.^J') called at /home/jan/htdocs/media.html line 42
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(0xa3172d8)') 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(0xa21a848)') 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(0xa0ccb40)') 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(0xa21a848)') 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(0xa21a848)') called at /home/dev/clue/lib/perl5/ClueInc/SiteConfig.pm line 174
ClueInc::SiteConfig::handle_request('ClueInc::SiteConfig=HASH(0x99b2a54)', 'Apache=SCALAR(0xa32ce50)') called at /home/dev/clue/lib/perl5/SiteConfig.pm line 105
SiteConfig::content_handler('Apache=SCALAR(0xa32ce50)') called at /dev/null line 0
eval {...} at /dev/null line 0