Title: wocoomerce SyntaxError
Last modified: October 17, 2017

---

# wocoomerce SyntaxError

 *  Resolved [tripledm](https://wordpress.org/support/users/tripledm/)
 * (@tripledm)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wocoomerce-syntaxerror/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwocoomerce-syntaxerror%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Jeffrey Schutzman](https://wordpress.org/support/users/jeffpyebrookcom/)
 * (@jeffpyebrookcom)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wocoomerce-syntaxerror/#post-9595911)
 * We started having this error also. Running WooCommerce also.
 *  [Jeffrey Schutzman](https://wordpress.org/support/users/jeffpyebrookcom/)
 * (@jeffpyebrookcom)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wocoomerce-syntaxerror/#post-9595985)
 * 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](https://wordpress.org/support/users/tripledm/)
 * (@tripledm)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wocoomerce-syntaxerror/#post-9611053)
 * 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.
 *  [Jeffrey Schutzman](https://wordpress.org/support/users/jeffpyebrookcom/)
 * (@jeffpyebrookcom)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wocoomerce-syntaxerror/#post-9616351)
 * 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.
 *  [rapapar](https://wordpress.org/support/users/rapapar/)
 * (@rapapar)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wocoomerce-syntaxerror/#post-9632534)
 * Hello,
    same issue here Have to desable plugin to get my on line store running
   Very good plugin, hope you’ll check
 * Thanks!
 * regards
    Julien
 *  [arymaynart](https://wordpress.org/support/users/arymaynart/)
 * (@arymaynart)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/wocoomerce-syntaxerror/#post-9833500)
 * 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](https://wordpress.org/support/users/minor/)
 * (@minor)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wocoomerce-syntaxerror/#post-10109616)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-google-recaptcha_0073aa.svg)
 * [Simple Google reCAPTCHA](https://wordpress.org/plugins/simple-google-recaptcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-google-recaptcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-google-recaptcha/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-google-recaptcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-google-recaptcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-google-recaptcha/reviews/)

## Tags

 * [reCAPTCHA](https://wordpress.org/support/topic-tag/recaptcha/)

 * 7 replies
 * 5 participants
 * Last reply from: [Minor](https://wordpress.org/support/users/minor/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/wocoomerce-syntaxerror/#post-10109616)
 * Status: resolved