LifterLMS Memory Limit and Timeout Errors: Causes and Fixes
Fix "Allowed memory size exhausted", maximum execution time and 502/504 errors on LifterLMS sites: which tasks use the most resources, which limits…
Read articleYour course site shows "Not secure" in the address bar, or the padlock disappears on some lessons, or Stripe stopped working after you switched to live mode. These are all HTTPS problems, and on a site that takes payments and logins they need fixing properly, not just covering with a plugin.
This guide explains why a LifterLMS site needs HTTPS everywhere, how to make the switch cleanly, where mixed content hides on course sites in particular, and what to update afterwards so payments and integrations keep working. It is written for site owners and the developers who support them.
An SSL certificate lets your site serve pages over HTTPS, which encrypts everything between the student's browser and your server. On a course site that includes passwords, personal details and payments. Several parts of LifterLMS and its add-ons depend on it:
Most hosts now include free certificates (often from Let's Encrypt) with one-click installation. The cost is no longer a reason to stay on HTTP.
LifterLMS has a Force SSL option under LifterLMS > Settings > Checkout, described as "Force secure checkout via SSL (https) on the checkout page(s)". It was designed for sites whose address is still HTTP: it sends the checkout and student dashboard to HTTPS and every other page back to HTTP.
That split is no longer good practice, and the redirects it adds can loop behind proxies and CDNs. The LifterLMS SSL documentation warns against enabling it when your site address is already HTTPS. Move the whole site to HTTPS as described below and leave Force SSL unticked. If you already have a redirect loop, our guide to LifterLMS login and redirect loops explains the mechanism and the recovery command.
https:// versions of your pages load, even with warnings.https://. You will be logged out; log in again on the HTTPS address.http:// links in the database (next section)..htaccess, so old links and bookmarks still work. Do this at the server, not with Force SSL.wp-config.php snippet that reads the X-Forwarded-Proto header.Moving from HTTP to HTTPS on the same domain does not, by itself, make LifterLMS think the site is a staging copy, because it compares its stored site URL without regard to the scheme. Changing the domain, including adding or removing www, does. If you change both at once, read our guide to staging sites and recurring payments so renewals are not paused unexpectedly.
Posts, settings and builder data still contain the old http:// address. WP-CLI's search-replace command handles serialised data safely. Run a dry run first:
wp search-replace 'http://example.com' 'https://example.com' \
--all-tables-with-prefix --skip-columns=guid --dry-run
The report lists how many replacements each table would get. If it looks right, run it again without --dry-run.
--all-tables-with-prefix includes tables that WordPress does not register itself, such as the LifterLMS custom tables, as long as they share your table prefix. By default the command only searches registered tables. See the search-replace documentation.--skip-columns=guid leaves post GUIDs alone; they are identifiers, not links.www form too, if links exist in both forms.Page builders that store layouts as JSON may save URLs with escaped slashes, such as http:\/\/example.com, which a plain replacement does not match. Elementor has its own Replace URL tool under Elementor > Tools; other builders have similar options. Run the builder's tool after the database replacement and regenerate its CSS.
No command-line access? A search-and-replace plugin from the WordPress plugin directory does the same job. Use one that handles serialised data and offers a dry run.
Mixed content means an HTTPS page loads something over HTTP. Browsers block insecure scripts, styles and frames outright, and either upgrade or flag insecure images, audio and video. Either way the padlock disappears, and blocked items simply do not work.
To find it, open the page, open developer tools (right-click, Inspect) and read the Console. Each mixed content warning names the exact URL. Check pages as a student, not only as an admin, because lessons, quizzes and certificates are only visible to enrolled users.
| Location | What to check |
|---|---|
| Lesson Video Embed Url and Audio Embed Url fields | Direct links to self-hosted media files saved with http://; a blocked media file shows as a player that never starts |
| Course and membership featured video and audio | The same fields on course and membership edit screens |
| Lesson, quiz and question content | Images, PDFs and embeds pasted years ago |
| Certificates | Background images and logos inside certificate templates; check a newly awarded certificate and an old one, because each awarded certificate stores its own copy of the content |
| Achievements | Badge images on achievement templates |
| Theme and builder settings | Logos, background images and custom CSS with url(http://...) |
| Hard-coded scripts | Tracking codes, chat widgets and fonts added in theme files or header/footer plugins |
Most of these are fixed by the database replacement above. Hard-coded URLs in theme files or custom plugins must be edited in the code. External resources that are only available over HTTP need replacing with an HTTPS source; there is no safe way to load them on an HTTPS page.
A Content-Security-Policy: upgrade-insecure-requests header tells browsers to request HTTP resources over HTTPS automatically. It is a useful safety net while you clean up, but it fails for resources that do not exist on HTTPS, so fix the URLs as well.
http:// address will fail. Our guide to LifterLMS Stripe webhook errors covers the details.The free plugin runs without it, but you should not take payments or logins without HTTPS. The Stripe add-on needs SSL in live mode, and REST API keys only work over HTTPS.
A server-level redirect plus corrected URLs in the database is cleaner. Plugins that rewrite URLs on every page load add work to every request and hide problems you could fix once.
Each awarded certificate keeps its own copy of the template content, so fixing the template alone does not change certificates already awarded. The database search-replace fixes them, or you can push the corrected template to existing certificates with the Sync Awarded certificates box on the certificate template's edit screen.
Their login cookies were set for the HTTP address. They need to log in once on HTTPS. If it keeps happening, some links still point to HTTP.
If your site still runs any page over HTTP, schedule the full switch: certificate, site addresses, database replacement, server redirect, then the services list above. If you are already on HTTPS, run a student through a lesson, a quiz and a certificate with the browser console open and fix every warning you see.
For sites with years of content, page builder layouts or several connected services, our LifterLMS migration team handles domain and HTTPS moves without losing renewals, and our support service can clean up mixed content for you. Contact us with your site address.
Fix "Allowed memory size exhausted", maximum execution time and 502/504 errors on LifterLMS sites: which tasks use the most resources, which limits…
Read article
How LifterLMS database updates run in the background, how to tell whether one is really stuck, and how to get it moving again without losing data…
Read article
What LifterLMS Stripe uses webhooks for, how to read failed deliveries in Stripe, what each error code means on a WordPress site, and how to fix and…
Read articleSkip the trial and error. Get specialist LifterLMS help and ship faster.