Title: SyntaxError: Unexpected token C
Last modified: August 30, 2016

---

# SyntaxError: Unexpected token C

 *  Resolved [deb](https://wordpress.org/support/users/debendra/)
 * (@debendra)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-c-1/)
 * After install plugin, I get error:
 * SyntaxError: Unexpected token C (in chrome) and
    SyntaxError: JSON.parse: unexpected
   character at line 1 column 1 of the JSON data (in firefox)
 * If I deactivate the plugin, everything works fine. Is there anything I could 
   do ?
 * [https://wordpress.org/plugins/woocommerce-pdf-invoices/](https://wordpress.org/plugins/woocommerce-pdf-invoices/)

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

 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-c-1/#post-6869861)
 * Please save options and try again or delete all plugin files and download again.
   Can’t seem to get the error my self.
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-c-1/#post-6869955)
 * Did you get it to work? Please let me know. 🙂
 *  [Hakem Romeh](https://wordpress.org/support/users/hakem-romeh/)
 * (@hakem-romeh)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-c-1/#post-6870001)
 * It also has the same problem
 *  [Pierre Saïkali](https://wordpress.org/support/users/pskli/)
 * (@pskli)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-c-1/#post-6870023)
 * Had the same problem, the mPDF debugging option was enabled.
    Disabled and it
   worked 🙂
 * Where can we see the mPDF debugging though ? In a specific log file ?
 *  [dnavratil](https://wordpress.org/support/users/dnavratil/)
 * (@dnavratil)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-c-1/#post-6870024)
 * Unfortunately disabling mPDF debugging did not help for me; here (latest Woo 
   + Subscriptions) only deactivating the plugin(s – using premium) solves the issue.
   Any updates?
 * Thanks!
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-c-1/#post-6870025)
 * Will find the problem as soon as possible. Thanks!
 *  Thread Starter [deb](https://wordpress.org/support/users/debendra/)
 * (@debendra)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-c-1/#post-6870026)
 * I love this plugin, it worked as I have reinstalled …
 *  [z2zoop](https://wordpress.org/support/users/z2zoop/)
 * (@z2zoop)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-c-1/#post-6870030)
 * Any updates on this? The error is about receiving malformed JSON on a shop order,
   instead of a JSON response it gives an error that the PDF already exists and 
   needs to be deleted (but it just got generated when the order was made, so this
   makes little sense). This error is in plain text, therefore it gives a syntax
   error.
 *  [z2zoop](https://wordpress.org/support/users/z2zoop/)
 * (@z2zoop)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-c-1/#post-6870031)
 * Managed to fix this by changing the Invoice number type to WooCommerce Ordernumber,
   the autonumbering by the plugin itself seems to be horribly bugged.
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-c-1/#post-6870032)
 * I did a quick look yesterday and come across this error. Please try to delete
   invoice and try again. If you can’t find invoice in orders admin page, just manually
   delete invoices in wp-content/uploads/bewpi-invoices. I have to change the code
   to just not create the invoice when order has been made and invoice with invoice
   number already exists.
 * This happens when you reset the invoice number to a number which an invoice already
   is generated with. Also the problem could be that the order has been deleted 
   while the invoice is not. I will look into it asap!
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-c-1/#post-6870033)
 * This has been resolved in version 2.3.4.
    Please confirm so I can close the topic.
   🙂

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

The topic ‘SyntaxError: Unexpected token C’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices/assets/icon-128x128.png?rev=1128583)
 * [Invoices for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/reviews/)

 * 11 replies
 * 6 participants
 * Last reply from: [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-c-1/#post-6870033)
 * Status: resolved