PDA

View Full Version : ReCaptcha error message



gour
07-Apr-2010, 10:03 AM
Hello!

I've just installed ReCaptcha on my 'test' site, but I've noticed that the error reporting in FormMail is not great. :(

russellr also confirmed it:
No, it's not very friendly, I agree.

The message was originally "reCaptcha verification failed", which is probably the not that much better. I think we actually copied it from the reCaptcha examples.

We added the specific error message reported by the reCaptcha server recently, to help you diagnose exactly what was wrong if it failed., so I wonder if it is possible to add the same feature as present on http://recaptcha.net/learnmore.html where the text Incorrect. Try again is displayed if the user enters wrong characters and the new challenge is loaded?


The present error handling really spoils the party:o.


Sincerely,
Gour

Edit: Heh, I've just found http://www.tectite.com/vbforums/showthread.php?t=4550 thread. Let's hope we'll resolve the issue...

Edit2: It doesn't. :(

By using 'derived_fields' I am able to get my forms' data reloaded, but fail on ReCaptcha still produces:

reCaptcha verification failed (incorrect-captcha-sol) So, I wonder if anyone has solution that Recaptcha failure produce just Incorrect. Try again and provide new challenge? :confused:

russellr
07-Apr-2010, 11:31 PM
Hi,

Yes, it's not a good message we have there. We'll improve it in the next version.

In the meantime, here's how you can override it:
In FormMail, set $HOOK_DIR = "."; ("." means current directory).
Create a file called "fmhookpreinit.inc.php" with the following content:
$aMessages[MSG_RECAPTCHA_MATCH] = 'Incorrect. Try again. ($ERR)';

Upload fmhookpreinit.inc.php to your server in the same directory/folder as FormMail.

russellr
08-Apr-2010, 12:24 AM
Hi again,

Sorry, the content of the fmhookpreinit.inc.php file needs to include PHP tags:


<?php
$aMessages[MSG_RECAPTCHA_MATCH] = 'Incorrect. Try again. ($ERR)';
?>

gour
08-Apr-2010, 05:25 AM
Hi,

Yes, it's not a good message we have there. We'll improve it in the next version.

That's great to hear.



In the meantime, here's how you can override it:
In FormMail, set $HOOK_DIR = "."; ("." means current directory).
Create a file called "fmhookpreinit.inc.php" with the following content:
$aMessages[MSG_RECAPTCHA_MATCH] = 'Incorrect. Try again. ($ERR)';

Upload fmhookpreinit.inc.php to your server in the same directory/folder as FormMail.Thank you very much. It is useful until something better arrives. :)


Sincerely,
Gour

Netz
22-Jul-2010, 07:52 PM
Hello!

I've just installed ReCaptcha on my 'test' site, but I've noticed that the error reporting in FormMail is not great. :(



Hey .... Cool...

Maybe you could share how... I followed the instruction "Do step 1, 2 and 3"... But when clicking on the link... I end up at Google (They apprently bought the ReCapture site) So now there are NEW instructions?



russellr also confirmed it: , so I wonder if it is possible to add the same feature as present on http://recaptcha.net/learnmore.html where the text Incorrect. Try again is displayed if the user enters wrong characters and the new challenge is loaded?


The present error handling really spoils the party:o.



And... apprently it's not working... One need to be a hard core programmer to implement this?!

HELP!!!! :)

russellr
22-Jul-2010, 11:52 PM
Hi,

Before trying to do tricky stuff, please use the HOW TO guide to implement reCaptcha with FormMail:
http://www.tectite.com/fmhowto/recaptcha.php

Netz
26-Jul-2010, 05:05 PM
Thx mate!
That was where I started... and I stil have the page open!! :)

However... After a few (or many) broken links and open windows... I lost track... I got confused and I ended up spending 5-6 hours on something that should have been easy...???

Anyway... I eventually got it working (from the link you have me again) and have only the errors... Hmmm So now the Recaptcha is ON!
I now get a ERROR report from the formmail script with all the fields and data that the SPAM-ROBOTS are posting :( ... So I gained nothing!?

Or is there a way to BLOCK the error when the picture code is NOT correct?