Title: SyntaxError: Unexpected token ILLEGAL
Last modified: August 31, 2016

---

# SyntaxError: Unexpected token ILLEGAL

 *  [MarcGuay](https://wordpress.org/support/users/marcguay/)
 * (@marcguay)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-illegal/)
 * If you get a `SyntaxError: Unexpected token ILLEGAL` error in your console when
   clicking on the Generate button w/ version 3.3.4, it’s because you have WP_DEBUG
   on and the plugin is using a deprecated function. Change `js_escape` on line 
   122 of auto-post-thumbnail.php to `esc_js`.
 * [https://wordpress.org/plugins/auto-post-thumbnail/](https://wordpress.org/plugins/auto-post-thumbnail/)

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

 * ![](https://ps.w.org/auto-post-thumbnail/assets/icon-256x256.gif?rev=3469511)
 * [Auto Featured Image (Auto Post Thumbnail)](https://wordpress.org/plugins/auto-post-thumbnail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auto-post-thumbnail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auto-post-thumbnail/)
 * [Active Topics](https://wordpress.org/support/plugin/auto-post-thumbnail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auto-post-thumbnail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auto-post-thumbnail/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [MarcGuay](https://wordpress.org/support/users/marcguay/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-illegal/)
 * Status: not resolved