• I’ve been having an absolute bear of a time trying to figure out why I would get a login loop when trying to log into a wordpress multisite subdomain/subsite.

    I finally figured out that when I went to map a domain to the new site i was putting in the wrong site id. In the latest update they removed the column that shows what the site ID is. I assumed that you just counted how many sites you have and however far down on the list it was denoted the site ID. If you hover your mouse over the site name in the sites list it will display the site ID then.

    This is what worked for me and if i explained it wrong and anyone needs clarification please feel free to ask.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You did it awesome ??

    If you’d like a plugin to put the column back, there’s one here: https://halfelf.org/hacks/site-id-columns-multisite/

    Thread Starter flip_this

    (@flip_this)

    Thanks! I did try that plugin in my quest to find the site ID, but when I uploaded it it threw up an error for line 22. The only change I made to the code is I saw that it had the <?php at the top of the text but it did not have the ?> at the bottom and I haven’t had a chance yet to test and see if me adding ?> to the end is what caused the problem. I will test that and post back.

    Thread Starter flip_this

    (@flip_this)

    And the follow up.

    I tried it without the closing ?> and I received this error:

    Parse error: syntax error, unexpected T_FUNCTION in /home/www/wp-content/mu-plugins/wordpress_site_id_columns.php on line 22

    I used notepad and saved it as a php. Is there a different editor that would be better for creating and editing php documents?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    *eyes the world today*

    I don’t have a closing ?> on mine and it’s fine, but y’know since it works with it, I’m just going to put that back on the page since you’re the second person who had that problem. Stupid servers ??

    Thread Starter flip_this

    (@flip_this)

    Sorry I may have mis-typed, it doesn’t work with the ?> and it doesn’t work without it either. It throws up the same error either way.

    Is it possible that another plugin is calling the functions in the file?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    It’s always possible another plugin is doing that ??

    You can always change the functions.

    Make all the site_id’s and siteid_ into something else.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress Multisite Login Loop Fixed’ is closed to new replies.