System error

error:  Can't call method "quote" on an undefined value at /usr/www/users/sultmhoo/classifieds.html line 66.
context: 
... 
62:  $dbdefs{"classifieds"}->{'password'}="MtYaXFwM";
63:  my $db = DBI->connect("dbi:mysql:database=".$dbdefs{"classifieds"}->{"db"}.":host=".$dbdefs{"classifieds"}->{"host"},$dbdefs{"classifieds"}->{"userid"},$dbdefs{"classifieds"}->{"password"});
64:  my $now = time;
65: 
66:  my $query = $db->prepare("select recno,timeposted,timeexpired,category,adtext,boxed,headline,approved,categorynumber from sultmhoo_classifieds.classifieds where timeexpired > ".$db->quote($now)." order by categorynumber");
67:  $query->execute();
68:  my $cats;use Data::Dumper;
69:  while(my $ref = $query->fetchrow_hashref) {
70:  $ref->{'category'} =~ s/ / /g;
... 
code stack:  /usr/www/users/sultmhoo/classifieds.html:66
/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm:836
/usr/www/users/sultmhoo/classifieds.html:3
raw error






























Can't call method "quote" on an undefined value at /usr/www/users/sultmhoo/classifieds.html line 66.


Trace begun at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "quote" on an undefined value at /usr/www/users/sultmhoo/classifieds.html line 66.^J') called at /usr/www/users/sultmhoo/classifieds.html line 66
HTML::Mason::Commands::__ANON__ at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8598f00)') called at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm line 907
eval {...} at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm line 906
HTML::Mason::Request::call_self('HTML::Mason::Request::CGI=HASH(0x855c64c)', 'SCALAR(0x837ad48)', 'ARRAY(0x837ad78)', 'SCALAR(0x837ad60)', 'CACHE_SELF') called at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm line 836
HTML::Mason::Request::cache_self('HTML::Mason::Request::CGI=HASH(0x855c64c)', 'key', 'classifieds-frontpage', 'expires_in', '1 hour') called at /usr/www/users/sultmhoo/classifieds.html line 3
HTML::Mason::Commands::__ANON__ at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8598f00)') called at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm line 1279
eval {...} at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm line 473
eval {...} at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm line 473
eval {...} at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm line 425
HTML::Mason::Request::exec('HTML::Mason::Request::CGI=HASH(0x855c64c)') called at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/CGIHandler.pm line 190
eval {...} at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/CGIHandler.pm line 190
HTML::Mason::Request::CGI::exec('HTML::Mason::Request::CGI=HASH(0x855c64c)') called at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm line 342
HTML::Mason::Interp::exec(undef, undef) called at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/CGIHandler.pm line 121
eval {...} at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/CGIHandler.pm line 121
HTML::Mason::CGIHandler::_handler('HTML::Mason::CGIHandler=HASH(0x855cb50)', 'HASH(0x8100b08)') called at /usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/CGIHandler.pm line 63
HTML::Mason::CGIHandler::handle_request('HTML::Mason::CGIHandler=HASH(0x855cb50)') called at /usr/home/sultmhoo/public_html/cgi-bin/mason-handler.pl line 11