Title: html comments error
Last modified: April 4, 2020

---

# html comments error

 *  Resolved [alecmtetwa](https://wordpress.org/support/users/alecmtetwa/)
 * (@alecmtetwa)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/html-comments-error/)
 * I installed Bitcoin and Altcoin wallet plugin yesterday and my website suddenly
   started showing this error ‘Bitcoin and Altcoin wallet relies on html comments,
   please disable your html optimizers’. The error is being shown in the front-end.
   I tried to remove all other plugins and reinstalled WordPress but still the problem
   persists. Please help
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhtml-comments-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [dashed-slug.net](https://wordpress.org/support/users/dashedslug/)
 * (@dashedslug)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/html-comments-error/#post-12633215)
 * Hello,
 * This is a [new feature](https://github.com/dashed-slug/wallets/blob/master/readme.txt#L357)
   in version `5.0.0` of the plugin. It’s meant to detect when HTML comments are
   stripped away by some optimizer / minifier.
 * Some of the plugin’s UI templates use [Knockout virtual elements](https://knockoutjs.com/documentation/custom-bindings-for-virtual-elements.html).(
   For an example, see [this line in the [wallets_balance template=”list”] shortcode](https://github.com/dashed-slug/wallets/blob/5.0.0/templates/balance-list.php#L30).)
 * Before version `5.0.0`, some users would install the plugin and find out much
   later that some templates are not working properly, so I decided to be proactive
   and show an error message upfront.
 * Usually HTML comments can be stripped away by WordPress performance-enhancing
   plugins, such as WP-Optimize. If this is done by a plugin, you will have an option
   available to turn it off. The option will be in that plugin’s settings.
 * You say that you get the error even after deactivating ALL other plugins. In 
   this case, it is possible that HTML minifying happens at a lower level, i.e. 
   at the web server level. Both Apache and Nginx have modules that can do this.
 * If you are unsure, ask your hosting provider about this. They must be able to
   let you know if they are using any HTML minifier, and they should be able to 
   disable it for you.
 * with regards
 *  Thread Starter [alecmtetwa](https://wordpress.org/support/users/alecmtetwa/)
 * (@alecmtetwa)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/html-comments-error/#post-12633868)
 * Hie thanks for your response. I just contacted the hosting company and this is
   there respond: `I wish to let you know that currently all server-side minifications
   and caching are disabled for your account. Having this in mind this issue should
   not be related to the server itself. I advise you do check for any additional
   plugins that have such functionalities and disable them completely.`
 *  Plugin Author [dashed-slug.net](https://wordpress.org/support/users/dashedslug/)
 * (@dashedslug)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/html-comments-error/#post-12633934)
 * OK, since you are certain that the problem persists after you have disabled ALL
   plugin, I can login to your site to investigate.
 * You can send me details on how to login over [email](http://dashed-slug.net/contact/)
   if you wish.
 * with regards
 *  Thread Starter [alecmtetwa](https://wordpress.org/support/users/alecmtetwa/)
 * (@alecmtetwa)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/html-comments-error/#post-12634051)
 * Hi, l just sent you login details via email.
 * Thanks.
 *  Plugin Author [dashed-slug.net](https://wordpress.org/support/users/dashedslug/)
 * (@dashedslug)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/html-comments-error/#post-12634311)
 * OK thank you.
 * I have performed an investigation and this is what I found:
 * 1. HTML comments are NOT minified in the body of your HTML. Therefore, the only
   issue that you are currently experiencing is the error message.
 * 2. The HTML output of the plugin is somehow modified, possibly by your web server.
   None of the plugins on your site is doing this, nor is it due to your theme. 
   In particular, a `<script>` tag gets a hex id attached to it for some reason,
   so that it becomes `<script type="86f6f906d8056800b06438e8-text/javascript">`.
   If you know why this happens, please let me know, because I’m very curious.
 * 3. HTML comments are stripped from your HTML header (NOT body), hence this is
   why the plugin’s detection shows the error message. Again, none of your plugins
   or your theme appear to be doing this.
 * I have never experienced anything like this before, so I’m not sure exactly why
   this happens. I can only conclude that there’s something in your webserver that
   alters the HTML head section.
 * The minifier detector introduced in version `5.0.0` of the plugin shows a false
   positive in your case. You are seeing the error message even though there is 
   no real problem.
 * I am currently preparing a new patch release for the plugin, which will be out
   either today or tomorrow. In this patch, the error message will be shown only
   in the browser console, not as an alert. In retrospect, the alert box was a mistake.
 * Since HTML comments are not minified in the body of your HTML, you will not experience
   any more issues related to this, once the new patch is out.
 * I will notify you here when it is released.
 * Thank you for providing access and assisting in this investigation.
 * with regards,
    Alex
 *  Thread Starter [alecmtetwa](https://wordpress.org/support/users/alecmtetwa/)
 * (@alecmtetwa)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/html-comments-error/#post-12634443)
 * Thanks, will wait for the patch
 *  Plugin Author [dashed-slug.net](https://wordpress.org/support/users/dashedslug/)
 * (@dashedslug)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/html-comments-error/#post-12635662)
 * The fix is now out in version `5.0.1` of the plugin.
 *  Thread Starter [alecmtetwa](https://wordpress.org/support/users/alecmtetwa/)
 * (@alecmtetwa)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/html-comments-error/#post-12635681)
 * Got it, thanks for your outstanding effort!

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

The topic ‘html comments error’ is closed to new replies.

 * ![](https://ps.w.org/wallets/assets/icon-256x256.png?rev=1570088)
 * [Bitcoin and Altcoin Wallets](https://wordpress.org/plugins/wallets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wallets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wallets/)
 * [Active Topics](https://wordpress.org/support/plugin/wallets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wallets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wallets/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [alecmtetwa](https://wordpress.org/support/users/alecmtetwa/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/html-comments-error/#post-12635681)
 * Status: resolved