LifterLMS Login Loop and Redirect Loop Fixes
Find and fix the cause of a LifterLMS login loop or "too many redirects" error: Force SSL, membership restriction redirects, cookie and domain…
Read articleStripe has emailed to say webhook deliveries to your site are failing. Or the Webhook Status in LifterLMS says "Not installed", a refund you made in Stripe never reached the order, or a student who paid through Stripe Checkout is still waiting for access. All of these point at the same link: Stripe trying to tell your site something and your site not accepting it.
This guide is for site owners and developers running the LifterLMS Stripe add-on. You will learn which LifterLMS features depend on webhooks, how to read Stripe's delivery log, what each error means on a WordPress site, and how to fix the cause and recover the events you missed.
For installing and connecting Stripe in the first place, see our LifterLMS Stripe setup guide.
Stripe is part of LifterLMS through the paid LifterLMS Stripe add-on, not the free core plugin. When you connect your Stripe account, the add-on creates a webhook endpoint in Stripe for your site. According to the LifterLMS Stripe documentation it listens for six events:
charge.failed and charge.refunded: a charge failing after the fact, and refunds issued from the Stripe dashboard.checkout.session.completed, checkout.session.expired, checkout.session.async_payment_succeeded and checkout.session.async_payment_failed: the outcome of payments made through Stripe's hosted checkout page, including payment methods that confirm later.It helps to know what webhooks are not used for. LifterLMS renewals are started by your own site on the payment date through its scheduled actions, not by Stripe. A renewal that never happened is a scheduling problem; see recurring payments not processing. Webhooks matter for what happens outside the moment of payment: hosted checkout outcomes, delayed payment methods, refunds and late failures.
When webhooks fail, the symptoms are:
Go to LifterLMS > Settings > Checkout and open the Stripe section. Webhook Status should show a green check and "Installed". If it says "Not installed":
Stripe's delivery log tells you exactly what your site sent back. Open the Stripe Dashboard, go to Workbench, select Webhooks, choose the endpoint that points at your site and open the Event deliveries tab. Each event is listed as Delivered, Pending or Failed. Click a failed one to see the HTTP status code and the response body your server returned.
Make sure you are in the right mode (live or test) and on the endpoint for the right domain. After a domain change or a staging copy, there may be several endpoints, some pointing at sites that no longer exist.
Stripe documents the meaning of each response in its webhooks guide. Here is what each usually means on a LifterLMS site.
| Stripe shows | Likely cause on WordPress | Fix |
|---|---|---|
| Unable to connect | The site is local, offline, on a staging URL that no longer resolves, or blocked at the network level | Point the endpoint at a public, live URL; delete endpoints for old sites |
| 302, 301 or another 3xx | A redirect: HTTP to HTTPS, www to non-www, a trailing slash rule, a "coming soon" or maintenance plugin, or a language plugin adding a prefix | Stripe treats redirects as failures. Make sure the site address in WordPress matches the address the endpoint uses, then re-save the Stripe settings so the endpoint is registered at the final URL |
| 401 or 403 | HTTP basic authentication, a firewall or security plugin, a host-level bot filter, or a CDN challenge page blocking Stripe's servers | Allow the webhook URL through the firewall, or allow Stripe's published IP addresses; never put basic authentication in front of a site that takes payments |
| 404 | The add-on was deactivated, the endpoint URL belongs to an old domain, or a security plugin hides the path | Reactivate the add-on, remove stale endpoints, re-save the Stripe settings |
| 405 | A server or CDN rule refusing POST requests to that URL | Allow POST to the endpoint |
| 400 | Your site received the request but rejected it as invalid | Enable debug logging and read the Stripe log on your site (below) |
| 500 or another 5xx | A PHP fatal error, memory exhaustion or a database error while handling the event | Check the PHP error log for the delivery time; see our guide to LifterLMS fatal errors |
| TLS error | An expired certificate, a missing intermediate certificate, or TLS older than 1.2 | Fix the certificate chain; Stripe supports TLS 1.2 and 1.3 only |
| Timed out | The site took too long to respond: an overloaded server, slow plugins running on every request, or a remote call that hangs | Find the slow code; see speeding up a LifterLMS site |
The redirect case deserves extra attention, because it is invisible in a browser: your browser follows redirects silently, Stripe does not. Test the endpoint URL from a terminal, without following redirects:
curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" -X POST "https://example.com/the-endpoint-url-from-stripe"
Use the exact URL shown on the endpoint in Stripe. A 3xx code here means you have found the problem. Your site will probably reject the request because it is not a real Stripe event, which is expected; what matters is that it is not a redirect, an authentication challenge or a 404.
When Stripe reaches your site but the response is an error, the add-on's own log tells you why.
stripe-.Debug logging only records events while it is switched on, so turn it on before you test. Turn it off when you finish; payment logs grow quickly and should not be kept longer than you need.
Fixing the endpoint does not process the events that failed while it was broken. Stripe helps in two ways:
stripe events resend <event_id> --webhook-endpoint=<endpoint_id> works for up to 30 days.Older than that, reconcile by hand. Compare recent payments and refunds in Stripe with the orders under the Orders menu in WordPress. For a refund made in Stripe that never reached LifterLMS, record it on the order and remove access as your policy requires. For a completed Stripe Checkout payment whose order is still pending, check the payment in Stripe and then complete the order or enroll the student manually. Add an order note so the history makes sense later.
Stripe can deliver the same event more than once and does not guarantee the order of delivery. If you write your own code against Stripe events, track event IDs so you never process one twice.
stripe listen --forward-to command to forward test events to a local site, and stripe trigger to send sample events.No. Your site starts each renewal charge on the due date through its scheduled actions. Webhooks report events that happen later or outside your site, such as refunds and hosted checkout results.
Stripe warns by email when deliveries keep failing, and an endpoint that fails for a long time can be disabled. Fix the cause and check that the endpoint is enabled in Workbench.
Yes, if they point at sites that no longer exist or old domains. Keep the one LifterLMS shows as installed for the live site.
The status confirms the endpoint exists in Stripe. It cannot tell whether your server accepts deliveries. The delivery log in Stripe is the real test.
Open the Event deliveries tab for your live endpoint now and note the status code of the most recent failures. Match it to the table above, fix the cause, and resend the failed events while they are still within Stripe's window. Then reconcile anything older.
If you are dealing with missing enrollments, refunds that were never applied or a firewall you do not control, our LifterLMS integrations team works on payment set-ups every week, and our support service can reconcile orders with Stripe for you. Contact us with the error code Stripe shows.
Find and fix the cause of a LifterLMS login loop or "too many redirects" error: Force SSL, membership restriction redirects, cookie and domain…
Read article
Why LifterLMS student progress looks wrong, resets or disappears, where progress is actually stored, and how to fix stale percentages, lost quiz…
Read article
Work out why a LifterLMS lesson video is blank, blocked or will not play: wrong embed URLs, privacy and domain settings, referrer policies…
Read articleSkip the trial and error. Get specialist LifterLMS help and ship faster.