• Resolved brazzam

    (@brazzam)


    Hello,

    On my form, when I turn captcha off, it doesn’t appear – which is great.

    When I turn it on, however, it now asks 2 different captcha questions instead of one. Also, when you answer the captcha questions, the second answer will report “Incorrect answer” even if you answer it correctly. Turns out the system is looking for the same answer for both questions.

    Has anyone else seen this or may have an idea why this is happening?

    https://www.ads-software.com/plugins/wpgform/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    Something is causing the Javascript which adds the CAPTCHA to the page to run twice. Without looking at it to known for sure it is hard to say but my guess is if you look at the HTML
    source for the page you’ll see the JavaScript appears twice.

    adampavitt

    (@adampavitt)

    I am having the same problem all of a sudden and I haven’t made changes to my forms or pages. In the short term I have turned this feature off but it would be good to have it back working as it did.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Have you updated any other plugins or your theme? A change there could cause this to happen. There sn’t anything on the page or form setting which would do it.

    adampavitt

    (@adampavitt)

    Mike, thank you for your quick reply. I am very sorry I had updated plugins and WordPress however for some reason I was still running v0.82 of Google Forms. I have just updated to 0.84 and turned CAPTCHA back on and I only get it displaying once.

    Thank you.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Glad to hear it is working for you – thanks for reporting back.

    hooperman13

    (@hooperman13)

    Hi Mike,
    I am working with Adam Pavitt (see above) and things are not quite as simple as we thought they were 5 days ago. We have a number of forms on our site and have been unable to discover any pattern as to when the CAPTCHA appears once or twice.
    For one form it appears twice on both the final page https://www.progressionpeople.com/mindfulness-wellbeing-assessment/ and the underlying custom post type https://www.progressionpeople.com/wpgforms/wellbeing-scale/ yet for another instance, it appears only once on the page https://www.progressionpeople.com/human-needs-assessment/ but twice on the underlying custom post type https://www.progressionpeople.com/wpgforms/human-needs/

    hooperman13

    (@hooperman13)

    We have a third form https://www.progressionpeople.com/wpgforms/mindfulness-schools-questionaire/ with underlying custom post type https://www.progressionpeople.com/mindfulness-schools/questionnaire/ similar to the second one above. I have noticed that one the two pages where the CAPTCHA correctly only appears once, the following html is published:
    <div class=”progress-label”>100%: You made it.</div>
    For the underlying custom post types, this also appears, but only against the second CAPTCHA

    Plugin Author Mike Walsh

    (@mpwalsh8)

    When I look at one of the pages which you note has double CAPTCHA I can view the page source and see that the entire jQuery script the plugin uses appears twice.

    This almost certainly means that some hook, I believe ‘init’, is firing twice. Would it be possible to enable debug on your site so I can take a look at the flow reported by the plugin?

    hooperman13

    (@hooperman13)

    Thanks Mike,

    We will need to consult on this, as this is an active live site.

    adampavitt

    (@adampavitt)

    Hi Mike, I would rather not do this on my live site. is there anything else you can do to troubleshoot this error which I assume must be happening on other sites.

    adampavitt

    (@adampavitt)

    Hi Mike, I would rather not do this on my live site. is there anything else you can do to troubleshoot this error, which I assume must be happening on other sites?

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Understandable. My suspicion is it is likely theme related. Let’s take it to email for further discussion on options, we have a couple. mpwalsh8 at gmail dot com

    Did you find a solution for the issue of the Captcha showing up twice?

    Got the same on this page:
    https://schulfrei-bewegung.de/mitgliedsantrag/

    Regards,

    Chris

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I don’t recall what the resolution was with this other user. The thread was over a year ago. I have seen similar behavior several times and in just about every case, the wp_head hook was being called multiple times which resulted in the Javascript which the plugin adds to the page using the wp_head hook being added twice which in turn resulted in the the Javascript running twice which resulted in double CAPTCHA fields.

    If you look at the HTML source for your page, you’ll see the jQuery Script which the plugin uses appears on the page twice.

    Duplicate Javascript

    Have the jQuery script duplicated is a problem and is the reason you have the CAPTCHA field twice.

    Now the question is – why is the jQuery script duplicated? I don’t know. The script is added by the wp_head hook so it appears it is running twice. Why? It is hard to say without having access to the theme. It may not be the theme doing it either, it is possible another plugin is causing wp_head to fire when it shouldn’t.

    Thanks Mike,

    I was going through all the plugins now and found what caused the problem:
    https://de.www.ads-software.com/plugins/open-graph-protocol-framework/

    Deactivated and Captcha is not showing twice any longer ??

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Captcha is doubled’ is closed to new replies.