• Resolved levdesign

    (@levdesign)


    We have been using the W3 Total Cache for a couple of years. Yesterday we noticed that for some reason it is causing our website to go completely blank.

    The console and the PHP debug file don’t show any errors.

    By using a health check plugin and manually deactivating all the plugins one-by-one we pinpointed the problem to the W3 Total Cache and specifically to Minify.

    When the plugin is activated but the Minify is Enabled the website goes blank. When we set the minify to Disabled the website goes back to normal.

    Our settings are:

    WordPress version: 5.2.2
    PHP version: 7.2.21
    W3 Total Cache version: 0.9.7.5

    Minify mode: manual
    Minify Cache Method: Disk
    HTML minifier: Minify (default)
    JS minifier: JSMin (default)
    CSS minifier: Minify (default)

    Do you have any suggestion what could be causing this?
    Thanks in advance.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @levdesign,
    I am sorry about the issue you are having and I am happy to assist you with this.
    As you pointed, Minify is set to manual. Have you recently updated your theme or any other recent updates?
    There is a possibility that you need to re-arrange and re-add JS and CSS files as some of the files may have been changed with recent updates.

    Thread Starter levdesign

    (@levdesign)

    Hi @vmarko, thanks for your reply. We haven’t done any major updates, just our normal weekly plugin update. FYI we are using a child Genesis theme by Studio Press (version 3.1.1 https://studiopress.github.io/genesis/changelog/). Do you think there could be some clash between the latest Genesis update and W3 Total Cache?

    About minification, even using automatic mode breaks the site. Only disabling it fixes the problem.

    Also you suggested re-arranging and re-adding JS and CSS files. Could you explain a bit what you mean by that.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @levdesign,

    As you mentioned, Minify is set to Manual. This means that you have manually added JS and CSS files to minify is that correct?

    Thread Starter levdesign

    (@levdesign)

    @vmarko Yes, on the Minify page we have added the CSS and JS files that we want to be minified. We have also excluded some that we don’t want. We haven’t changed any of these recently and they didn’t cause any problems before, so I don’t think re-arranging them could solve our problem.

    Here are some of our Minify settings:

    JS:
    Before </head>, Minify, Default (blocking)
    After <body>, Minify, No-blocking using “defer”
    Before <body>, Combine only, Default (blocking)
    HTTP/2 push: not enabled

    CSS:
    Ticked: Line break removal (not applied when combine only is active)
    @import handling: Process
    HTTP/2 push: not enabled

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @levdesign,

    There is a possibility that when you made updates, the files that you added to minify got updated also.
    Disable the settings in Performance>Minify one by one (HTML minify, JS minify and CSS minify) Save settings and purge the cache after each.
    See which setting might be causing this.
    I.E.
    If the issue is resolved after you disable JS minify, you either need to re-arrange or remove certain JS file from being minified.

    Thread Starter levdesign

    (@levdesign)

    Hi @vmarko,

    I did as you suggested. Disabling HTML minify fixes the issue. Disabling JS and CSS minify has no effect.

    Do you have any suggestion how to work around this problem with HTML minify?

    Thanks.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @levdesign,

    We need to see what is causing this. In order to do that we need to inspect the element when HTML Minify is enabled and disabled.
    Can you please share your website URL and share both use cases?

    Thread Starter levdesign

    (@levdesign)

    Hi @vmarko,

    The URL is https://development.animalcharityevaluators.org/.

    When HTML Minify is enabled the site goes completely blank and the source code is empty (both <head> and <body>).

    Now I have disabled the HTML Minify, so you can check the code. Let me know if you want it enabled for debugging.

    Thanks for your help.

    Thread Starter levdesign

    (@levdesign)

    Hi @vmarko,

    Just wondering if you had time to investigate the HTML Minify issue on our website. Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @levdesign,

    There is a possibility that there’s an error during the Minify process but the error logs should specify the problem. If you don’t see anything in the PHP error logs, you should enable debug in the plugin and check for log files in the cache directory.

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

The topic ‘Minify causing website to go blank’ is closed to new replies.