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 problems after server migration

April 05, 2011 11:20am

Subscribe [5]
  • #1 / Apr 05, 2011 11:20am

    captaink

    43 posts

    Hi there,

    I’ve recently moved a site from a test to a live environment and I’m having problems getting MSM up and running. My symptoms seem to be similar to those experienced in this thread: http://ellislab.com/forums/viewthread/185173/

    I can only log in to the control panel if I turn MSM off in config.php.
    If I turn MSM on when in the control panel I can see the site listed but clicking on it does nothing.

    I’ve tried removing and adding the site again.

    EE: v2.1.3
    Build: 20101220

    MSM: v2.0
    Build: 20101215

    Many thanks,

    Greg

  • #2 / Apr 06, 2011 4:11am

    John Henry Donovan

    12339 posts

    Hi Greg,

    If I turn MSM on when in the control panel I can see the site listed but clicking on it does nothing.

    To confirm. This is in the right hand dropdown menu in the control panel?
    For your second site do you have anything in its index.php relative to your test environment?
    Also check your config.php for any test environment variables

  • #3 / Apr 06, 2011 5:34am

    captaink

    43 posts

    Hi John,

    Yes thats correct.

    Nothing in index.php or config that relates to the test environment. They are pretty standard.

    Greg

  • #4 / Apr 07, 2011 8:53am

    captaink

    43 posts

    Any further suggestions with this? I’m stumped and need to get the site live this week.

    Thanks,

    Greg

  • #5 / Apr 08, 2011 9:48am

    Sue Crocker

    26054 posts

    Hi, Greg. What settings do you have for the index.php in your secondary site?

  • #6 / Apr 08, 2011 10:40am

    captaink

    43 posts

    Hi Sue,

    I’ve not added or changed anything in the index.php other than altering the system path and adding the site_name variable.

    I’ve actually deleted the existing site now and tried creating a brand new site but it still won’t let me get to the control panel of the new site.

    I’ve tried turning off extensions, getting rid of any mod_rewrite stuff and gone through the DB to see if there is any reference to the test server but still nothing doing.

    Thanks,

    Greg

  • #7 / Apr 08, 2011 11:31am

    Sue Crocker

    26054 posts

    Greg, that’s just it, I’d like to see what exactly you set. Are you setting or using a masked control panel page?

  • #8 / Apr 08, 2011 11:39am

    captaink

    43 posts

    At the moment I don’t have a secondary index page as I deleted the secondary site entirely. Following the instructions here: http://ellislab.com/expressionengine/user-guide/cp/sites/createsite.html I can’t get to Step 3 as I can’t get to the control panel.

    For your reference here are the settings I have on the secondary index.php on the test site, which is working fine.

    $system_path = '../system';
    $debug = 0;
    $assign_to_config['site_name'] = 'orangery';
    $routing['directory'] = '';
    $routing['controller'] = 'ee';
    $routing['function'] = 'index';
    $assign_to_config['enable_query_strings'] = TRUE;
    $assign_to_config['subclass_prefix'] = 'EE_';
  • #9 / Apr 10, 2011 12:01pm

    Greg Salt

    3988 posts

    Hi captaink,

    Can you also please add the cp_url config item to your main index.php file and also make sure you add it in your secondary site index.php when you create that:

    $assign_to_config['cp_url'] = 'http://mydomain.com/system/';

    Does that enable you to login properly?

    Cheers

    Greg

  • #10 / Apr 18, 2011 6:41am

    captaink

    43 posts

    Hi Greg,

    No thats not changed anything.

    Also just noticed that I’m getting the following error when MSM is turned on:

    Site Error: Unable to Load Site Preferences; No Preferences Found

    Thanks,

    Greg

  • #11 / Apr 18, 2011 12:41pm

    captaink

    43 posts

    Solved the Site Error I was getting but still can’t switch between sites in the control panel.

  • #12 / Apr 19, 2011 8:41am

    captaink

    43 posts

    Just to recap on where I am at with this:

    - I can’t login to the control panel when MSM is turned on
    - If I turn MSM on in the control panel I can’t log out, I get redirected back to the CP home page
    - I can’t switch between sites, it just stays on the current page

  • #13 / Apr 19, 2011 10:52am

    captaink

    43 posts

    Quick update:

    I can successfully log in to the second site using masked access to go directly to it. I followed the steps found here: http://ellislab.com/expressionengine/user-guide/installation/masked_cp_access.html

    I still cannot switch between sites using the drop down menu.

  • #14 / Apr 19, 2011 2:22pm

    Sue Crocker

    26054 posts

    Hi, captaink.

    Well, that’s progress, have you considered creating a masked control panel for the first site?

  • #15 / Apr 20, 2011 12:54pm

    captaink

    43 posts

    Its progress but it feels very hacky and I’m having trouble with the Structure module using the masked CP.

    This is very frustrating as I have the sites working perfectly on a test server and the live server is actually on the same machine so there shouldn’t be any differences.

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

ExpressionEngine News!

#eecms, #events, #releases