• Resolved alecmtetwa

    (@alecmtetwa)


    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 to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author dashed-slug.net

    (@dashedslug)

    Hello,

    This is a new feature 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. (For an example, see this line in the [wallets_balance template=”list”] shortcode.)

    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

    (@alecmtetwa)

    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

    (@dashedslug)

    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 if you wish.

    with regards

    Thread Starter alecmtetwa

    (@alecmtetwa)

    Hi, l just sent you login details via email.

    Thanks.

    Plugin Author dashed-slug.net

    (@dashedslug)

    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

    (@alecmtetwa)

    Thanks, will wait for the patch

    Plugin Author dashed-slug.net

    (@dashedslug)

    The fix is now out in version 5.0.1 of the plugin.

    Thread Starter alecmtetwa

    (@alecmtetwa)

    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.