Topic Resolution: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34297
    Michael Johnson
    Guest

    I added an SSL certificate to my site. To avoid issues with mixed content, I ran the Better Search Replace plug in, replacing http with https, cleared caches. Everything worked fine for awhile…then after a few hours, pages weren’t loading due to mixed content. Ran the Better Search Replace plugin again, and it found everything was back to what it was! That is, I had to replace http with https again. It was as if I’d never run the search/replace.

    So, I cleared my W3 Total Cache caches, cleared my browser caches, ran Better Search Replace. Things worked fine for awhile…but then the problem recurred. I deactivated W3TC, and everything was fine again. I reactivated it…things good for awhile…then broken again. I UNINSTALLED W3TC, removed W3TC associated files and directories (as best as I could determine) and everything was fine. Then I reinstalled W3TC…and things broke.

    After much troubleshooting, I have determined that if W3TC is not activated, everything is fine forever. But once I activate it again, things break. Help!

    #34307
    Marko Vasiljevic
    Keymaster

    Hello Michael,

    I am sorry about the issue you are experiencing with mixed content and I am happy to assist you with this.
    I would recommend completely removing and re-installing W3 Total Cache, including all residual files:
    1. Purge Cache
    2. Deactivate and Delete Plugin
    3. Check .htaccess File (make a backup)
    W3TC will create many directives in the .htaccess file to control the caching behavior. Each section will start and end with comments like “#BEGIN W3TC Page Cache core” and “#END W3TC Page Cache core”.
    Ensure that no residual entries are leftover in your .htaccess file after deleting the plugin.
    4. Delete wp-content files and folders
    – cache folder
    – w3tc-config folder
    – object-cache.php (if exists)
    – advanced-cache.php (if exists)
    – dbcache.php (if exists)
    – upgrade folder
    – delete w3-total-cache folder in wp-content (if exists)
    5. Delete Cached Files from CDN (if using CDN)
    Besides deleting all the relevant files, if you use CDN then ensure to purge the cached content from your CDN. This is necessary when you enabled minify option in W3TC settings. You should delete the minified and combined scripts and CSS files from your CDN server to avoid the site breaking on the browser.
    6. Go to your wp dashboard and re-install W3 Total Cache

    Once enabled, Enable the settings one by one, save all settings and purge the cache after each setting is enabled, and make sure to check your website.
    Also in Page Cache, make sure that the option “Cache SSL (HTTPS) requests” is enabled
    I hope this helps!

    #34382
    Michael
    Guest

    That worked! Thanks so much.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Recurring Mixed Content with W3 Total Cache’ is closed to new replies.