Support » Plugin: Simple Google reCAPTCHA » wocoomerce SyntaxError

  • Resolved tripledm


    Some errors in Woocommerce during checkout for new customers.

    SyntaxError: Unexpected token < in JSON at position 0
    SyntaxError: Unexpected token < in JSON at position 1

    Only plugin that makes it go away is disabling Simple Google reCAPTCHA.

    Now from what I can see it’s not visible on registration, ONLY visible at the top if you select returning customer login. So maybe it is just missing / not set to display, problem with displaying in two places on same page or the top one under login tab needs to be moved to the bottom of the page or made visible. Not sure… sadly not working.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • We started having this error also. Running WooCommerce also.

    I have debugged this and know the issue. In the function ‘sgr_verify’ there is a check for the request method and recaptcha response from google. If these things aren’t found the function does a wp_die with an error.

    Problem is that when WooCommerce checkout is setup to automatically create an account on checkout sgr_verify is executed without presenting a recaptcha form.

    Either the recaptcha form has to be presented, or sgr_verify should not run on checkout.

    Thread Starter tripledm


    Did you manage to find a solution?

    It also seems like it should be moved or have two instances one for have an account and login and another for new customers. Or simplest moved to cater for both instances.

    Didn’t find an easy solution. Invisible recaptcha is pretty straightforward to implement from scratch. I might just embed it in my theme templates until I have time to create a plugin from scratch.

    same issue here
    Have to desable plugin to get my on line store running
    Very good plugin, hope you’ll check



    Hi. Same error here.
    Will be a fix to this issue?
    Maybe you could just add a recapcha form on the checkout page if user is not login.
    I am not a programmer, but sound like a solution.

    Plugin Author Minor


    Hi guys,

    I’m sorry for a really long delay. This is fixed in new version 2.8 now.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘wocoomerce SyntaxError’ is closed to new replies.