Title: 2.4 Common Issue &#8211; SyntaxError: Unexpected Token
Last modified: August 30, 2016

---

# 2.4 Common Issue – SyntaxError: Unexpected Token

 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/24-common-issue-syntaxerror-unexpected-token/)
 * 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);
       ```
   
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

The topic ‘2.4 Common Issue – SyntaxError: 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/24-common-issue-syntaxerror-unexpected-token/)
 * Status: not a support question