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 and masked control panel login woes

April 12, 2011 4:09pm

Subscribe [5]
  • #1 / Apr 12, 2011 4:09pm

    We’re experiencing inconsistent behaviour in different browsers when logging into one of our sites via a masked_cp.  We have tried setting the Control Panel Session Type to cookies only, or sessions ids only or both.  We have also tried to set the cookie domain or leave blank.  We have also edited site_name, cp_url ,and site_url variables in the site’s index.php.

    We have looked at other posts and tried all recommended settings/approaches but none are 100% stable. Basically no matter what combination of settings we try there is always a problem with either logging in or out of a masked cp.  The issues are as follows:

    1)When submitting a username and password, page refreshes but does not take you into CP
    2)If login does work, one can’t log out, keeps refreshing CP, but clicking on any nav link takes you back to login, and weird behaviour ensues from there (kicked out to login screen randomly)

    What settings should we be using to get all browsers working correctly?

    The main site CP works fine (cookies only for both CP and User sessions).

    We’re using EE 2.1.3 Build: 20101220 / MSM Version: 2.0 Build: 20101215

  • #2 / Apr 13, 2011 7:02am

    John Henry Donovan

    12339 posts

    Trapeze Software Inc.,

    Can you update to latest build please as there was control panel login bug fixed

    If you set you cp_url in your index.php file be very sure that you are logging in with the same URL. I am referring to www vs non-www here

    You mention issues with different browsers. Can you please list the browsers and the different issues you have had?

  • #3 / Apr 13, 2011 10:35am

    Upgraded to latest build, but still have the same issue.  Right now we have no cp_url set in index.php, cookies only in CP, though we did try to set but didn’t make a difference.  We were also sure to log in to the correct URL (saw that warning in a previous post).  When logging in, all browsers are redirected to login screen when using the masked cp.  On the main site ie. /system they all log in ok.

  • #4 / Apr 14, 2011 2:31pm

    Sue Crocker

    26054 posts

    So if you attempt to login using http://secondsite.com/admin.php (renamed cp_url)? that doesn’t work?

    Here’s what I have for one of my MSM sites on EngineHosting:

    $assign_to_config['site_name'] = 'secondsite';
        $assign_to_config['cp_url'] = 'http://secondsite.com/admin.php';
        $assign_to_config['site_url'] = 'http://secondsite.com';

    (Changes made to the index.php in the second site)

    admin.php changes:

    define('MASKED_CP', TRUE);
    $system_path = "../system";

    See if that makes a difference. Check with your SuperAdmin account.

    Also make sure your admin.php is the renamed index.php file from your /system folder.

  • #5 / Apr 14, 2011 3:03pm

    YES! Using a full path for $system_path, we now have all browsers working except IE9.  This is probably a known issue (it’s not related to masked cp), but in IE9 one of two things will happen when you hit log out:  It will refresh and go into compatibility view (no confirmation pop up), then hitting log out the second time pops up the confirmation window but with no text or button.  If IE9 is already in compatibility view then hitting log out pops up the blank confirmation button.

  • #6 / Apr 15, 2011 7:36am

    Sue Crocker

    26054 posts

    I have IE9 for testing, but I haven’t fiddled too much with it. But glad that most of your issues are fixed now.

    Are you having the problem on all sites with IE9?

  • #7 / Apr 15, 2011 4:38pm

    yes all sites have that same ie9 issue.

  • #8 / Apr 16, 2011 9:43am

    Greg Salt

    3988 posts

    Hi Trapeze Software Inc.,

    Unfortunately IE9 doesn’t seem to work at all on my virtual machines so I’m unable to test and verify this. Therefore I have created a bug report for this so that we have a record and we can test it more thoroughly.

    Cheers

    Greg

  • #9 / Apr 19, 2011 6:07pm

    npmi

    5 posts

    I have a similar issue but this resolution is not working for me.

    We have MSM running several sites and are trying to get the masked CP access working. I have copied system/index.php to each site and updated the following:

      $system_path = “/full/path/to/system”; // this is the same in our system/index.php
      $assign_to_config[‘site_name’] = ‘siteA’;
      $assign_to_config[‘cp_url’] = ‘http://sitea.org/admin.php’; 

    Each site’s setup is the same, but we are only able to successfully login to our default site via the masked CP URLs. I checked the CP log and it looks like the user is successfully logging in, but the CP page never opens up. It looks like it’s trying to redirect to homepage, but then it ends up redirecting back to the login page. I tried manually inserting a valid CP URL, but it still sends me back to the login page.

    We can continue to access all sites just fine using the main system URL.


    (EE 2.1.3 Build 20110411)

  • #10 / Apr 19, 2011 7:12pm

    Sue Crocker

    26054 posts

    Hi, mpmi. Is this with a particular browser, or just with any of them?

  • #11 / Apr 19, 2011 11:03pm

    npmi

    5 posts

    This is on all browsers - tested on Chrome, Safari and Firefox.

  • #12 / Apr 19, 2011 11:06pm

    Lisa Wess

    20502 posts

    Hi, npmi -

    Are you able to switch sites when logged into the CP? If you can, please go through each Site’s Admin > Cookie Preferences and set a cookie domain (do not forget that leading period!) and let us know if that helps with logging in.

    Let us know, thank you!

  • #13 / Apr 20, 2011 9:27am

    npmi

    5 posts

    That was it - thanks! I figured it was something like that but never got around to that page. Probably should have been able to figure that out myself, but thanks so much. Now ready to try out Mountee!

  • #14 / Apr 20, 2011 9:54am

    Sue Crocker

    26054 posts

    Glad Lisa was able to help. Don’t hesitate to post as as needed.

    Trapeze Software - what about you? Have you tried setting a cookie domain?

  • #15 / Apr 20, 2011 11:08am

    We had set it before but chrome wouldn’t work. It’s working fine on all browsers without setting a cookie domain.

    Thanks.

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

ExpressionEngine News!

#eecms, #events, #releases