Registration page not allowing users to log in
Amrayu78
We close off registrations to the site due to spam and bots.
To close off registration (this is handled via BuddyPress), I redirect /register page to the homepage. You can see this setting in the Redirection plugin.
When I want to open up registration, I disable the redirection for /register page to the homepage.
This used to work before all the caching was implemented.
Users are reporting the following:
- Fill out the form
- Upon submission, the page refreshes
- No confirmation, the original form is still available
Caching:
- Cloudflare caching is enabled
- Super Cloudflare caching plugin is enabled - this allows logged-in users to see uncached content, users who guests (logged out), see cached content.
Can you help debug why the registration form is not working as it should?
I suspect it's something related to cache.
Amrayu78
Max Romanchenko: I've removed the redirects for the registration page here: https://www.drama-otaku.com/register
I've tried to submit a test account and the form isn't submitting. Can you check to see what's wrong?
Amrayu78
Hi Max, nevermind, I figured it out. admin-ajax.php was being blocked in the browser for some reason and I read its because of cached files.
I cleared cache in bulk and the issue was resolved.
Do you have any idea how I can avoid this in the future? I guess I should look through what's being cached and be selective.
Amrayu78
Max Romanchenko: Sorry, the issue is still persisting. It's definitely some caching issue. I've temporarily disabled caching for now.
Max Romanchenko
Amrayu78 Hi Duong,
Since this problem is related to caching I don't think I can help much here. Unfortunately this is a common problem - conflict between cache and site functionality. I'm surprised that the cache doesn't react to exception rules, it's strange.... Maybe we should try another caching instead of Cloudflare?
Amrayu78
Max Romanchenko: Hi Max, I messed around with more settings yesterday and I think the issue is partially resolved. For a small number of users it's still an issue. For these cases I've asked them to use the temporary google form.
Hopefully you can help import these accounts next week? Thank you. It's definitely a smaller number than last time.
The last time barely anyone was able to register.
I will check more settings in cloudflare and see if I can debug more. Sorry for bothering you with this.
Max Romanchenko
Amrayu78 Of course I will help you import users, don't apologize. I'll wait for further instructions. Thank you.
Amrayu78
Max Romanchenko: Can you help check this? Thankyou.
Max Romanchenko
Amrayu78 Hi Duong, I added the url to the list of excluded caching urls (in the Super Cloudflare caching plugin settings):
/register*
After that I tried registering and it worked. I was able to apply for registration.
Not sure if that was the problem, but it worked for me. Please check from your side.
Amrayu78
Max Romanchenko: Thanks Max. Not sure if this has entirely been fixed, but we'll monitor this the next time we open registration. Thank you!