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.

MSM CP Issue

February 08, 2008 3:46pm

Subscribe [2]
  • #1 / Feb 08, 2008 3:46pm

    JohnnFour

    15 posts

    Hi,

    I’ve set up a couple of additional sites and they appear in my CP’s Sites menu just fine.

    Site #1 is working just fine. I can change settings, publish, etc.

    However, I cannot seem to be able to access site #2 or site #3 in the control panel. I’ll select site #2 or #3 from the menu, and on reload I get the settings for site #1. The breadcrumbs always display a path for site #1.

    I’m running MSM and 1.6.2

    Any ideas?

    Let me know if I can provide more info, screenshots, or files to help debug this problem. Thanks very much.

  • #2 / Feb 08, 2008 3:52pm

    Lisa Wess

    20502 posts

    Hi, John,

    The first thing to do is forcing you to use Sessions and see if that lets you change sites.  This is usually indicative of a cookie setting being incorrect, so once we can change sites, we can go see what might be happening. 

    Add this line to your config.php:

    $conf['admin_session_type'] = "s";

    and try logging in and logging out - let us know if you can then change sites.

  • #3 / Feb 08, 2008 5:01pm

    JohnnFour

    15 posts

    Thanks Lisa. Line added, and no luck.

  • #4 / Feb 08, 2008 5:04pm

    Lisa Wess

    20502 posts

    Did this ever work, JohnnFour?

    Also, did you set up your path.php files correctly in the subdomains?

    I’d also like to try another thing.  If you copy your admin.php file into one of the other domains and then visit that domain/admin.php - can you login and administer that site?

  • #5 / Feb 10, 2008 4:00pm

    JohnnFour

    15 posts

    Hi Lisa,

    [quote author=“Lisa Wess”]Did this ever work, JohnnFour?

    Hmm, not sure what you are referring to. Did multi-site? No, I’ve never been able to get it working.

    [quote author=“Lisa Wess”]Also, did you set up your path.php files correctly in the subdomains?

    I followed these instructions: http://expressionengine.com/docs/cp/sites/domainsetup.html

    There’s no guarantee I followed them correctly though, lol.

    [quote author=“Lisa Wess”]If you copy your admin.php file into one of the other domains and then visit that domain/admin.php - can you login and administer that site?

    Yes. Sweet. I fiddled with it a bit and verified I am able to make changes to that domain/site/CP admin settings.


    What do you think is my next step?

  • #6 / Feb 10, 2008 9:29pm

    Lisa Wess

    20502 posts

    The next step is to login to each site and go to Admin -> System Preferences -> Cookie Settings and let us know what is entered in each of those 3 boxes for each site.

  • #7 / Feb 11, 2008 10:29pm

    JohnnFour

    15 posts

    Hi Lisa,

    The answer is nothing.

    I have three domains setup. Under each domain’s cookie setting the three fields are empty.

  • #8 / Feb 12, 2008 12:23pm

    Robin Sowell

    13255 posts

    The cookies really shouldn’t be jamming the backend with session- but go ahead and add a proper cookie domain to each site- .mysite.com - note the initial dot.  Then I’d log out, clear cookies- see if that helped at all.  Might also try using a different browser to see if it makes a difference.

    Seems odd sessions didn’t get you in.

  • #9 / Feb 14, 2008 4:38pm

    JohnnFour

    15 posts

    [quote author=“Robin Sowell”]add a proper cookie domain to each site- .mysite.com - note the initial dot.

    Ok, two sites have domains, and the third, main site runs from IP only right now.

    Cookies are now added for the two domains.

    How should I add the cookie info for the IP-only site? A dot in front of the IP?

    [quote author=“Robin Sowell”]Then I’d log out, clear cookies- see if that helped at all.

    Ok, did that. No luck.

    [quote author=“Robin Sowell”]Might also try using a different browser to see if it makes a difference.

    Ok, did that as well, no luck.

    We’re getting closer though, I can feel it. 😊

    Cheers.

  • #10 / Feb 14, 2008 4:41pm

    Lisa Wess

    20502 posts

    John, you are logging in via admin.php for each domain when testing this, yes?

    And the current problem is that you can login to each Site, but can’t use the Switch Sites functionality?

  • #11 / Feb 14, 2008 5:13pm

    JohnnFour

    15 posts

    Hi Lisa!

    I have three sites:

    http://63.89.31.81/
    http://www.site1.com/
    http://www.site2.com/

    http://63.89.31.81/ is where the first EE install occurred, so I guess that’s the main site?

    When logging into the CP using my regular CP path on http://63.89.31.81/, I cannot switch to site1.com or site2.com.

    After copying the admin.php file from system\utilities to the root of site1.com and site2.com I can login to each and switch to any of the three sites and administer them.

    I also copied admin to the root of http://63.89.31.81/ but still cannot switch to site1.com or site2.com from there.

    I have a Cookie Domain Setting set for .site1.com and .site2.com and .63.89.31.81. I have no cookie paths or cookie prefixes set.

    Cheers,

    Johnn

  • #12 / Feb 14, 2008 5:19pm

    Lisa Wess

    20502 posts

    Aha, so you can login AND switch sites from any but the one with the IP address, yes?  There’s no chance of getting a domain or subdomain for that one, instead?

  • #13 / Feb 14, 2008 5:29pm

    JohnnFour

    15 posts

    No, I’m unable to get a domain put in place of the IP. The IP is intended to be placeholder while I get my live site converted over to EE. Then I’ll transfer my domain over to the hosting account. The site host has the account linked to my domain, and I can’t put a temporary domain in there to facilitate easier EE admin. Bleh.

  • #14 / Feb 14, 2008 6:33pm

    Lisa Wess

    20502 posts

    Can you try the IP without the leading period?

  • #15 / Feb 14, 2008 9:49pm

    JohnnFour

    15 posts

    Just tried without the period and still no luck. Guess it’s a config issue between the IP, hosting, and EE? Is there harm in leaving admin.php in the root of one of the two domains and using that until the IP gets replaced with a domain name?

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

ExpressionEngine News!

#eecms, #events, #releases