Runtime Error

result:DBD::Pg::st execute failed: called with 1 bind variables when 2 are needed [for Statement "SELECT min(position) FROM poll WHERE position >= ? AND dir = ?" with ParamValues: 1=undef, 2=undef] at /usr/local/libdata/perl5/site_perl/Envisity/Handler.pm line 300.
$VAR1 = {
          'protocol' => 'http',
          'errorcode' => '
foreach ($FORM->param()) {
   /^\\d+$/ or next;
   $g{\'points\'} += $FORM->param($_);
}

$g{\'poll\'} = &ensql(\'SELECT min(position) FROM poll WHERE position >= ? AND dir = ?\', undef, $g{\'points\'}, $FORM->param(\'path\'));
&ensql(\'UPDATE poll SET value = value + 1 WHERE position = ? AND dir = ?\', undef, $g{\'poll\'}, $FORM->param(\'path\'));
$g{\'sum\'} = &ensql(\'SELECT sum(value) FROM poll WHERE dir = ?\', undef, $FORM->param(\'path\'));
&ensql(\'SELECT * FROM poll WHERE dir = ? AND position = ?\', \'result-row\', $FORM->param(\'path\'), $g{\'poll\'});
',
          'status' => 500,
          'hostname' => 'www.baby.no',
          'schema' => 'baby',
          'Last-Modified' => 'Mon, 03 Oct 2005 10:41:02 GMT',
          'xml' => undef,
          'nest' => 2,
          'errorheader' => 'Runtime Error',
          'error' => 500,
          'home' => 'www/',
          'count' => 17,
          'remote_ip' => '38.107.179.222',
          'name' => 'test/result/',
          'sparams' => 2,
          'path' => 'www/test/result/',
          'errormessage' => 'result:DBD::Pg::st execute failed: called with 1 bind variables when 2 are needed [for Statement "SELECT min(position) FROM poll WHERE position >= ? AND dir = ?" with ParamValues: 1=undef, 2=undef] at /usr/local/libdata/perl5/site_perl/Envisity/Handler.pm line 300.
',
          'params' => '0',
          'content_type' => 'text/html',
          'cache' => 0
        };
$VAR1 = {};
db: envisity host:www.baby.no Search Path: rubrikk, public Schema: baby Home: www/
HTTP/1.1 200 OK Date: Sat, 04 Feb 2012 17:59:09 GMT Server: Apache Connection: close Content-Type: text/html; charset=iso-8859-1 200 OK

OK

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, you@your.address and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Apache/1.3.29 Server at one.envisity.com Port 81