I have enabled everything and the ReCaptcha shows up but it doesn't work. On submitting the form it shows this error:
...public_html/components/com_chronocontact/plugins/cf_recaptcha.php on line 361
Now, I'm also running another ReCaptcha on a separate form, on a different page. Don't know if that may have something do do with it. I'm using the same keys for both these forms. The ReCaptcha in the Chronoform is not working while the ReCaptcha in the default Joomla form is working fine.
I am running the Chrono form in the mambot, so I don't know if that could be the cause also.
I've tried turning the error reporting in Global Configuration to "None" but that didn't help.
Image verification under "AntiSpam" is turned off so I don't think I'm running both.
Any help appreciated.
Thanks
I think this must be because the ReCaptcha code is being loaded twice on the page.
Please open up cf_recaptcha.php and go to the end and edit the last class definition to this
/**
* A ReCaptchaResponse is returned from recaptcha_check_answer()
*/
if ( !class_exists('ReCaptchaResponse') ) { // <-add this line
class ReCaptchaResponse {
var $is_valid;
var $error;
}
} // <- and this line
?>
Bob
I pasted your code into the cf_recaptcha.php in components/com_chronocontact/plugins/ but I still get the same error on submit.
Well on submit the ReCaptcha is now showing:
1. The reCAPTCHA wasn't entered correctly. Go back and try it again
( reCAPTCHA said: incorrect-captcha-sol )
What's really curious is when the page reloads, I get this in the email input:
<script language='JavaScript' type='text/javascript'> <!-- var prefix = 'mailto:'; var suffix = ''; var attribs = ''; var path = 'hr' + 'ef' + '='; var addy11394 = 'juliusm2' + '@'; addy11394 = addy11394 + 'charter' + '.' + 'net'; document.write( '<a ' + path + '\'' + prefix + addy11394 + suffix + '\'' + attribs + '>' ); document.write( addy11394 ); document.write( '<\/a>' ); //--> </script><script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>This e-mail address is being protected from spambots. You need JavaScript enabled to view it <script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </script>
You have the Joomla! Email Cloaking Plug-in enabled and it is trying to cloak the sample e-mail in the ChronoForms validation message. Disable the plug-in temporarily to check this is the problem. If you need the plug-in change the plug-ins order so that Email Cloaking runs before ChronoForms.
NB These are Joomla! plug-ins that you manage from Site Admin | Extensions | Plug-in Manager
Bob
I disabled the email cloaking, cleared the cache, restarted the browser and I still have the same error message.
Thanks for your help mate. Nothing comes easy around here.:D
On the plus side, it did take care of the java script in the email input. Nothing there any more.
This all seems to be working OK now?
Bob
PS Probably worth setting "Republish fields if error occured" to "Try to republish" on the Form Editor General tab to redisplay the entries if there is an error.
Update: I got it all working. I somehow, for some god knows reason had the auto-verify enabled in the default form's integrator.
So it's all good now. Thanks again for your help mate. I appreciate it.