User roles not working
-
I have created a subscriber user, and when the subscriber user logs in they get the maintenance mode page with [domain name]/wp-admin/profile.php in the address bar.
Once they backspace over the wp-admin/profile.php they are able to get in the website.
Why is this?
-
Hello @alex2545,
Please see:
1. Make sure that the “Subscriber” role is not introduced into “Frontend Role” & “Backend Role” inputs (plugin’s settings, “General” tab)
2. Apply: https://ww.wp.xz.cn/support/topic/not-working-on-https-4/#post-9507233Thanks.
-
This reply was modified 8 years, 5 months ago by
George J.
Hi George,
I tried what you suggested:
1. Subscriber is only introduced into Frontend Role
2. this did not work, it still shows the [domain name]/wp-admin/profile.php after logging in.@alex2545: it’s a little bit confusing. Please correct me if I’m wrong:
– when you access (as a subscriber) domain.com/wp-admin/ you want to display the maintenance mode page
– when you access domain.com (as a subscriber) you also want to display the maintenance mode pageIf yes, you should delete the “Subscriber” role from “Frontend role” input.
Hi George,
Sorry to not correctly convey what we are trying to achieve.
When we login as a subscriber, we are sent to the maintenance page. I thought the whole purpose to set a user role as frontend would be so they can access the website (not maintenance mode) once they log in.
Is that not correct?
@alex2545: by using “Frontend Role” or “Backend Role” you just give them access to frontend or backend, but there is no redirection after login.
For redirection … you have to also use the “Redirection” input. In your case you should introduce: http://your-domain.com/ or https://your-domain.com/ (if you have https enabled)
Hi George,
I don’t get it. All we are trying to do is show the website to the client as we are developing it. But we want it to remain in maintenance mode while we are doing this.How can the client see the front end while we have the website in maintenance mode?
@alex2545: I’ll try to explain again.
Just 2 steps:
1. set “Frontend role” input to “Subscriber”
2. if you want to redirect the user after login… you have to set “Redirection” input to: http://your-domain.com/ or https://your-domain.com/ (if you have https enabled) – replace your-domain.com with your real domain.This way, after login… the subscriber will be redirected to the frontend of the website. For guests and other users (with different roles) the site will remain in maintenance mode.
Hi George,
I got you know. I changed the line in the php file but how do I set the redirect after login? Where do I type my domain name in?@alex2545: please read again the last reply and apply just those 2 steps.
I understand what you wrote. My question is *how* do I use the “Redirection” input?
Is there something I need to type? Where do I type it?
@alex2545: already told you that. Anyway, in the “Redirection” input (from plugin’s settings > “General” tab)… you have to introduce your blog’s frontend address.
Example: http://your-domain.com/ or https://your-domain.com/ (if you have https enabled) – replace your-domain.com with your real domain.
I’m sorry George, I did not realize you were talking about the General tab of the plugin for the Redirection input. It’s all working now.
Thanks for going through this with me, I appreciate it very much.
@alex2545 You’re welcome. 🙂
-
This reply was modified 8 years, 5 months ago by
The topic ‘User roles not working’ is closed to new replies.