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…
The topic ‘Debug unexpected token’ is closed to new replies.