Title: Uncaught SyntaxError: Unexpected token }
Last modified: September 1, 2016

---

# Uncaught SyntaxError: Unexpected token }

 *  Resolved [tosunkaya](https://wordpress.org/support/users/tosunkaya/)
 * (@tosunkaya)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-11/)
 * autoptimize_f7d0c10a9fc02b7f668d1146db37bc55.js:28 Uncaught SyntaxError: Unexpected
   token }
 * This error is blocking some javascipt and problem on load.
 * I checked everything but no error i found.
 * validated js on esprima.org/demo/validate.html
 * chrome console and this is giving this error when use autoptimize.
 * i use same theme on other websites but no problem with autoptimize with same 
   settings.
 * my website: [https://semiyetosunkaya.com](https://semiyetosunkaya.com)
    here 
   is the code: [http://pasted.co/63c8b353](http://pasted.co/63c8b353)
 * screenshot: [http://screencast.com/t/ysB7ho6QtOJE](http://screencast.com/t/ysB7ho6QtOJE)
   
   ss 2: [http://screencast.com/t/FqDE5ujZOgs7](http://screencast.com/t/FqDE5ujZOgs7)
 * i can open a new admin account for you. please help me. thanks in advance.
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Thread Starter [tosunkaya](https://wordpress.org/support/users/tosunkaya/)
 * (@tosunkaya)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-11/#post-7540179)
 * I disabled js minify temporarily due of problem. Please help.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-11/#post-7540182)
 * I’m on holiday now tosunkaya, so can’t dig in now, but this is very likely a 
   problem with a specific plugin’s JS. Try disabling plugins one by one to see 
   which one is causing this.
 * also I see you have “jquery not defined”-errors, for that you’ll need to exclude`
   js/jquery/jquery.js` from JS optimization.
 * hope this helps,
    frank
 *  Thread Starter [tosunkaya](https://wordpress.org/support/users/tosunkaya/)
 * (@tosunkaya)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-11/#post-7540211)
 * ok, i understand. thanks for your help.
 * i found because of Instagram Feed’s plugin new version.
    ([https://wordpress.org/support/plugin/instagram-feed](https://wordpress.org/support/plugin/instagram-feed))
 * I disabled now everything is working. 🙂
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-11/#post-7540286)
 * ah, someone else had that problem as well, he excluded instagram’s feed JS and
   jquery to fix that.
 * frank
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-11/#post-7540300)
 * cfr. [https://wordpress.org/support/topic/instagram-feed-plugin-conflict?replies=2](https://wordpress.org/support/topic/instagram-feed-plugin-conflict?replies=2)
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-11/#post-7540301)
 * OK, I _might_ have found the problem;
 * [https://plugins.svn.wordpress.org/instagram-feed/trunk/js/sb-instagram.min.js](https://plugins.svn.wordpress.org/instagram-feed/trunk/js/sb-instagram.min.js)
   has 3 extra lines of JS, but also 1 extra comment at the end;
 *     ```
       jQuery(document).ready(function(){sbi_init()})} //http://www.minifier.org/
       ```
   
 * can you try removing that comment;
 *     ```
       //http://www.minifier.org/
       ```
   
 * and see if that fixes anything?
 * frank
 *  Thread Starter [tosunkaya](https://wordpress.org/support/users/tosunkaya/)
 * (@tosunkaya)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-11/#post-7540304)
 * thanks, fixed.
 *  [fercam](https://wordpress.org/support/users/fercam/)
 * (@fercam)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-11/#post-8694195)
 * I have the same error but I figured its a different way in the hole site show
   the error SyntaxError: Unexpected token ‘<‘
 * `/* */</script> <script type='text/javascript' src='https://wecayo.com/wp-content/
   themes/noo-organici/assets/js/noo.js'></script> <script type='text/javascript'
   src='https://wecayo.com/wp-content/themes/noo-organici/assets/js/custom.js'></
   script> <script type='text/javascript' src='https://wecayo.com/wp-includes/js/
   wp-embed.min.js'></script> <script>/*<![CDATA[*/<script>`
 * Anyone knows how to fix?
 * thanks forward
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-11/#post-8695335)
 * > I have the same error but I figured its a different way in the hole site show
   > the error SyntaxError: Unexpected token ‘<‘
 * but are you using autoptimize [@fercam](https://wordpress.org/support/users/fercam/)?
 *  [fercam](https://wordpress.org/support/users/fercam/)
 * (@fercam)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-11/#post-8698168)
 * Mm i dont know , you mean plugins? total cache, and minify yes
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-11/#post-8698460)
 * well, this thread is part of the autoptimize support forum. as you’re not using
   autoptimize, there’s nothing much I can do for you 🙂
 *  [fercam](https://wordpress.org/support/users/fercam/)
 * (@fercam)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-11/#post-8698500)
 * I see
 * Where can I ask about ?
 * thank you
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-11/#post-8698551)
 * in [the generic troubleshooting forum](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   I guess?

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

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

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-11/#post-8698551)
 * Status: resolved