System error
| error: |
Can't call method "nsearchredirect" on an undefined value at /home/www/html/dhandler line 122.
|
| context: |
| ... |
|
| 118: |
my $newtemplate = (($directory) && ($directory->converted == 2)) ? 1 : 0; |
| 119: |
if ($directoryid == 0) { $notfound =1; } |
| 120: |
|
| 121: |
# Redirect sites with the nsearchredirect flag to the corresponding page on nsearch.com. Ticket #3808 |
| 122: |
if (($directory->nsearchredirect()) && ($r->uri =~ /^\/(index\.(htm|html|php))?$/)) { |
| 123: |
if ((defined($ARGS{i})) && (int($ARGS{i}) > 0)) { |
| 124: |
$m->redirect('http://www.nsearch.com/?i=' . $ARGS{i}, 301); |
| 125: |
} |
| 126: |
elsif ((defined($ARGS{k})) && ($ARGS{k} ne "")) { |
| ... |
|
|
| code stack: |
/home/www/html/dhandler:122
|
raw error
Can't call method "nsearchredirect" on an undefined value at /home/www/html/dhandler line 122.
Trace begun at /usr/lib/perl5/site_perl/5.8.8/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 122.^J') called at /home/www/html/dhandler line 122
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', 'nsweb2.nsearch.com', 'HTTP_COOKIE', '', 'SERVER_ADDR', 67.23.121.184, 'QUERY_STRING', '', 'HTTP_HOST', 'www.5starshine.com') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xb75731c)', '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', 'nsweb2.nsearch.com', 'HTTP_COOKIE', '', 'SERVER_ADDR', 67.23.121.184, 'QUERY_STRING', '', 'HTTP_HOST', 'www.5starshine.com') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1257
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1252
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', 'nsweb2.nsearch.com', 'HTTP_COOKIE', '', 'SERVER_ADDR', 67.23.121.184, 'QUERY_STRING', '', 'HTTP_HOST', 'www.5starshine.com') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 466
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 466
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 418
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0xb9faaa8)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0xb9faaa8)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 826
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0xa750d34)', 'Apache=SCALAR(0xb9e4848)') called at (eval 46) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache=SCALAR(0xb9e4848)') called at /dev/null line 0
eval {...} at /dev/null line 0