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 woes

September 17, 2012 12:56pm

Subscribe [3]
  • #1 / Sep 17, 2012 12:56pm

    Steven Grant

    894 posts

    Hi guys,
    I usually try to avoid MSM when I can but client has specifically asked for it on this project.

    So I’m running on EE 2.5.2 with MSM 2.1.4.

    This is a clean install, no bootstrapped config or anything.

    I added my secondary site via the CP, I then edited the index.php files for both sites and uncommented the assign to config options. However, when I look at the general config settings in the CP, the site_url never sets properly. I even tried the default for testing but the domain I set originally on install remains.

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

    Any ideas?

  • #2 / Sep 17, 2012 6:47pm

    Steven Grant

    894 posts

    just to update. I tried adding {site_url} variable in a template in both sites and the url returned as I would have expected.

    However, the site MSM menu in the CP links are wrong.

  • #3 / Sep 19, 2012 3:35pm

    Shane Eckert

    7174 posts

    Hey Steven Grant,

    I would really like to get in and take a look.

    Before I do that, can you upgrade to 2.5.3? There is a version mismatch with your current setup.

    Thanks!

  • #4 / Sep 20, 2012 10:28am

    Steven Grant

    894 posts

    I’m working locally at the moment and not sure how I could mirror a test environment without a spare domain.

    I upgraded to 2.5.3 and the same issue remains.

    here is index.php

    $assign_to_config['site_name'] = 'default_site';
    
     // Set the environment based on server
     switch($_SERVER['SERVER_ADDR']) {
      case('127.0.0.1') :
       $assign_to_config['site_url'] = 'http://domain.dev/';
       $assign_to_config['cp_url'] = 'http://domain.dev/system';
      break;
    
      default:
       $assign_to_config['site_url'] = 'http://domain.com/';
       $assign_to_config['cp_url'] = 'http://domain.com/system';
      break;
     }

    I have of course tried removing the switch statement but no dice there either.

     

  • #5 / Sep 21, 2012 6:51am

    Steven Grant

    894 posts

    Shane,
    So managed to configure an environment setup to mirror my local environment.

    Unfortunately I also appear to be locked out the CP now since making that move.

    I have created an FTP account for you guys to dig in as well. Just tell me where to ping the details.

  • #6 / Sep 21, 2012 4:31pm

    Shane Eckert

    7174 posts

    Hey Steven,

    Please be on the lookout for an email from EllisLab.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases