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.

Having trouble setting up second site (with multisite manager)

September 03, 2008 4:59pm

Subscribe [2]
  • #1 / Sep 03, 2008 4:59pm

    eurohelmets

    16 posts

    Hi,
    We have the multiple site manager, and I can get a second site set up but it doesn’t seem to be working correctly.

    I have one site that lives on the server at /home/sites/expressionengine.  I have a second site which lives at /home/sites/expressionengine/additionalsites/<sitename>.  I’ve followed the setup steps and I have a working site.  I’ve set up all the paths, however the second site is picking up content from the first site. 
    From the help files http://expressionengine.com/docs/cp/sites/code.html I should not be getting content unless I set the site parameter.  I’ve not set it, so I was expecting “the current site is used.”.  What am I doing wrong?  Is it because one site is embedded in another, and the paths are somehow get mixed up?  Or do I need to go through and specify the site parameter in everything?
    Thanks

  • #2 / Sep 03, 2008 10:33pm

    Greg Aker

    6022 posts

    eurohelmets:

    Couple of questions.

    What version/build of EE & MSM are you running?

    Can you please confirm in the site 2 path.php file that the site_name variable is properly set.

    You should not have to specify the site parameter in everything.

    Regards,

    -greg

  • #3 / Sep 06, 2008 8:18am

    eurohelmets

    16 posts

    Hi Greg,
    We’re using 1.6.3 of EE, MSM is 1.0 I think.

    The $site_name variable is set to the site short name.

    Thanks

  • #4 / Sep 07, 2008 11:40am

    Robin Sowell

    13255 posts

    1.6.4 was an important update, so getting on the latest version of EE and MSM is a good idea.  But let’s get things working first- I don’t think it’s a version issue.

    For the second site- if you go to ‘edit’ do any entries show?  (You can copy over entries, so it’s possible that’s what happened.  And- if you go to ‘Templates’- do you have a template group and do you have one marked as the ‘default’ template group?  And for testing- if you put just ‘This is site 2’ on the index template of the default template group, when you go to site2 does that show?

    And- is this second site running off of a different domain name- or is it basically being treated as a subfolder?  And lastly- if you just put a regular html file in that folder with ‘Hello World’ - is it coming up ok?

  • #5 / Sep 07, 2008 5:30pm

    eurohelmets

    16 posts

    Hi!
    Well, for the second site, if I go to edit there are no entries there at all.  They are all still at the first site.
    I do have a set of templates with defaults set, it’s an exact copy of the first site at the moment.
    I changed the title of one of the templates and the change was picked up.  But now something odd has happened!  The content of the first site is now being ignored and I have exactly what I want.  I’m not sure what happened.  Maybe I needed to change a template for the new site to be picked up?
    Regardless, problem solved, though I don’t know how!  Thanks for helping me 😊

  • #6 / Sep 08, 2008 11:20am

    Robin Sowell

    13255 posts

    Hm- maybe there wasn’t a default template group specified?  Though usually that leads to a blank page.

    Have you had a chance to surf around a bit, tweak templates, add entries?  Does it all seem to be working ok now, or are you running into any other issues?

    It was quirky, but if all is well now, we may have to chalk it up to the gremlins.

  • #7 / Sep 08, 2008 5:38pm

    eurohelmets

    16 posts

    Running into other issues.  My sites seem to be confused.  Sometimes the content from the first site appears in the second site.  Sometimes content from the second site appears in the first site.
    My template names and field short names are the same, but this shouldn’t be a problem, should it?
    I’ve set up path.php for both sites, filling in $system_path, $cp_url (absolute path), $template_group (same for both sites), $template (same for both sites), $site_url (different domain for each site), $site_index (index.php for both) and $site_name (uses the sites’ respective short names).  $site_404 and $global_vars are untouched.

  • #8 / Sep 08, 2008 5:51pm

    eurohelmets

    16 posts

    Extra info:
    It seems when I modify a template in the second site and view it, all is good, how it should work.
    But then when the sister page of the first site is refreshed, the content appears in the second site as well.

  • #9 / Sep 08, 2008 8:45pm

    Sue Crocker

    26054 posts

    Question for you.. when you created the second site, did you also copy the templates and weblogs from the first site?

    Do both sites share the same weblog short name?

  • #10 / Sep 09, 2008 8:32am

    eurohelmets

    16 posts

    When I created the second site, I copied the templates and the weblogs.  I did not copy weblog content however.  The templates seem to be set up fine, these can be changed independently of one another.  The content is confusing it.
    The sites have different short names.

  • #11 / Sep 09, 2008 9:52am

    Sue Crocker

    26054 posts

    Can you give an example exp:weblog:entries tag that you’re using on the first/second sites?

  • #12 / Sep 09, 2008 3:27pm

    eurohelmets

    16 posts

    {exp:weblog:entries weblog="links" orderby="title" sort="asc"}

    Both sites have a weblog called “links”.  Only site 1 has content in this weblog, unfortunately site 2 is picking it up also.

  • #13 / Sep 09, 2008 4:12pm

    Sue Crocker

    26054 posts

    Since you aren’t specifying *which* links weblog based on the site id, that’s why EE is getting confused. You’ll need to add a bit more to the exp:weblog:entries tag:

    site="siteA"

    where siteA is the short name for your site.

  • #14 / Sep 09, 2008 4:15pm

    eurohelmets

    16 posts

    Thanks.  I was trying to get around having to do that.
    On your help page http://expressionengine.com/docs/cp/sites/code.html it says there “If the site=”” parameter is not specified then the current site is used.”
    I don’t mind specifying the site if I have to, I just thought I had set it up wrong.  Thanks for your help.

  • #15 / Sep 09, 2008 8:25pm

    Greg Aker

    6022 posts

    eurohelmets:

    I’m glad Lisa & Robin got you are squared away.  Please don’t hesitate to let us know if you need anything else.

    Thanks,

    -greg

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

ExpressionEngine News!

#eecms, #events, #releases