• Resolved JensBay

    (@jensbay)


    First of all – Thanks for a great plugin!”

    Any advise on this would be highly appreciated.

    What I want to accomplish:
    Main site with a public part and some content for suscribers only.
    A number of subsites located in subdirectories, where only users registered on the specific blog have access.

    Scenario Overview:
    a) I am running a WP Multisite installation – the “main” site is placed at root level. Subsites are in subdirectories.
    b) “More Privacy Options” is installed and enabled for the network.
    c) “More Privacy Options” is not used on the “main” (top site). This is left at default. To control access here I have used “Ultimate Member”.
    d) For subsites I have set the level “Visible only to registered users of this site”.

    Problem I run into
    Before activating “More Privacy Options” on subsites:
    – After signing in on main site, I could access the 2 subsites without problem.
    – If I attempted to access the 2 subsites, without logging in to the main site, I was prompted with a login box. Login fully functional.
    – Once logged in, the user from subsite “a” was able to access data on subsite “b”. This is fully expected, as this is standard for WPMU.

    Symptoms after activating “More Privacy Options” on subsites, setting “Visible only to registered site users”:
    – Attempting to access the subsites directly without being logged in results in “This webpage has a redirect loop” / “ERR_TOO_MANY_REDIRECTS”
    – If user is already logged in at main site, access is correctly controlled to the subsites. User from sub-site “a” can not see sub-site “b” and vice versa.
    – When user logs out, the “This webpage has a redirect loop” / “ERR_TOO_MANY_REDIRECTS” is displayed again on (depressingly) gray page ??

    Any idea why / anyone had the same issues?
    Can I alter security an any of the subsite pages to permit display of “logon” and “home page” for subsites, thus avoiding the redirct issue?

    What I have attempted”:
    – Checked .htaccess file and replaced with “boiler template” version – Made no difference.
    – Have attempted to clear cookies etc by adding to “wp-config.conf” – Made no difference.

    https://www.ads-software.com/plugins/more-privacy-options/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Sader

    (@dsader)

    I think I can smell what you are stepping in if you can explain more clearly how you did this:

    ” the “main” site is placed at root level. Subsites are in subdirectories.”

    Sounds like you have more than one instance of WP running. The plugin calls auth_redirect, which is a function run by the core files, not the plugin – if auth_redirect borks – there is something wonky in the vanilla install.

    The plugin is designed for a WordPress Multisite Network, created according the the following instructions: https://codex.www.ads-software.com/Create_A_Network

    It will not work as expected in a cobbled together patchwork of single instances, if that’s what you have.

    Plugin Author David Sader

    (@dsader)

    Also:

    You said
    “Before activating “More Privacy Options” on subsites”

    and

    ” after activating “More Privacy Options” on subsites”

    The plugin activation is done only once in the Network admin of the main site. It must be “Network Activated”. It should not appear as a plugin anywhere else in the subsites – only as additional Reading settings.

    The plugin header has Network: true

    Therefore the plugin is only visible and activatable at the Network Admin page in a correctly configured Multisite Network.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multi Site config – This webpage has a redirect loop’ is closed to new replies.