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 - Template debugging and sql queries don't appear on 2nd site

March 25, 2010 3:09pm

Subscribe [4]
  • #1 / Mar 25, 2010 3:09pm

    gkboyer

    13 posts

    Hi,

    I’m running two sites using MSM. I have “Display Template Debugging” and “Display SQL Queries” set to Yes for both sites. These display on my primary site, but not on my secondary site.

    Perhaps on a related note: when my secondary site is turned off, I can’t view the site even when I’m logged in as a Super Admin. So maybe it’s that the 2nd site isn’t recognizing my member info?

    Thanks,

    Gayle

  • #2 / Mar 25, 2010 5:31pm

    Ingmar

    29245 posts

    What version and build of EE and the MSM are you using? Yes, it looks as though you aren’t logged in to the second site as a Superadmin. What method of authentication are you using? Have you seen this article?

  • #3 / Mar 25, 2010 6:51pm

    gkboyer

    13 posts

    Sorry, I’m using EE 1.6.8 Build 20100121 and MSM 1.1 - Build: 20091201.

    My control panel login is set to both cookies and session ID, user login is cookies only.

    Also, I have “URL to your Control Panel index page” set to:

    http://www.myprimarysite.com/system/index.php for both sites.

    Should it be different for each site? i.e.,

    http://www.myprimarysite.com/system/index.php
    http://www.mysecondsite.com/system/index.php

    I took a look at the doc you referenced and I’m not sure whether it applies or not - both sites are completely public, with no login required, so the only issue is CP logins. It wasn’t clear to me if the steps in that document would address this.

    Thanks,

    Gayle

  • #4 / Mar 25, 2010 11:17pm

    Brandon Jones

    5500 posts

    Hi Gayle,

    Yes, that article does apply.  Also, indeed try setting “URL to your Control Panel index page” on your second site with the appropriate (2nd site) domain.

  • #5 / Apr 05, 2010 10:49am

    gkboyer

    13 posts

    OK, this seems to have worked. It may have been overkill, but nothing else seemed to do the trick:

    1st site:

    - placed admin.php and path.php in the root folder of my 1st site. In path.php, I set:

    $system_path = "./myeesysdir/";
       $cp_url = 'http://www.my1stsite.com/admin.php';
       $site_name = '1stsite_shortname';

    2nd site:
    - in System Preferences > General Configuration, I set the CP url to
      http://www.my2ndsite.com/admin.php

    - placed admin.php and path.php in the root folder of my second site. In path.php I set:

    $system_path = "../myeesysdir/";
       $cp_url = 'http://www.my2ndsite.com/admin.php';
       $site_name = '2ndsite_shortname';

    Then I cleared all EE caches for both sites, and deleted cookies & cache in all my browsers (this seems to be crucial).

    The CP login now works correctly for both sites.

    Gayle

  • #6 / Apr 05, 2010 10:56am

    Sue Crocker

    26054 posts

    That’s the recommended way to do it. Glad you were able to figure out what the problem was. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases