I noticed that when I opened the main Cloudflare plugin page on my WordPress site, I got an error spinner. I thought maybe I should deactivate the plugin and reactivate it to fix the problem.
But that was a mistake. Because it then resulted in a “Too many redirects” error when I tried to access my site, effectively locking me out of wp-admin as well.
How to get back in to your WordPress site
- Sign in at Cloudflare.com.
- Select the site you want to fix.
- Click the SSL/TSL icon at the top of the page.
- For Your SSL/TLS encryption mode, click Full.
You should now be able to access your WordPress site and wp-admin.
How to get the Cloudflare plugin working again
Next up, reactivate the Cloudflare plugin and sign in.
- In your WordPress site, go to the Plugins page. For Cloudflare, click Activate. Then click Settings.
- Sign in with your Cloudflare credentials.
- Enter your API key. Here’s where to find it:
- On your WordPress site’s page at cloudflare.com, click the Overview icon at the top of the page.
- Scroll down to the bottom of the page and click Get your API token.
- Click API Tokens at the top of the page.
- For Global API Key, choose View.
If a 403 Forbidden error appears, click your browser’s Back button.
- Click View again. Your key should then appear. Copy and paste it in WordPress.
- You should now be signed in to your WordPress Cloudflare plugin.
- For Apply Recommended Cloudflare Settings for WordPress, click Apply.
Everything back to normal!