Knowledgebase

Fixing Mixed Content in WordPress Print

  • sslcertificateshttps, wordpress, troubleshooting, plugins, database, woocommerce, caching, domain, https, backup
  • 0

The standard procedure.

TAKE A BACKUP FIRST

A database search and replace cannot be undone.

THE METHOD

  1. Install Better Search Replace.
  2. Tools > Better Search Replace.
  3. Search for: http://yourdomain.com Replace with: https://yourdomain.com
  4. Select all tables.
  5. Tick "Run as dry run" and run it. Note how many changes it reports.
  6. Untick dry run and run it for real.

WHY THIS PLUGIN

WordPress stores some data in a serialised format that includes string lengths. A raw SQL replace corrupts it. This plugin handles serialisation correctly.

Never run a manual SQL search and replace on a WordPress database.

AFTERWARDS

Clear all caches: caching plugin, Cloudflare, browser

Re-save permalinks Check the console on several pages

WHAT REMAINS

Anything the console still reports is in theme files, plugin settings stored oddly, or external resources. Handle those individually.

DO NOT REPLACE GLOBALLY

Replace only your own domain. Replacing http:// everywhere breaks links to external sites.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot