Common Issue – SyntaxError: Unexpected Token
-
This doesn’t seem to work at all, we still get daily people with multiple orders after they have received a SyntaxError: Unexpected Token.
Posted solution below:
If you see this during checkout for example, it means that a plugin or theme is throwing a notice during the ajax post and breaking the response.
To find out which plugin is doing this, view your sever error logs and look for notices. Your host may be able to help you look for this log if you cannot locate it.
To prevent plugins and themes from outputting notices entirely, ensure debug mode is off in your wp-config file:
define(‘WP_DEBUG’, false);
error_reporting(0);
@ini_set(‘display_errors’, 0);Can someone point us in the right direction we have customers who are sending in duplicate orders after their initial order has been accepted.
Thanks
- The topic ‘Common Issue – SyntaxError: Unexpected Token’ is closed to new replies.