Forums

Captcha does not validate

dominica 20 Jun, 2014
Hi there

I seem to be having problems with the captcha on my forms.

I have a single page website, with two chonoforms assigned to two different positions via the chronoforms module. No matter how many times I enter the correct captcha, the form does not get sent through and the "You have entered a wrong verification code!" message is persistant.

This is the website: http://greatoutdoorsguide.co.za

Any help would be appreciated πŸ™‚

Dominica
GreyHead 20 Jun, 2014
Hi Dominica,

I think that the problem is that ChronoForms gets confused with the two Captcha responses :-( I thought that there was a fix for this but I can’t find it right now.

Probably the simplest solution would be to switch one of the forms to use a Honey Pot or a Security Question in place of the Captcha.

Bob
faitas 02 Jul, 2014
I have the same issue, but without having two captcha!
GreyHead 03 Jul, 2014
Hi faitas,

Then it probably isn't the same problem :-(

Please drag a Debugger action into the On Submit event, then submit the form and post the debug results here.

Bob
faitas 03 Jul, 2014
well, I realise that the problem occures once every 3-4 times


Data Array: 
Array
(
    [chronoform] => off-grid_system_request
    [event] => submit
    [format] => html
    [Itemid] => 595
    [option] => com_chronoforms
    [lang] => en
    [view] => form
    [firstname] => ahmet
    [Last_Name] => duink
    [email] => c.f******u@gmail.com
    [phone] => 4567897
    [location] => Sidi Bou Zid, Tunisia
    [radio_type] => large
    [area] => 35
    [period] => summer
    [use_days] => weekends
    [appliances] => Array
        (
            [0] => Largefrige
            [1] => pc
        )

    [notes] => 
    [chrono_verification] => 
    [terms] => 1
    [input_submit_A] => Submit
    [3f00507f6214772f392bdd32dd88ca9f] => 1
    [language] => en-GB
)
Validation Errors: 
Array
(
    [chrono_verification] => You have entered a wrong verification code!
)
You have entered a wrong code. Please go back and retry!

Debug Data
Core Captcha
Failed the core captcha check, code entered: yqkMv


when I go back refresh the image and type it, then it loads up normally! probably because for somereason the chrono verification is not parsed!!???
GreyHead 03 Jul, 2014
Hi faitas,

Do you have caching turned on in the site Global Configuration? That can cause this problem.

Bob
faitas 03 Jul, 2014
yes, I use recaptcha.
faitas 06 Jul, 2014
If I use recaptcha in the chronoform as well, how can i place is insde a php statement? {ReCaptcha} is not working. and also $form->data['ReCaptcha'] does not look right.
GreyHead 06 Jul, 2014
Hi Faitas,

Where exactly do you want to use it? You can echo the string or just put it outside the ?>{ReCaptcha}<?php tags

BTW I was asking about caching, not about captcha.

Bob
faitas 06 Jul, 2014
well, I do not use caching!πŸ™‚

also echo "{ReCaptcha}" returns a blank page!
faitas 06 Jul, 2014
Bob, this is the script I am using


<?php

   $user =& JFactory::getUser();
   $usid = $user->id;

   jimport( 'joomla.access.access' );
   $groups = JAccess::getGroupsByUser($usid, false);

   if(in_array(12, $groups)) {
      echo "" ;
   } else {
      echo "{ReCaptcha}";
   }
?>


and I get a blank form, not the whole page! The error that is shown is the follwoing

Parse error: syntax error, unexpected 'text' (T_STRING), expecting ',' or ';' in /home4/********/public_html/*******/administrator/components/com_chronoforms/form_actions/show_html/cfaction_show_html.php(142) : eval()'d code on line 94
GreyHead 06 Jul, 2014
Hi faitas,

The clue is here
eval()'d code on line 94
What is on line 94 of your Custom code?

Bob
faitas 06 Jul, 2014
Bob,
the whole custom code is places in the previous messege. so this error is weird.
faitas 06 Jul, 2014
if I use it on its own, {ReCaptcha} it works.

I f I use it inside an echo, <?php echo "{ReCaptcha}"; ?> I get the above problem.
GreyHead 07 Jul, 2014
Hi faitas,

Maybe the curly brackets need to be escaped. Please try echo '{ReCaptcha}'; with single quotes in place of double quotes. I don't think that echo "\{ReCaptcha\}"; will work correctly.

Bob
faitas 07 Jul, 2014
tried that too with no success. by placing any other variable in the curly brackets it is shown, only the ReCaptcha has the problem!
wedphp 17 Sep, 2014
...................Hi faitas,

Maybe the curly brackets need to be escaped. Please try echo '{ReCaptcha}'; with single quotes in place of double quotes. I don't think that echo "\{ReCaptcha\}"; will work correctly.

Bob.....................

Hi Bob,

Hope you find the solution for this. Please share that solution here
Max_admin 18 Sep, 2014
@wedphp,

What's the problem you have ?

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
eddie_konczal 08 Jun, 2015
I would just like to add that we are consistently receiving the "You have entered a wrong verification code!" message when our forms are used in Chrome and Internet Explorer. (The captchas work fine in Firefox and Safari).

We have encountered this problem with the following versions of Chronoforms and Joomla!:

Chronoforms 4.0.6 on Joomla! 3.3.6 (site caching disabled)
Chronoforms 4.0.6 on Joomla! 3.4.1 (site caching enabled)
Chronoforms 5.0.9 on Joomla! 3.4.1 (site caching disabled)

It does not seem to matter if site caching is enabled or disabled in Global Configuration.
GreyHead 08 Jun, 2015
Hi m4mamun,

How are you displaying the forms? If they are in an article or module do you get the same problem if you test from the View Form link in the Forms Manager.

The Captcha validation is server based so I can't immediately think of a reason why browsers would consistently behave differently.

Bob
eddie_konczal 08 Jun, 2015
The problem occurs whether we click View Form in Forms Manager, embed the form within an article on the front page, or link directly to the form from Menu Manager.
Max_admin 11 Jun, 2015
Please try one of the other anti spam methods like noCaptcha or the security question.
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
eddie_konczal 17 Jun, 2015
I'm trying to follow the suggestions above:

1) noCaptcha = This option does not appear anywhere in Chronoforms 4 (version 4.0.6 is installed)

