• Resolved er

    (@er2576)


    i’ve configured authorizer to work successfully with cas on our multisite (network activated), however it only appears to be working at top level /wp-admin/ and not at /subsitename/wp-admin/. the latter is giving us standard wordpress login screen.

    the /subsitename/wp-admin/admin.php?page=authorizer External Service tab does not have the information entered in the network level Settings (/wp-admin/network/admin.php?page=authorizer) even though “Override individual site settings with the settings below” is checked.

    any advice?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Paul Ryan

    (@figureone)

    Thanks, I confirmed the issue–must be a regression somewhere. Will look into it!

    Plugin Author Paul Ryan

    (@figureone)

    Sorry, spoke too soon. I’m unable to reproduce on a test multisite install.

    Can you try commenting out this line, and see if it changes anything for you?
    https://github.com/uhm-coe/authorizer/blob/master/authorizer.php#L5203
    (That only changes what you see in the plugin options behind the “This setting is overridden by a multisite option” overlay. Currently, it shows any custom options on the subsite, instead of the multisite values.)

    Thread Starter er

    (@er2576)

    Hi Paul,

    Commenting out that line seems to have had no effect. I also tried disabling all other plugins and that had no effect either.

    I’m not sure if it would be relevant but we are running our multisite on nginx instead of apache. Not seeing any errors in our logs nor any errors in my browser’s Console.

    I recall in the past (when running the same site on Apache, though I can’t recall if it had the same “subsite” login issue) when looking at a “subsite”‘s External Service tab, options would be grayed out, I believe with a tooltip on over that said they were being overridden by Network, or something similar. Currently I’m not seeing that at all but just a vanilla looking, unconfigured panel as I mentioned in the first post.

    Lastly, I just wanted to add that “Override multisite options” on the Advanced tab is not/was not checked.

    Thanks for looking into this.

    • This reply was modified 7 years, 3 months ago by er.
    Plugin Author Paul Ryan

    (@figureone)

    Can you try turning on WP_DEBUG and see if there are any errors/warnings there?
    https://codex.www.ads-software.com/Debugging_in_WordPress

    My best guess at this point is some configuration detail on nginx. I just spun up a new development multisite using nginx (ubuntu 16.04, php-fpm, nginx, mysql) and wasn’t able to reproduce the issue (in other words, Authorizer worked fine on all subsites I created). I used these nginx rules to make subdirectories work for subsites:
    https://codex.www.ads-software.com/Nginx#WordPress_Multisite_Subdirectory_rules

    Thread Starter er

    (@er2576)

    Wow WP_DEBUG led me directly to the problem and I was able to fix it.

    Basically this old site used the old wpmu constant, BLOGID_CURRENT_SITE, which was causing authorizer to complain (“Use of undefined constant BLOG_ID_CURRENT_SITE” in authorizer.php). I replaced that will BLOG_ID_CURRENT_SITE and everything works perfectly/as expected.

    Apologies for overlooking something as simple as turning on DEBUG :/ but thank you very much for helping me resolve this!

    Plugin Author Paul Ryan

    (@figureone)

    Ah, glad you figured it out! No worries, I’ve lost count of the number of times I’ve forgotten about WP_DEBUG. ??

    Plugin Author Paul Ryan

    (@figureone)

    FYI I’ve added backwards compatibility to the plugin for the old style BLOGID_CURRENT_SITE constant:
    https://github.com/uhm-coe/authorizer/commit/786c337f56b97b42c84c2a3d4737689d7487cec7

    It will make it into the next version.

    Thread Starter er

    (@er2576)

    Great! Thanks again!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘multisite overrides have no effect on network’s sites’ is closed to new replies.