Skip Navigation

[Resolved] Redirection to Primary Site on Multi Site Install

This support ticket is created 7 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 19 replies, has 2 voices.

Last updated by julieP 7 years, 4 months ago.

Assisted by: Beda.

Author
Posts
#542955

Thanks, great.

I will be back tomorrow with some updates, most likely I will have to pass this to the developers.

Thank you again.

#543362

I've set up an Online Site where we can use Multisite.
There is are 2 Sites now there along with the main site
beda-ms-01.otgs-yt.tk
beda-ms-02.otgs-yt.tk

Views, Access and Types are Globally enabled.

I sent you the Admin Details via Email.

I added an User of role contributor to the main site and as expected, this was not added to the subsites automatically, being as such a Guest.

I am very confused about this, since the Codex states otherwise.

Am I doing this wrong?
How do you register your Users?

Sorry if I ask you questions while you seek solutions, but this is how I know WordPress, it was also the reason for my original statement that this is not happening (the automatic add of the user)

I assume, we will learn from each other here 😐

Please apologise if I am not able to replicate the same behaviour as on your site.

You have full Admin access, please feel free to replicate the issue so I can debug it.

#543482

Hi Beda

Many thanks for the login info. Please feel free to ask as many questions as you need to ????

It's taken a little while for me to get my head around your install mainly because I couldn't understand why, when logged in on the main site as 'admin', I had to log in again to each of your sub-sites. That doesn't happen on my install; once logged in (as any role other than Guest), I can move around in the front and the backend freely without having to log in anywhere again. I checked the Network Setup and we both have

define('SUBDOMAIN_INSTALL', false);

and yet your URLs look like a sub domain set up rather than sub folders (which is how my install is). Are you able to confirm if you did indeed set it up to use sub domains or how have you set it to require log in to each sub site please? This may assist me with my set up.

Anyway let's get back to the question of roles.

A User with Contributor role is behaving on your site in exactly the same way as on my site; neither are seeing Subscriber content on the other sites (they are seeing Guest content). So this confirms we are both getting the same, apparently incorrect result (Codex states they automatically have Subscriber role on all sites).

I say 'apparently incorrect' because whilst playing around on your site, I had a little 'light bulb' moment. Do you think there's a possibility that the Codex is wrong or that the WordPress coding hasn't been set up as intended? I know that sounds extreme and I'm a mere beginner really but bear with me. If you go to either site one or site two on your install as Administrator and add an existing user, you can select what role they are to have on that site from a drop down. Now if WordPress automatically assigns Subscriber role on all non primary sites, why is Subscriber role given as one of the choices? If the Codex is correct, there is no need to add a User to a non primary site with Subscriber role because they should already have that role. You would only add them to another site if you wanted them to have a role higher than Subscriber. I guess it could just be that Subscriber role has been included in the drop down in error but if the Codex is wrong and Users have Guest role on all other sites, then the drop down list is as you would expect (and matches our experiences). In my humble opinion though, it isn't logical for a logged in user on a network to have a Guest role on any site so I favour the theory that the WordPress coding isn't set up as intended/to match the statement in the Codex. OR is it that there is something in Toolset's coding that is taking over and changing the default role from Subscriber to Guest?

I think Toolset's coding needs double checking and if that's not causing the issue, is there something Toolset can do to check whether it is in fact WordPress coding that is incorrect? Is there something in the meantime that Toolset can provide as a workaround which would give a default role of Subscriber to Users on non primary sites?

Sorry for the long response - probably not what you need on a Friday afternoon ????

#543706

when logged in on the main site as 'admin', I had to log in again to each of your sub-sites.

I was confused too about that, I assume it's a security feature, since this is an internal server service of onTheGoSystems.
I will consult about this with the Systems manager, but he will be back only Monday.

I have set it as subdomains, yes. I should be able to ask to change that, if it is necessary, although, this should not be a problem I think.

Do you think there's a possibility that the Codex is wrong or that the WordPress coding hasn't been set up as intended?

That is what I see on all my MultiSites, and I never heard or experienced that users get added as "potential" users with actual rights on other sites, if they are added to one site in an MS install.
That is why I was quite surprised when you showed me the Codex - but of course I believed what was written there and did not doubt, that I must have done a mistake on my first test.

Actually, does your Site behave like the Codex illustrates?
Are users automatically Subscribers even if not explicitly added as such manually to other sites?

In my opinion that is also expected, I don't want users of Site A to have a real role on Site B, that might not even be related at all to Site A.
I would even be concerned if that would happen automatically.

Additionally, several external Posts actually state that new users are NOT subscribers automatically on other Sites of the network:
hidden link
hidden link

And even better (or worse) the Plugins that allow this, clearly state:

Running a WordPress network? You no longer need to manually add new users to each of your sites.

hidden link

I think, with this I am secure enough to state (I know it's bold) that the Codex is wrong.
Didi you know that anyone logged in to WordPress can actually edit the Codex?
It's not a "donkey safe" Documentation.
It's a "user driven" Documentation, and errors do sneak in, I reported a few in past myself.

If the Codex is wrong, which I highly suspect by now, everything works just as expected.
Toolset can not change that, and does also not change the Network behavior, which means, we would not change the default role.
What would be possible is that Access would not recognize the role correctly, but as said, to me it seems, this is a Codex issue and not a Plugin BUG.

At least all tests actually speak for this, because even if you disable Access, the behavior does NOT change, which means, it's not an Access BUG, do you agree?

If so, I will ask around in my Team, and eventually file a WordPress Support Forum report, where other WordPress users could share their experience and finally, we could update the Codex.

Is there something in the meantime that Toolset can provide as a workaround which would give a default role of Subscriber to Users on non primary sites?

No, but why don't you use one of those Plugins, that actually offer exactly that feature?
I am quite sure, after the issue disappears.

You are free to test them on our Server as well, I will keep that site online until we are done here.

Eventually we will learn a lot here, and contribute to the WordPress community!

#544229

Hi Beda

This has been a really useful exercise; it's helped me work out the best way forward for managing users & content on my multisite. I've marked this thread as resolved now but have addressed your questions and made a few more comments. I assume if you wanted to add any follow-up at any point, you're able to re-open it?

To round things off then:-

Actually, does your Site behave like the Codex illustrates?
Are users automatically Subscribers even if not explicitly added as such manually to other sites?

No it doesn't (hence this thread!!) and no they're not.

Did you know that anyone logged in to WordPress can actually edit the Codex?

No, I didn't!! Wow that's a bit worrying.......

it's not an Access BUG, do you agree?

Yes, I do agree (I tried that test myself just to add weight to what we suspect)

If so, I will ask around in my Team, and eventually file a WordPress Support Forum report, where other WordPress users could share their experience and finally, we could update the Codex

That would be awesome - I'd really appreciate an update at the appropriate time if that's possible.

No, but why don't you use one of those Plugins, that actually offer exactly that feature?

Mmmm, bit nervous about using TWO plugins to manage Users. Could we add a feature request to Toolset developers to add the ability in Access to set/manage/change User's default roles (for single and multisites)? This seems to me to be a natural progression for Access.

<bockquote>You are free to test them on our Server as well, I will keep that site online until we are done here.
Eventually we will learn a lot here, and contribute to the WordPress community!

I think you can take the test site offline now - thank you. It's a good thing to be able to give something back.

Thanks so much for all your help and patience. Bye for now.