2) Security Question = I am trying to set this up, but there is no "On Load" tab in the Form Wizard.
GreyHead 18 Jun, 2015
Hi eddie_konczal,

Please click the Events tab if you are using the Form Wizard. I think it must be there as you have already set up ReCaptcha.

Bob
eddie_konczal 18 Jun, 2015
I'm confused; there is no Events tab either!

This is Chronforms v. 4,.0.6 on Joomla! 3.4.1.

Thanks,
Eddie
GreyHead 18 Jun, 2015
Hi eddie_konczal,

In the Forms Manager please click the Form Name link then on the General tab set the From Wizard Mode to Advanced (Default). Then you will be able to see the other tabs.

Note: don't change the setting back to Easy wizard afterwards as you may then loose some changes.

Bob
eddie_konczal 18 Jun, 2015
I changed the form from Wizard Mode to Advanced (Default)

I still do not see the On Load or Events tabs:
GreyHead 19 Jun, 2015
Hi eddie_konczal,

Please click the Wizard Edit link in the Forms Manager.

Bob
eddie_konczal 19 Jun, 2015
OK, that worked! I now see the Events tab.

I setup the ReCaptcha in a test web site - and it worked on all browsers (including Chrome and IE)

However, when I followed the same steps to add a ReCaptcha to a form on the original web site, you do not see the ReCaptcha; just the test "ReCaptcha":

http://iamdn.rutgers.edu/pec-questionnaire-test

Both sites are running Chronoforms 4.0.6, Joomla! 3.4.1

Thanks for your help,
Eddie
GreyHead 20 Jun, 2015
Hi eddie_konczal,

The form shows an error
Failed to load resource: the server responded with a status of 404 (Not Found) : http://www.google.com/recaptcha/apichallenge?k=6LfN . . .
I suggest that you check the ReCaptcha Server settings and keys.

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