Title: Debug unexpected token
Last modified: January 8, 2018

---

# Debug unexpected token

 *  Resolved [warrenw](https://wordpress.org/support/users/warrenw/)
 * (@warrenw)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/debug-unexpected-token/)
 * I have seen numerous topics concerning this unexpected token error, but none 
   seem to fit my scenario. What seems different about this (to me) is that it is
   only affecting 1 user. I, as well as others, are able to go to the site, add 
   an item to the cart, and checkout successfully. However, this specific user keeps
   getting the response “SyntaxError: Unexpected token < in JSON at position 0”.
   If this user visits [checkout/?wc-ajax=checkout], they receive a correct response:`{"
   result":"failure","messages":"<ul class=\"woocommerce-error\">\n\t\t\t<li>We 
   were unable to process your order, please try again.<\/li>\n\t<\/ul>\n","refresh":
   true,"reload":false}`.
 * What can I do to resolve this? I do not believe it to be a plugin error as orders
   are processed appropriately for all other users. I have debug logging enabled
   and nothing interesting is appearing in the log…
    -  This topic was modified 8 years, 5 months ago by [warrenw](https://wordpress.org/support/users/warrenw/).
      Reason: Code formatting
    -  This topic was modified 8 years, 5 months ago by [warrenw](https://wordpress.org/support/users/warrenw/).

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

 *  Plugin Support [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * (@fernashes)
 * Automattic Happiness Engineer
 * [8 years, 5 months ago](https://wordpress.org/support/topic/debug-unexpected-token/#post-9846585)
 * If it’s just the one user, then it sounds like there may be some sort of caching
   in play, or something specific on their end.
 * If they try a different browser, do they still see the same issue?
 *  Thread Starter [warrenw](https://wordpress.org/support/users/warrenw/)
 * (@warrenw)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/debug-unexpected-token/#post-9847373)
 * I am thinking its a client error also, but its the ‘something specific’ I am 
   trying to discover. I’ll have the user try another browser and see what happens.
 *  Plugin Support [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * (@fernashes)
 * Automattic Happiness Engineer
 * [8 years, 4 months ago](https://wordpress.org/support/topic/debug-unexpected-token/#post-9868221)
 * [@warrenw](https://wordpress.org/support/users/warrenw/) how did it go with another
   browser?
 *  Thread Starter [warrenw](https://wordpress.org/support/users/warrenw/)
 * (@warrenw)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/debug-unexpected-token/#post-9869110)
 * To be honest, I haven’t been able to get back with the end-user for further testing.
   At the time I had posted the question, we had already manually created the order
   so finding an answer to this was more or less just to give me some ammunition
   should this occur again. I’m leaving this open so that once I can get some further
   information, I can update.
 *  Plugin Support [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * (@fernashes)
 * Automattic Happiness Engineer
 * [8 years, 4 months ago](https://wordpress.org/support/topic/debug-unexpected-token/#post-9869264)
 * Thanks for letting us know!
 * To improve the quality of the forums and the support, I’m going to mark this 
   as resolved. You’re welcome to create a new thread if this does come up again–
   that new thread will show on the main page instead of being buried like this 
   thread now is.

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

The topic ‘Debug unexpected token’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/debug-unexpected-token/#post-9869264)
 * Status: resolved