false 'Input error: challenge: Error parsing captcha challenge value\n'

91 views
Skip to first unread message

world-wide-art.com

unread,
Jul 19, 2010, 7:04:55 PM7/19/10
to reCAPTCHA
Why do I get this message when the captcha is filled in wrong and
right.

false 'Input error: challenge: Error parsing captcha challenge value
\n'

It seems to be some problem with the javascript. If I use the iframe
method it works correctly.

reCAPTCHA Support

unread,
Jul 19, 2010, 8:20:41 PM7/19/10
to reca...@googlegroups.com
Hi,

Can you send us a link to the page that has the error? Most likely,
there is a problem with how the JavaScript's been embedded in your
page.

Colin

> --
> You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
> To post to this group, send email to reca...@googlegroups.com.
> To unsubscribe from this group, send email to recaptcha+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/recaptcha?hl=en.
>
>

--
reCAPTCHA: stop spam, read books
http://recaptcha.net

world-wide-art.com

unread,
Jul 21, 2010, 8:44:33 PM7/21/10
to reCAPTCHA
http://www.world-wide-art.com/Linda_Thompson/The_Lunch_Bunch/vaid15729.html

Select 'Reviews' at the bottom of the page. I left the form variables
visible on the results page along with the error message returned from
the server. As you can see from the form variables the challenge field
and response field are not being sent in the form.

Thanks,

mendonca.patrick

unread,
Jul 22, 2010, 12:18:32 AM7/22/10
to reCAPTCHA
I am also experiencing this same issue.

http://www.drpeo.com/_guestbook.html

I am running the "DIY" check, using perl. Here are my calling form
and .PL script:

++++++++++++++++++++CALLING FORM++++++++++++++++++++++++++++++

(html.....)



<form name="RSVP_FORM" method="post" action="/bin/send_rsvp.pl">
Name: <input type="text" name="name_field"><P>
Coming? <input type=text" name="rsvp_field"><P>


<!-- CAPTCHA PORTION OF FORM -->
<script type="text/javascript" src="http://www.google.com/recaptcha/
api/challenge?k=6LdKs7s*****mrKURVb1qFYFv">
</script>
<noscript>
<iframe src="http://www.google.com/recaptcha/api/noscript?
k=6LdKs7sSAAA******URVb1qFYFv"
height="300" width="500" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
</textarea>
<input type="hidden" name="recaptcha_response_field"
value="manual_challenge">
</noscript>


<input type="submit" name="subbtn" value="Submit">
</form>

(html....)

++++++++++++++++++++++++++.PL FILE++++++++++++++++++++++++++

#!/usr/bin/perl
print "Content-type: text/html\n\n";

#####ENVIRONMENTALS#######
$remote_ip = $ENV{'REMOTE_ADDR'};


###############FORM INFO#################
# Read the standard input (sent by the form):
read(STDIN, $FormData, $ENV{'CONTENT_LENGTH'});
# Get the name and value for each form input:
@pairs = split(/&/, $FormData);
# Then for each name/value pair....
foreach $pair (@pairs) {
# Separate the name and value:
($name, $value) = split(/=/, $pair);
# Convert + signs to spaces:
$value =~ tr/+/ /;
# Convert hex pairs (%HH) to ASCII characters:
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
# Store values in a hash called %FORM:
$FORM{$name} = $value;
}


###Dirt way to avoid nesting '##########
$APIchallenge = $FORM{'recaptcha_challenge_field'};
$APIresponse = $FORM{'recaptcha_response_field'};


print "remote ip:$remote_ip<P>";
print "name: $FORM{'name_field'}<P>";
print "challenge: $APIchallenge<P>";
print "response: $APIresponse<P>";


#####LWP TRY#########
use LWP::UserAgent;
my $ua = new LWP::UserAgent;

my $GOOGLEresponse = $ua->post('http://www.google.com/recaptcha/api/
verify',
{ privatekey => '6Ld***********f4zfdlvz ',
remoteip => '$remote_ip',
response => 'APIresponse',
challenge => '$APIchallenge',
});

my $content = $GOOGLEresponse->content;
$content =~ s/\n/<P>/;
print "RETURN:<P>$content<P>";


############MAIL INFO############
$title='RSVP';
$to='rs****o.com';
$from= 'we****o.com';
$subject='RSVP_TEST';

open(MAIL, "|/usr/sbin/sendmail -t");

## Mail Header
print MAIL "To: $to\n";
print MAIL "From: $from\n";
print MAIL "Subject: $subject\n\n";
## Mail Body
print MAIL "RSVP Info Sent\n";
print MAIL "Name:$FORM{'name_field'}\n";
print MAIL "Message:$FORM{'rsvp_field'}\n\n";

close(MAIL);

print "<html><head><title>$title</title></head>\n<body>\n\n";

## START HTML content
print "<h1>Thanks!</h1>\n";
print "<p>I've sent an email from $FORM{'name_field'} saying
$FORM{'rsvp_field'}";
## END HTML CONTENT
print "\n\n</body></html>";

On Jul 19, 5:20 pm, reCAPTCHA Support <supp...@recaptcha.net> wrote:
> Hi,
>
> Can you send us a link to the page that has the error? Most likely,
> there is a problem with how the JavaScript's been embedded in your
> page.
>
> Colin
>
> On Mon, Jul 19, 2010 at 7:04 PM, world-wide-art.com
>
>
>
> <ad...@world-wide-art.com> wrote:
> > Why do I get this message when the captcha is filled in wrong and
> > right.
>
> > false 'Input error: challenge: Error parsing captcha challenge value
> > \n'
>
> > It seems to be some problem with the javascript. If I use the iframe
> > method it works correctly.
>
> > --
> > You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
> > To post to this group, send email to reca...@googlegroups.com.
> > To unsubscribe from this group, send email to recaptcha+...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/recaptcha?hl=en.

mendonca.patrick

unread,
Jul 29, 2010, 1:36:36 AM7/29/10
to reCAPTCHA
Hello,

Hoping to push this thread back to the top, as I still haven't found
the solution, even with some professional help.

Anyone have a suggestion to clear this up?

On Jul 21, 9:18 pm, "mendonca.patrick" <mendonca.patr...@yahoo.com>
wrote:

world-wide-art.com

unread,
Aug 2, 2010, 3:33:00 PM8/2/10
to reCAPTCHA
Hi,

I have tried a number of things and still get the same error. I did
find a similar post in the forum, but it did not really answer the
question either.

Thanks,

On Jul 28, 10:36 pm, "mendonca.patrick" <mendonca.patr...@yahoo.com>
wrote:

world-wide-art.com

unread,
Aug 7, 2010, 3:14:28 PM8/7/10
to reCAPTCHA
Found it. While it doesn't make any sense, this seems to work for me.
I found it in another unrelated post.

I rearranged:
<table>
<form></form>
</table>

to

<form>
<table></table>
</form>

And now it works.

On Aug 2, 12:33 pm, "world-wide-art.com" <ad...@world-wide-art.com>
wrote:
Reply all
Reply to author
Forward
0 new messages