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.

EE v2.1.1 & MSM - Problem viewing sites offline as Superuser.

October 28, 2010 11:44am

Subscribe [6]
  • #1 / Oct 28, 2010 11:44am

    gmconsultant

    7 posts

    I have a problem viewing sites offline as Superuser

    This is MSM Environment:

    - The first site is http://www.mysite.com (main)
    - The second is aaa.mysite.com (secondary)

    Hosted on the same server. (Plesk environment)

    - Cookies are the same for both .mysite.com
    - Control Panel Session Type: Cookies & Session IDs.
    - User Session Type: cookies only.

    If I put both sites and the system offline, I see only the main site.
    The secondary site appears as if I were a standard user, offline…

    Can you help me?

  • #2 / Oct 28, 2010 4:59pm

    JasonLeeLab

    53 posts

    I had a similar problem with a MSM install where on 1 site I wouldn’t appear as a Super Admin member_group==1, but instead my member_group would show up randomly as 3.

    Try putting your second site back online and put {member_group} somewhere in a template and see if it renders as 1 or something different when your logged in as a Super Admin.

    If that is the case, I have no idea how to fix it but at least you will have narrowed it down.

  • #3 / Oct 28, 2010 5:10pm

    gmconsultant

    7 posts

    I had a similar problem with a MSM install where on 1 site I wouldn’t appear as a Super Admin member_group==1, but instead my member_group would show up randomly as 3.

    The same situation…
    when the second site is on line the result of {member_group} tag is 3 

    Now we need to understand why…

  • #4 / Oct 29, 2010 9:46am

    Ingmar

    29245 posts

    It seems as though you are only logged in to the backend, not the frontend. Have you tried to using cookies only for both the CP and the user sessions?

    Also, when you go to http://aaa.example.com/index.php/member/login and login there, does it work?

  • #5 / Oct 29, 2010 3:14pm

    gmconsultant

    7 posts

    Have you tried to using cookies only for both the CP and the user sessions?

    done.
    but the result (after log out and clear the cache of the browser) is the same…

    Also, when you go to http://aaa.example.com/index.php/member/login and login there, does it work?

    Yes, when I login from the /member/login the result of tag {member_group} is 1…

  • #6 / Oct 30, 2010 3:54pm

    Greg Salt

    3988 posts

    Hi Gianni,

    Please try removing the cookie settings from both sites, clearing your browser cookies and then trying again.

    Cheers

    Greg

  • #7 / May 06, 2011 1:57pm

    RevaCo

    240 posts

    Hello

    Also seeing this exact issue when logged in via the control panel.

    Using MSM on v2.1.3 Build 20110411

    Log into my default site and my member_group id is 1
    Log into site 2 and my member_group id is 3

    All cookies cleared prior to logging in.

    John

  • #8 / May 06, 2011 3:53pm

    Brandon Jones

    5500 posts

    John, are you logging in from the front-end or the control panel? What is set for the cookie domain for each site? Have you tried setting it to blank?

  • #9 / May 07, 2011 2:11pm

    RevaCo

    240 posts

    John, are you logging in from the front-end or the control panel?

    I’m logging in via the control panel - I rarely if ever login through the front end.

    What is set for the cookie domain for each site? Have you tried setting it to blank?

    The cookie domain was empty for both sites.

    Note: I tried logging into site B via the front end and now realise I was not logged in to siteB even though I could edit it via the CP.
    —-
    Let me take a step back and describe my setup.

    I am using MSM for two different domains. They are setup on a cPanel server with siteB being an Addon Domain of siteA

    * To edit the sites I login to siteA.com/system

    * siteA displays the {member_group} variable as ‘1’ on siteA

    * I then edit siteB from within the CP of siteA but siteB displays the {member_group} variable as ‘3’ (hence I’m not actually logged into siteB front end)

    How can this be rectified, I tried logging into the CP by going to siteB.com/system but the path does not exist.

    Note: my siteB index.php correctly points to the $system_path.

    Thanks
    John

    Question: Is it by design that you must CP login to a master siteA to edit other sites?

  • #10 / May 07, 2011 2:29pm

    Greg Salt

    3988 posts

    Hi John,

    What you’re describing sounds like the correct behaviour. You can certainly edit both sites from your main CP login but in order to view member content on a secondary site you need to separately login to the frontend. You can set up Masked Admin Access for each domain and that will allow you to login to each separately.

    Cheers

    Greg

  • #11 / May 11, 2011 12:31pm

    RevaCo

    240 posts

    Thanks Greg.

    Masked Admin Access did exactly as I wanted - logging in via Masked CP then logs me into the front end of the specific site as well. (And therefore my member_group is now 1 instead of 3)

    Cheers
    John

  • #12 / May 11, 2011 2:52pm

    Brandon Jones

    5500 posts

    Hi John,

    Makes sense as that will set a cookie for the second site’s domain, allowing you to show up as logged in on the front-end as well. Glad that works for you!

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

ExpressionEngine News!

#eecms, #events, #releases