Title: SyntaxError Unexpected identifier
Last modified: February 15, 2021

---

# SyntaxError Unexpected identifier

 *  Resolved [purityboy83](https://wordpress.org/support/users/purityboy83/)
 * (@purityboy83)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-identifier-3/)
 * hi
 * [Error] SyntaxError: Unexpected identifier ‘Insufficient’. Expected ‘;’ after
   variable declaration.
    (anonymous function) (wpo-minify-footer-454322ce.min.js:
   72)
 * Ref img1 : [https://ibb.co/z7BcpHc](https://ibb.co/z7BcpHc)
 * Ref img2 : [https://ibb.co/HXP0Jxw](https://ibb.co/HXP0Jxw)
 * error 72 line is docx file : [https://drive.google.com/file/d/1doguJtbpXCmh-ega5B3jCFrh9xS34kXm/view?usp=sharing](https://drive.google.com/file/d/1doguJtbpXCmh-ega5B3jCFrh9xS34kXm/view?usp=sharing)
 * This problem only occurs when you are logged into the blog.
 * When you are logged out (guest mode), no error occurs.
 * I really need help.
 * Best Regards,
    Hyunho

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

 *  Thread Starter [purityboy83](https://wordpress.org/support/users/purityboy83/)
 * (@purityboy83)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-identifier-3/#post-14052585)
 * +
    I Purge(remove) all caches, but the problem still occurs.
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-identifier-3/#post-14060838)
 * [@purityboy83](https://wordpress.org/support/users/purityboy83/) Can you please
   try to exclude the path of JS file which shows in the console in WP-Optimize 
   > Minify > Javascript > Exclude and then check if you still see errors in console?
 *  Thread Starter [purityboy83](https://wordpress.org/support/users/purityboy83/)
 * (@purityboy83)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-identifier-3/#post-14060868)
 * hi
 * [@bornforphp](https://wordpress.org/support/users/bornforphp/)
 * ref img : [https://ibb.co/6PvpQsw](https://ibb.co/6PvpQsw)
 * js was added to exclude
 * and browser initialization
    and minify reset
 * However, the problem still occurs.
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-identifier-3/#post-14060879)
 * [@purityboy83](https://wordpress.org/support/users/purityboy83/) Can you please
   add the full path instead of only adding the filename?
 *  Thread Starter [purityboy83](https://wordpress.org/support/users/purityboy83/)
 * (@purityboy83)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-identifier-3/#post-14060905)
 * hi
 * [@bornforphp](https://wordpress.org/support/users/bornforphp/)
 * ref img : [https://ibb.co/bWpCFV4](https://ibb.co/bWpCFV4)
 * and browser initialization
    and minify reset
 * However, the problem still occurs.
 *  Thread Starter [purityboy83](https://wordpress.org/support/users/purityboy83/)
 * (@purityboy83)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-identifier-3/#post-14061150)
 * Hi
 * [@bornforphp](https://wordpress.org/support/users/bornforphp/)
 * Reset minify : ref img – [https://ibb.co/mBDJ3bX](https://ibb.co/mBDJ3bX)
 * exclude js : ref img – [https://ibb.co/d61K7C3](https://ibb.co/d61K7C3)
 * browser cache purge : ref img – [https://ibb.co/PZQXZSt](https://ibb.co/PZQXZSt)
 * browser end -> start (restart )
 * connect to site => login => blog post check -> problem exists
 * ref img : [https://ibb.co/BVdpR95](https://ibb.co/BVdpR95)
 * Is there a problem with what I have done?
    (Is the procedure wrong?)
 * Best Regards,
    Hyunho
 *  Thread Starter [purityboy83](https://wordpress.org/support/users/purityboy83/)
 * (@purityboy83)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-identifier-3/#post-14063736)
 * hi
 * [@bornforphp](https://wordpress.org/support/users/bornforphp/)
 * any update please?……
    Tell me if there’s anything else I need to check
 * Best Regards,
    Hyunho
 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-identifier-3/#post-14063751)
 * Hi [@purityboy83](https://wordpress.org/support/users/purityboy83/)
 * Could you do the following:
    – Remove the `wpo-minify-***` items that you put
   in the exclude field (that won’t do anything) – Disable “Enable merging of JavaScript
   files” In Minify > JavaScript
 * Are you able to share your website’s URL?
 * Kind regards,
    Marc
 *  Thread Starter [purityboy83](https://wordpress.org/support/users/purityboy83/)
 * (@purityboy83)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-identifier-3/#post-14063854)
 * Hi
    [@marcusig](https://wordpress.org/support/users/marcusig/)
 * – Disable “Enable merging of JavaScript files” In Minify > JavaScript
    =>> result:
   The problem at the front of the blog has been fixed.
 * What it means is
 * 1) error increase 1->3
    ref img: [https://ibb.co/9WpPn7K](https://ibb.co/9WpPn7K)
 * 2) but blog page is now fine
    ref img: [https://ibb.co/MDKJWjQ](https://ibb.co/MDKJWjQ)
 * 3) if use “Enable merging of javascript file” again(original setting)
    Ref img:
   [https://ibb.co/C8DdQm8](https://ibb.co/C8DdQm8)
 * this plugin is “Enlighter – Customizable Syntax Highlighter”
    ([https://wordpress.org/plugins/enlighter](https://wordpress.org/plugins/enlighter))
 * Enable Merge JS -> problem blog -> Code highlight is weird
 * Disable Merge JS -> blog is fine -> Code highlight is normal
    but background 
   error increase 1->3
 * However, an error occurs back side, but there seems to be no problem using the
   blog.
 * There seems to be no problem so far.
 * If you want the address of the site to solve the problem
    i can duplicate the
   site and send inform you after changing account information.
 * Because this problem only occurs when you are logged in.
    So you also need to
   log in.
 * If you want, i can provide you with a test site and admin account
    (I will send
   you the information by email)
 * Best Regards,
    Hyunho
    -  This reply was modified 5 years, 6 months ago by [purityboy83](https://wordpress.org/support/users/purityboy83/).
 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-identifier-3/#post-14067141)
 * Hi Hyunho,
 * Disabling Merge of JS enables you to see which files might cause an issue.
    So
   you could now add `googlesitekit` to the exclusions in the JavaScript settings.
 * If you do not want do disable merging of JS, you can try enabling ” Contain each
   included file in its own block”. If the error still happens, it might be more
   accurate and display the name of the original file.
 * You can then add that file to the exclusion list.
 * If none of this works, you can send your details using this form: [https://getwpo.com/ask-pre-sales-question/](https://getwpo.com/ask-pre-sales-question/)
   and mentioning my name.
 * Marc
 *  Thread Starter [purityboy83](https://wordpress.org/support/users/purityboy83/)
 * (@purityboy83)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-identifier-3/#post-14067389)
 * Hi
    first, Thank you for your help
 * 1. exclude googlesitekit js and enable merge js
    Any JavaScript files that match
   the paths below will be completely ignored wpo-minify-footer-googlesitekit-modules-
   tagmanager.min.js wpo-minify-footer-googlesitekit-modules-analytics.min.js wpo-
   minify-footer-googlesitekit-modules-adsense.min.js /core/cache/wpo-minify/1613579635/
   assets/wpo-minify-footer-googlesitekit-modules-adsense.min.js /core/cache/wpo-
   minify/1613579635/assets/wpo-minify-footer-googlesitekit-modules-tagmanager.min.
   js /core/cache/wpo-minify/1613579635/assets/wpo-minify-footer-googlesitekit-modules-
   analytics.min.js /core/cache/wpo-minify/1613639244/assets/wpo-minify-footer-308f22ce.
   min.js
 * => occur error
 * 2. ENABLE -> Contain each included file in its own block (enable if trying to
   isolate a JavaScript error introduced by minifying or merging)
 * I keep getting the error, but I wasn’t able to more accurately resolve the original
   file name
 * Error is same
 *     ```
       SyntaxError: Unexpected identifier 'Gathering'. Expected ';' after variable declaration.
       wpo-minify-footer-308f22ce.min.js 169 line
       ```
   
 * Should I disable the merge js function and use it?
 * Best Regards,
    Hyunho
 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-identifier-3/#post-14067534)
 * Only add `googlesitekit` in the list, and all the relevant files will be ignore.
   Do not add the file names containing `wpo-minify-***`, as that will not do anything.
 * > Error is same
 * Is there no extra information?
 *  Thread Starter [purityboy83](https://wordpress.org/support/users/purityboy83/)
 * (@purityboy83)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-identifier-3/#post-14070052)
 * Hi [@marcusig](https://wordpress.org/support/users/marcusig/)
 * Sorry too late response
 * I just added “googlesitekit” according to your guide
    and enable : Enable merging
   of JavaScript files and enable : Contain each included file in its own block (
   enable if trying to isolate a JavaScript error introduced by minifying or merging)
 * Ref img : [https://ibb.co/xJB7Q79](https://ibb.co/xJB7Q79)
 * problem does not occur.
 * post is fine and code highlight it’s ok
    Ref img : [https://ibb.co/7SxzC8K](https://ibb.co/7SxzC8K)
 * I think the problem is solved
 * The code highlight problem was the biggest problem
    Now it works normally
 * Thanks
 * Best Regards,
    Hyunho

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

The topic ‘SyntaxError Unexpected identifier’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [purityboy83](https://wordpress.org/support/users/purityboy83/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-identifier-3/#post-14070052)
 * Status: resolved