Having trouble setting up second site (with multisite manager)
Posted: 03 September 2008 02:59 PM   [ Ignore ]  
Summer Student
Total Posts:  13
Joined  03-11-2008

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

Profile
 
 
Posted: 03 September 2008 08:33 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6671
Joined  05-07-2007

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

 Signature 
Profile
MSG
 
 
Posted: 06 September 2008 06:18 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  13
Joined  03-11-2008

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

Profile
 
 
Posted: 07 September 2008 09:40 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  25599
Joined  05-20-2002

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?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 07 September 2008 03:30 PM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  13
Joined  03-11-2008

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 smile

Profile
 
 
Posted: 08 September 2008 09:20 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  25599
Joined  05-20-2002

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.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 08 September 2008 03:38 PM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  13
Joined  03-11-2008

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.

Profile
 
 
Posted: 08 September 2008 03:51 PM   [ Ignore ]   [ # 7 ]  
Summer Student
Total Posts:  13
Joined  03-11-2008

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.

Profile
 
 
Posted: 08 September 2008 06:45 PM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  20950
Joined  04-29-2002

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?

 Signature 

EE 2.01PB - 2.x Bug Tracker | Docs | Upgrade from 1.x to 2.x | Build Update Instructions | 1.6.x Update Info

Most recent 2.x version: Build 20100215
Don’t forget to upgrade MSM and Forum as needed!

Profile
MSG
 
 
Posted: 09 September 2008 06:32 AM   [ Ignore ]   [ # 9 ]  
Summer Student
Total Posts:  13
Joined  03-11-2008

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.

Profile
 
 
Posted: 09 September 2008 07:52 AM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  20950
Joined  04-29-2002

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

 Signature 

EE 2.01PB - 2.x Bug Tracker | Docs | Upgrade from 1.x to 2.x | Build Update Instructions | 1.6.x Update Info

Most recent 2.x version: Build 20100215
Don’t forget to upgrade MSM and Forum as needed!

Profile
MSG
 
 
Posted: 09 September 2008 01:27 PM   [ Ignore ]   [ # 11 ]  
Summer Student
Total Posts:  13
Joined  03-11-2008

{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.

Profile
 
 
Posted: 09 September 2008 02:12 PM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  20950
Joined  04-29-2002

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.

 Signature 

EE 2.01PB - 2.x Bug Tracker | Docs | Upgrade from 1.x to 2.x | Build Update Instructions | 1.6.x Update Info

Most recent 2.x version: Build 20100215
Don’t forget to upgrade MSM and Forum as needed!

Profile
MSG
 
 
Posted: 09 September 2008 02:15 PM   [ Ignore ]   [ # 13 ]  
Summer Student
Total Posts:  13
Joined  03-11-2008

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.

Profile
 
 
Posted: 09 September 2008 06:25 PM   [ Ignore ]   [ # 14 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6671
Joined  05-07-2007

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

 Signature 
Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120044 Total Logged-in Users: 52
Total Topics: 126169 Total Anonymous Users: 38
Total Replies: 663631 Total Guests: 398
Total Posts: 789800    
Members ( View Memberlist )