Title: Unexpected token
Last modified: September 1, 2016

---

# Unexpected token

 *  Resolved [jonnyking](https://wordpress.org/support/users/jonnyking/)
 * (@jonnyking)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/unexpected-token-12/)
 * Syntax Error
 * Warning: max(): Array must contain at least one element in [mysite]/public_html/
   wp-content/plugins/woocommerce-pdf-invoice/includes/tcpdf/tcpdf.php on line 6262
 * Any suggestions at all? I’ve used this before, but can’t seem to get it to work
   now. Can’t work out if it’s to do with a specific plugin (POS is only used occasionally,
   at shows and events etc).
 * Thanks for your help,
 * Jonny
 * [https://wordpress.org/plugins/woocommerce-pos/](https://wordpress.org/plugins/woocommerce-pos/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [kilbot](https://wordpress.org/support/users/kilbot/)
 * (@kilbot)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/unexpected-token-12/#post-7540744)
 * Please see the FAQ for troubleshooting SnytaxError messages: [faq.wcpos.com/v/0.4.6/en/syntax-error.html](http://faq.wcpos.com/v/0.4.6/en/syntax-error.html).
 * The error message contains the plugin (WooCommerce PDF Invoice) and line number(
   tcpdf.php:6262) which is causing the problem. I don’t have access to the source
   code to suggest a fix, so you should contact the developer of WooCommerce PDF
   Invoice for support.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/woocommerce-pos/assets/icon-256x256.png?rev=3109703)
 * [WCPOS - Point of Sale (POS) plugin for WooCommerce](https://wordpress.org/plugins/woocommerce-pos/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pos/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pos/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pos/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pos/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pos/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [kilbot](https://wordpress.org/support/users/kilbot/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/unexpected-token-12/#post-7540744)
 * Status: resolved