WooCommerce Login Issue After Updating to WordPress 6.8.1

If you’re facing a WooCommerce login issue after updating to WordPress 6.8.1, here’s a step-by-step approach to identify and fix the problem:
🔍 Common Symptoms
- Users or admins can’t log in
- Login form reloads with no errors
- WooCommerce endpoints redirect incorrectly
- AJAX login (if used) fails silently
- Session not maintained after login
✅ Fix Guide
1. Clear Caches
- Clear browser cache and cookies
- Purge any page/cache from:
- WP Rocket, W3 Total Cache, etc.
- CDN services like Cloudflare
- Server-level caching (e.g., LiteSpeed, NGINX)
2. Check Permalinks
- Go to Settings → Permalinks
- Click Save Changes (even if no changes made)
- This refreshes rewrite rules
3. Check Theme or Plugin Conflicts
- Temporarily switch to Storefront or Twenty Twenty-Four
- Disable all plugins except WooCommerce
- Try logging in
- If it works: Enable plugins one by one to find the culprit
4. WooCommerce My Account Endpoint Fix
- Go to WooCommerce → Settings → Advanced
- Under Account endpoints, verify these slugs:
login
dashboard
orders
edit-account
logout
- Reset them to default if missing or changed
5. Session Issues
- WordPress 6.8.1 may be stricter about sessions and cookies.
- Ensure:
- Your server supports PHP sessions
session.save_path
is writable- WooCommerce session table (
_wc_session_
) exists and is functional
6. Check for Custom Code
If you’re using custom login redirects or filters like:
add_filter('woocommerce_login_redirect', 'custom_login_redirect');
Temporarily remove them to rule out interference.
7. Enable WP Debug
Edit wp-config.php
:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
Check wp-content/debug.log
after attempting login for any related errors.