Forums

Recaptcha, problem with 2 plugins

nwoswamp 01 Aug, 2011
I installed Joo Recaptcha on a site to protect the Contact forms in Joomla. Now, the Recaptcha on my Chronoforms keeps telling me

The reCAPTCHA wasn't entered correctly. Please try it again.

I had a feeling they were bumping heads somewhere.

CF does work if I disable the Joo Recaptcha plugin. I found http://www.chronoengine.com/forums.html?cont=posts&p=59384#p59384 and tried to update it for ChronoForms 4 with no luck. I found similar code from the post above in the file administrator/components/com_chronoforms/form_actions/check_recaptcha/check_recaptcha.php. I tried to change the class and it still errors with the same message.

/**
 * A CFReCaptchaResponse is returned from recaptcha_check_answer()
 */
if ( !class_exists('CFReCaptchaResponse') ) {
class CFReCaptchaResponse {
    var $is_valid;
    var $error;
}
}
?>


I know, it's probably something stupid...
Thanks.
GreyHead 02 Aug, 2011
Hi nwoswamp ,

I'm pretty sure that you are very close to the correct answer here.

Please try temporarily setting Error Reporting to Maximum in the Site Global Administration and you will (hopefully) get an error message saying that there is another class conflict somewhere.

Bob
nwoswamp 02 Aug, 2011
You are correct sir,

With the 'Error Reporting = Maximum' I get the following at the top of the form on load:

Notice: Constant RECAPTCHA_API_SERVER already defined in /site/administrator/components/com_chronoforms/form_actions/load_recaptcha/load_recaptcha.php on line 18

Notice: Constant RECAPTCHA_API_SECURE_SERVER already defined in /site/administrator/components/com_chronoforms/form_actions/load_recaptcha/load_recaptcha.php on line 19



Fill out the form and then submitting shows:

Notice: Constant RECAPTCHA_VERIFY_SERVER already defined in /site/administrator/components/com_chronoforms/form_actions/check_recaptcha/check_recaptcha.php on line 18

Notice: Constant RECAPTCHA_API_SERVER already defined in /site/administrator/components/com_chronoforms/form_actions/load_recaptcha/load_recaptcha.php on line 18

Notice: Constant RECAPTCHA_API_SECURE_SERVER already defined in /site/administrator/components/com_chronoforms/form_actions/load_recaptcha/load_recaptcha.php on line 19

The reCAPTCHA wasn't entered correctly. Please try it again.



They go away when I disable "System - Joo Recaptcha."
GreyHead 03 Aug, 2011
Hi nwoswamp,

Hmmm . . . not such good news. The errors are showing up when Joo ReCaptcha runs so changes in the ChronoForms code won't fix them. There need to be changes in the Joo ReCaptcha code too :-(

I'm also not sure that these errors are causing the ReCaptcha to fail; that may be because there are two on the same page. Do you have the two showing on the same page? Or is this showing with only the ChronoForm displayed?

Bob
nwoswamp 03 Aug, 2011
Aaah. Doesn't sound good.

The Chronoform looks the same, doesn't matter if the Joo plugin is enabled or disabled. Visually there is no difference. There is only one Recaptcha displayed on the Chronoform, and one displayed on the contact forms (from the Joo plugin).

I tried messing around with the settings on the Joo plugin and still no luck.

Sounds like I have to come up with plan B... or C, D.... whatever one I'm on. 8)
GreyHead 03 Aug, 2011
Hi nweoswamp,

Can you use the ImageVerification Captcha with the ChronoForm - that would remove the conflict?

Bob
nwoswamp 04 Aug, 2011
I removed recaptcha and put in ImageVerification. I don't seem to have any issues with that. That is an option. I see there's at least one other recaptcha plugin for Joomla's contact forms. I might give a try to see if that acts differently, though not as easy to configure.... All things to consider. Thanks.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger