Title: Uncaught SyntaxError: Unexpected token var
Last modified: December 23, 2016

---

# Uncaught SyntaxError: Unexpected token var

 *  Resolved [kingteamdunet](https://wordpress.org/support/users/kingteamdunet/)
 * (@kingteamdunet)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-var/)
 * Hello,
 * The plugin works, except that we have an error on the contact page
    The map is
   blocked it is not displayed
 * Erros
    (index):12 Uncaught SyntaxError: Unexpected token var
 * Settings
    Minify HTML Enable
 * Remove HTML, JavaScript and CSS comments Yes
 * Remove XHTML closing tags from HTML5 void elements No
 * Remove relative domain from internal URLs No
 * Remove schemes (HTTP: and HTTPS:) from all URLs No
 * Thank you

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

 *  Plugin Author [Tim Eckel](https://wordpress.org/support/users/teckel/)
 * (@teckel)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-var/#post-8586332)
 * That’s a JavaScript error an Minify HTML doesn’t include any JavaScript so the
   error is not directly from Minify HTML. However, the minification process in 
   Minify HTML could be causing it.
 * I would need to view the HTML source of the page where you’re getting this error.
   If you could turn on Minify HTML, go to the contact page which gets the error,
   view source for the page and copy it. Then, post it here inside `code` tags so
   I can duplicate the page and see where the problem is.
 * Thanks!
 *  Thread Starter [kingteamdunet](https://wordpress.org/support/users/kingteamdunet/)
 * (@kingteamdunet)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-var/#post-8586498)
 * Yes it is a JavaScript error
    But before activating your plugin, have no JavaScript
   errors We disable your plugin, is no more error and the map it displays well.
   Do you have an e-mail address to send the site address?
 * Thank you!
 *  Plugin Author [Tim Eckel](https://wordpress.org/support/users/teckel/)
 * (@teckel)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-var/#post-8588270)
 * Sure, send it to tim at leethost dot com.
 *  Thread Starter [kingteamdunet](https://wordpress.org/support/users/kingteamdunet/)
 * (@kingteamdunet)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-var/#post-8589786)
 * Hello, merry christmas
 * Your email address is: “tim@leethost.com”
    E-mail sent
 * Thank you
 *  Plugin Author [Tim Eckel](https://wordpress.org/support/users/teckel/)
 * (@teckel)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-var/#post-8593963)
 * I worded it the way I did on purpose so my email address would not be exposed
   to spiders. I would appreciate it if you would modify your reply to remove my
   email address. I already know my email address, I don’t need you to tell me what
   it is.
 *  Plugin Author [Tim Eckel](https://wordpress.org/support/users/teckel/)
 * (@teckel)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-var/#post-8594006)
 * I can’t find your email, what was the message subject?
 *  Thread Starter [kingteamdunet](https://wordpress.org/support/users/kingteamdunet/)
 * (@kingteamdunet)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-var/#post-8594195)
 * Good evening,
 * E-mail sent
 * Thank you
 *  Plugin Author [Tim Eckel](https://wordpress.org/support/users/teckel/)
 * (@teckel)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-var/#post-8595359)
 * The problem was identified and version 1.92 should correct the problem. Let me
   know if there’s any problems. A positive review would be greatly appreciated!
   Thanks!
 *  Plugin Author [Tim Eckel](https://wordpress.org/support/users/teckel/)
 * (@teckel)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-var/#post-8615984)
 * Version 1.94 is released which now allows you to turn off JavaScript minify which
   will resolve your problem. There’s a new option labeled “Minify inline JavaScript”
   from the Settings->Minify HTML menu.
 *  Thread Starter [kingteamdunet](https://wordpress.org/support/users/kingteamdunet/)
 * (@kingteamdunet)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-var/#post-8616159)
 * Hi happy new year
 * Did not receive my email?
    My team and I solved the problem of js
 * Thank you

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

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

 * ![](https://ps.w.org/minify-html-markup/assets/icon-128x128.png?rev=1354357)
 * [Minify HTML](https://wordpress.org/plugins/minify-html-markup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/minify-html-markup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/minify-html-markup/)
 * [Active Topics](https://wordpress.org/support/plugin/minify-html-markup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/minify-html-markup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/minify-html-markup/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [kingteamdunet](https://wordpress.org/support/users/kingteamdunet/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-var/#post-8616159)
 * Status: resolved