System error

error:  Can't call method "nsearchredirect" on an undefined value at /home/www/html/dhandler line 100.
context: 
... 
96:  my $newtemplate = (($directory) && ($directory->converted == 2)) ? 1 : 0;
97:  if ($directoryid == 0) { $notfound =1; }
98: 
99:  # Redirect sites with the nsearchredirect flag to the corresponding page on nsearch.com. Ticket #3808
100:  if (($directory->nsearchredirect()) && ($r->uri =~ /^\/(index\.(htm|html|php))?$/)) {
101:  if ((defined($ARGS{i})) && (int($ARGS{i}) > 0)) {
102:  $m->redirect('http://www.nsearch.com/?i=' . $ARGS{i}, 301);
103:  }
104:  elsif ((defined($ARGS{k})) && ($ARGS{k} ne "")) {
... 
code stack:  /home/www/html/dhandler:100
raw error






























Can't call method "nsearchredirect" on an undefined value at /home/www/html/dhandler line 100.


Trace begun at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "nsearchredirect" on an undefined value at /home/www/html/dhandler line 100.^J') called at /home/www/html/dhandler line 100
HTML::Mason::Commands::__ANON__('REQUEST_URI', '/cgi-bin/at.cgi', 'CC_2.0', 'SERVER_NAME=www.5starshine.com;SCRIPT_NAME=%2Fcgi-bin%2Fat.cgi;PATH_INFO=;COOKIE_EXPIRES=%2B3y;QUERY_STRING=as_image%3D1', 'SERVER_NAME', 'glcweb15.5starshine.com', 'HTTP_COOKIE', '', 'SERVER_ADDR', 64.124.18.54, 'QUERY_STRING', '', 'HTTP_HOST', 'www.5starshine.com') called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xaac191c)', 'REQUEST_URI', '/cgi-bin/at.cgi', 'CC_2.0', 'SERVER_NAME=www.5starshine.com;SCRIPT_NAME=%2Fcgi-bin%2Fat.cgi;PATH_INFO=;COOKIE_EXPIRES=%2B3y;QUERY_STRING=as_image%3D1', 'SERVER_NAME', 'glcweb15.5starshine.com', 'HTTP_COOKIE', '', 'SERVER_ADDR', 64.124.18.54, 'QUERY_STRING', '', 'HTTP_HOST', 'www.5starshine.com') called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 1251
eval {...} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 1246
HTML::Mason::Request::comp(undef, undef, undef, 'REQUEST_URI', '/cgi-bin/at.cgi', 'CC_2.0', 'SERVER_NAME=www.5starshine.com;SCRIPT_NAME=%2Fcgi-bin%2Fat.cgi;PATH_INFO=;COOKIE_EXPIRES=%2B3y;QUERY_STRING=as_image%3D1', 'SERVER_NAME', 'glcweb15.5starshine.com', 'HTTP_COOKIE', '', 'SERVER_ADDR', 64.124.18.54, 'QUERY_STRING', '', 'HTTP_HOST', 'www.5starshine.com') called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 460
eval {...} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 460
eval {...} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 412
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0xae2b4e8)') called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0xae2b4e8)') called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/ApacheHandler.pm line 826
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x9cb1dc0)', 'Apache=SCALAR(0xaee7ab8)') called at (eval 45) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache=SCALAR(0xaee7ab8)') called at /dev/null line 0
eval {...} at /dev/null line 0