• Since I updated both wp to version 4.6.1 and W3TC to version 0.9.5.1, when HTML Minify is activated, the defaut wp video playlists are broken. Same problem with or without JS or CSS Minification. The website is currently running without html minification.

    Any idea? Thanks in advance

    FRONT (BROKEN)

    /*
    1. ? Video Title ?
    2:00
    /*]]>*/

    HTML (BROKEN)

    <div class="wp-playlist-tracks">/*<!--[CDATA[*/<div class="wp-playlist-item"-->
            <a class="wp-playlist-caption" href="https://example.com/wp-content/uploads/2016/10/xxxxx.mp4">
                1.
               
                    <span class="wp-playlist-item-title">?&nbsp;Video Title&nbsp;?</span>
                   
               
            </a>
           
            <div class="wp-playlist-item-length">2:00</div>
           
        /*]]>*/</div>

    This is what I have when the HTML Minify is deactivated.

    HTML (NORMAL)

    <div class="wp-playlist-tracks">
        <div class="wp-playlist-item wp-playlist-playing">
            <a class="wp-playlist-caption" href="https://example.com/wp-content/uploads/2016/10/xxxxx.mp4">
                1.
               
                    <span class="wp-playlist-item-title">?&nbsp;Video Title&nbsp;?</span>
                   
               
            </a>
           
            <div class="wp-playlist-item-length">2:00</div>
           
        </div>
    </div>
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must activate “Manual” minify and put to “Ignored comment stems” [CDATA

    Thread Starter hugodebe

    (@hugodebe)

    Hi, I added [CDATA to the ignored comments and I tried all the possible configurations available in the HTML & XML section, but I continue having the same problem. The same with CDATA or [CDATA[

    Please, let me know if there is something else I could try.

    I’m thinking about duplicating the website in another server to downgrade the plugin and/or wp to try to find when this problem happened.

    Hi @hugodebe,

    the following seems to work:

    Under General Settings:
    Minify is enabled and set to auto.

    Under Minify:
    HTML minify settings is not enabled.
    JS minify settings is enabled and uses Default (blocking) for both options.
    CSS minify settings is enabled.

    I’ve tested this in multiple browsers (not logged in) with W3TC caches and browser caches primed and/or cleared.

    JS minify using anything other than Default seems to cause diverse problems, and I can consistently solve them using this option.

    HTML minify — irrespective of inline CSS or JS settings — seems to be the problem here, hence disabling it entirely. I also tried variations on [CDATA with no effect.

    Thread Starter hugodebe

    (@hugodebe)

    Hi francesdath, thanks for sharing.

    That’s exactly the setup I have.

    I would love to be able to minify html. It used to work in a recent past…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Minify HTML breaking the wp video playlist /*<!–[CDATA[*/’ is closed to new replies.