ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

If you cannot switch between MSM Sites in your Control Panel

October 30, 2007 7:04pm

Subscribe [1]
  • #1 / Oct 30, 2007 7:04pm

    Ben Kimball (UT)

    33 posts

    Originally this was a message I was composing to the Technical Support forums, and since I knew that Lisa would ask me for all the details of my setup, I put them all in there. In the process, I found the problem. So this is now a “How To”.... in this case, “How to avoid looking like a doofus on the Tech Support forums.”

    My problem was this: I had three sites set up using MSM. I could log in to my control panel with a “fresh” browser (i.e., with no cookies set) and switch from my default site to site 2. I could then switch to site 3. But once I’d visited the control panel for site 3, I could no longer switch back to site 2. I could switch between 1 and 3, but selecting 2 from the Sites tab just reloaded the page I was on without switching sites.

    So I wrote a long and very detailed message about the problem, including all of my setup details, and all of my cookie settings for all three sites. And in the process I discovered that for one of my sites, the one I couldn’t switch back to, my cookie settings did not match the other two sites:

    Good sites:
    Cookie Domain: “myserver.mydomain.com”
    Cookie Path: “/path/to/ee”
    Cookie Prefix: “mysite”

    Bad site:
    Cookie Domain: (blank)
    Cookie Path: (blank)
    Cookie Prefix: “mysite”

    When I fixed the bad site’s preferences to match, the problem was solved.

    This was particularly tricky, because once I’d visited a CP for a good site, I couldn’t access the bad site’s CP anymore to see the incorrect values! And since the “bad” site is one that isn’t due to be launched for a couple weeks, while the “good” site was launched today, I’d always go to the good site’s CP first. So it took a lot of investigation to turn up the missing values.

    Hope this helps someone.

    Cheers!
    Ben

  • #2 / Oct 30, 2007 7:07pm

    Lisa Wess

    20502 posts

    Just as a note, the domain should always be prefixed with a period. *winks at Ben*

    Thanks for posting this; you might like to post it as a comment in the docs on the Multiple Site Manager, or in the wiki.  Things get a lot harder to find in the forums as time goes on.

    I don’t know quite how I got implicated in this, either - I was at the gym. 😉

  • #3 / Oct 30, 2007 7:09pm

    Ben Kimball (UT)

    33 posts

    Thanks for posting this; you might like to post it as a comment in the docs on the Multiple Site Manager

    Oh yeah! I just hit my 100 post mark, didn’t I. Woo hoo!

    Ben

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases