Homepage rendering differently under different URLs
Posted: 25 August 2008 12:35 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  306
Joined  06-13-2006

I’m working on a site whose homepage is displaying different depending on how you get there.

I’ve got a template group called “home”, and I’ve designated its “index” template to be the site’s homepage. And if you go to the site’s domain—sorry, it’s still under development, so I can’t share—the template is rendered, but incorrectly. For example, certain sub-templates and custom global variables don’t render correctly.

However, if you type in the specific template path—e.g., http://mydomain.com/home as opposed to just http://mydomain.com/—then everything looks fine.

It’s almost as if going to the domain by itself (minus the “home” template group) pulls up an older version of the homepage template.

FWIW, this site is using the MSM. I don’t know if that might have anything to do with it, but I thought I’d throw it out there.

 Signature 

Opus - I feel a nostalgia for an age yet to come…
ExpressionEngine 1.6.5 (Build 20081031)

Profile
 
 
Posted: 25 August 2008 02:19 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15488
Joined  05-15-2004

It’s really very hard to say without seeing for ourselves. Did you make “home” the default template group? Also, what version and build are you on?

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 25 August 2008 03:59 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  306
Joined  06-13-2006

I’ll see if I can get clearance to show the URL.

Yes, the “home” group is the default template group. As version and build, I’m using ExpressionEngine 1.6.3 and 20080421 (I know, I know… I need to upgrade smile).

 Signature 

Opus - I feel a nostalgia for an age yet to come…
ExpressionEngine 1.6.5 (Build 20081031)

Profile
 
 
Posted: 25 August 2008 04:24 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12433
Joined  04-29-2002

How about posting the contents of your second site’s path.php file?

It might have something to do with your problems.

You can click on MSG beneath my avatar to send me a message.

Please remember to reference this thread so I can check it.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 26 August 2008 12:59 PM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  306
Joined  06-13-2006

Just sent you a PM.

 Signature 

Opus - I feel a nostalgia for an age yet to come…
ExpressionEngine 1.6.5 (Build 20081031)

Profile
 
 
Posted: 27 August 2008 06:38 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12433
Joined  04-29-2002

Got it, looking at it now.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 27 August 2008 06:50 PM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12433
Joined  04-29-2002

One thing I noticed is that there were blanks in the path.php file.

I tend to fill out every row when it comes to the MSM.

What happens if you fill out these two rows?

$template_group = “”;
$template = “”;

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 28 August 2008 10:49 AM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  306
Joined  06-13-2006

Okay, I made the following updates:

$template_group = "home";
$template = "index";

But the issue still persists.

 Signature 

Opus - I feel a nostalgia for an age yet to come…
ExpressionEngine 1.6.5 (Build 20081031)

Profile
 
 
Posted: 28 August 2008 02:47 PM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12433
Joined  04-29-2002

OK, is this the same site you’re having problems with in your other thread?

Were you able to update it?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 28 August 2008 04:24 PM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  306
Joined  06-13-2006

Yes, it’s the same site. I realized, after the two threads came into being, that things might be a little confusing. If you want to condense them into a single thread, that’s fine by me.

And no, I haven’t had a chance to upgrade yet. I’m waiting on our I.T. department.

 Signature 

Opus - I feel a nostalgia for an age yet to come…
ExpressionEngine 1.6.5 (Build 20081031)

Profile
 
 
Posted: 29 August 2008 02:57 PM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15488
Joined  05-15-2004

Just keep us in the loop smile Thanks.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 03 September 2008 02:57 PM   [ Ignore ]   [ # 11 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  306
Joined  06-13-2006

Looks like upgrading to 1.6.4 did the trick (crosses fingers). Both the “home” and non-“home” URLs are now displaying the same content. Thanks for the help.

 Signature 

Opus - I feel a nostalgia for an age yet to come…
ExpressionEngine 1.6.5 (Build 20081031)

Profile
 
 
Posted: 03 September 2008 03:01 PM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15488
Joined  05-15-2004

Very good smile I’ll go ahead and close this one (keeping fingers crossed as well). If it comes back, or anything else comes up, simply start a new thread (referencing this one, if necessary). Thanks.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

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 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65085 Total Logged-in Users: 37
Total Topics: 82223 Total Anonymous Users: 20
Total Replies: 441916 Total Guests: 221
Total Posts: 524139    
Members ( View Memberlist )
Newest Members:  BombermanhaimtuagocsadamVeNeaDoRHildegaardhrtrulzUNFORGIVEN IIIEmmanuelYanYanTomsB