Forums

Captcha and Mambot

hpinson 08 Sep, 2010
Hi. I am having a problem with the version V3.1 RC 5.5 of Chronoforms and the Mambot related to CAPTCHA.

CAPTCHA works just fine in a stand alone form.

When I embed the form in an article usign the Mambot {chronocontact}myform{/chronocontact}, CAPTCHA no longer works. On form submit I just get the message that the CAPTCHA was incorrectly typed, and no amount of resubmission will get the form to submit.

Is there something I am doing wrong, or is this a bug?

Thanks!

-- Harlow
GreyHead 08 Sep, 2010
Hi Harlow,

Please post a link to the page with the form in it so we can take a quick look.

Bob
GreyHead 09 Sep, 2010
Hi hpinson,

I'm not sure why it fails, the code is being submitted corrrectly and everything looks OK.

There's an obvious problem with the Email Cloaking plug-in though, I don't think that is causing it but it might be. Please change the order of the plug-ins so that the Email Cloaking plug-in runs before the ChronoForms plug-in.

Bob
hpinson 09 Sep, 2010
Hi Bob. Here is the order or existing plugins in the Chronoforms control panel

Authorize .net
CURL
CB Registration
Confirmation Page
Email Verification
Image resize and thumnail
Joomla Registration
Multi Language
Multi Page
PayPal API
Profile page
ReCaptcha verification
Redirect
Watchman

I don't see an Email Cloaking plug-in or a Chronoforms plugin. Not sure what to change here?
hpinson 09 Sep, 2010
I changed order on the Joomla Plugins page. Chronocontact now comes before Email Cloaker.

Odd behavior. The first time I submitted the form, it went... yay!

I tried a second time and the submission failed.

Also the auto generated "Your email" text entry field removed my typed email address and replaced it with the following exposed Javascript:

<script language='JavaScript' type='text/javascript'> <!-- var prefix = 'mailto:'; var suffix = ''; var attribs = ''; var path = 'hr' + 'ef' + '='; var addy64856 = 'hpinson' + '@'; addy64856 = addy64856 + 'indepthl' + '.' + 'com'; document.write( '<a ' + path + '\'' + prefix + addy64856 + suffix + '\'' + attribs + '>' ); document.write( addy64856 ); 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>

Yikes!
GreyHead 10 Sep, 2010
Hi hpinson,

That's still a problem with the Email Cloaker plug-in. Please try disabling it completely.

Bob
hpinson 14 Sep, 2010
Hi. Just an FYI, this is a paid for version (Julie Heinrich) so thanks for the support.

I disabled the Email Cloaking plugin, and while the Javascript "your email" text entry field Bleedthrough now has stopped, the Mambot is still not working right.

If I submit the form and type CAPTCHA correctly the form submits.

However, if i mistype CAPTCHA, and then correct it on the second try, the form will not submit, even if CAPTCHA is correctly typed. Nor will it submit on subsequent attempts. The condition displayed is: 1. You have entered an incorrect verification code at the bottom of the form.

Can you think of any workaround that do not involve the Mambot? We typically have formatted text and images above our form. Could all that be placed directly in the form HTML, so we could avoid use of the Mambot completely?
hpinson 14 Sep, 2010
Nope that does not work either. If I place HTML other than the form itself in the Form Code > Form HTML field in setup, the form CAPTHCA will not submit under any circurmstance.

At this point I'm wondering if we can revert to an earlier version of Chronoforms (that works) (we are on Joomla 1.5) or get a refund. It is just taking us too long to get a very simple form working.
GreyHead 14 Sep, 2010
Hi hpinson,

I've take an another look and I notice that the stand-alone form is on the domain mrcog-nm.gov/ but the module is on www.mrcog-nm.gov

I'm wondering if the 301 redirect is causing a problem. The HTML headers show that the verification code is submitted correctly but the response is

"Failed to load source for: http://www.mrcog-nm.gov/index.php?option=com_chronocontact&task=send&chronoformname=form_ticket_to_work&Itemid=275"



ChronoForms should follow the current url when it sets the domain but this can be thrown off if Joomla! has a live_site setting in the configuration file. If you have live_site set, please will you try removing the setting.

Bob
GreyHead 14 Sep, 2010
Hi hpinson,

Forgot to add - if you want a refund please contact Max through the Contact Us form here. He's the developer and manages all the licenses and payments.

Bob
hpinson 14 Sep, 2010
Thanks Bob. This appears to have worked.

Email cloaking pluging is turned off.

I looked in config.php and found the following:

var $live_site = '';

Removed this line and restarted Apache, and had the exact same behavior as described above.

Next, I restored the line, but added the domain as follows:

var $live_site = 'http://www.mrcog-nm.gov';

This appears to have solved the problem. Need to test a little more.
GreyHead 14 Sep, 2010
Hi hpinson,

Great - at least we seem to have narrowed the problem down. Fingers crossed that the tests work out OK.

Bob
This topic is locked and no more replies can be posted.