Old template revision being used
Posted: 18 August 2008 06:49 PM   [ Ignore ]  
Summer Student
Total Posts:  1
Joined  03-31-2008

I’ve got a weird problem where an old revision of the header/footer templates are being displayed instead of the latest version.

Here are the details of the site/install

1. EE 1.6.4 was installed in a directory called ‘calendar’
2. There is only one template group called ‘events’ (which is the default template group) with:
  2a. header
  2b. footer
  2c. index (summary listing page, also the default template page)
  2d. articles (full details page)
3. Both index and articles embed the header and footer templates
4. The ‘site’ template group has been deleted
5. Template revisions are turned on, set to 30
6. ‘Use Category URL Titles In Links?’ is turned on
7. ‘Category URL Indicator’ is set to ‘category’
8. Template caching is turned off


I’ve recently updated the links inside the header / footer templates. But the new changes are not showing up 100% of the time.

When viewing the index page via the following URL, the changes get displayed:
domain.com/calendar/index.php/events/

But when viewing the index page via the following URL, the changes don’t get displayed
domain.com/calendar/

Now heres another weird glitch to throw in there. When viewing certain categories, the changes will get displayed but when viewing the other categores the old revision gets displayed.

eg.
domain.com/calendar/index.php/events/category/category1/      <—works
domain.com/calendar/index.php/events/category/category2/      <—doesnt work


I’ve tried removing the cache via the control panel and manually deleting everything inside the ‘cache’ directory, but it didnt solve the problem.

Profile
 
 
Posted: 18 August 2008 07:13 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  20854
Joined  04-29-2002

Welcome to the ExpressionEngine forums, NDMopsadmin.

When you say:

domain.com/calendar/index.php/events/category/category2/ <—doesnt work

What do you mean?

Do you have a link we can look at?

Are you on the most recent build of EE?

 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: 18 August 2008 10:17 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  12
Joined  05-28-2008

Hi Sue,

I’ve sent you a PM with the links.

When you say:

domain.com/calendar/index.php/events/category/category2/ <—doesnt work

What do you mean?

When I view all the category1 weblog entries, the page is using the current header/footer revisions (which is correct), but when I try to view category2 entries it shows the old header/footer revisions.

The odd thing is that its using the same index page to display the entries, so regardless of which category is specified, it should always show the current header/footer

oops, forgot to add the build.

Build:  20080710

Profile
 
 
Posted: 19 August 2008 08:18 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  25568
Joined  05-20-2002

Have you ever saved templates as text files?  And in truth- really does sound like a cache issue.  You’re positive that you deleted everything in system/cache manually AND cleared all caches via ‘Admin- Utilities’?

And- can you paste the contents of the footer in question?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 19 August 2008 08:18 AM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  20854
Joined  04-29-2002

What I noticed is that as a non-logged in member, the link to August still says August in the header.

So in other words, I can’t replicate your problem in my browser.

 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: 19 August 2008 05:28 PM   [ Ignore ]   [ # 5 ]  
Summer Student
Total Posts:  12
Joined  05-28-2008

Hi Robin,

No, templates were not saved as text files initially. However I did switch it on for a little while to see if it would fix the problem, Which didnt work so Ive switched it back to ‘off’.

Yes I’m positive I cleared the cache manually. And I’ve tried to clear it via the Admin > Utilities > Clear Cached Data, even trying all the different options.

I’ve sent you a PM with the header/footer code

Profile
 
 
Posted: 19 August 2008 05:48 PM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  12
Joined  05-28-2008

Sue,

When you say header do you mean the url or the page heading or the ‘calendar’ tab?

Profile
 
 
Posted: 19 August 2008 06:32 PM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  20854
Joined  04-29-2002

See the attached screen shot.

Image Attachments
august.jpg
Click thumbnail to see full-size image
 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: 19 August 2008 08:14 PM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  12
Joined  05-28-2008

Sue,

I meant the ‘Calendar’ menu tab at the top, sorry if I wasnt clear enough.

The 1st image shows the page rendering everything correctly when viewing the ‘eco-tips’ category. Note the URL where the status bar is when I hover over the ‘Calendar’ tab.

The 2nd image shows the page using an older revision when viewing the ‘august’ category. Note the URL where the status bar is when I hover over the ‘Calendar’ tab.


The ‘Calendar’ tab should always go to http://www.domain.com.au/calendar/ regardless of which category is selected

Image Attachments
eco.jpgaugust.jpg
Click thumbnail to see full-size image
Profile
 
 
Posted: 20 August 2008 06:19 PM   [ Ignore ]   [ # 9 ]  
Summer Student
Total Posts:  12
Joined  05-28-2008

Any more ideas as to what is causing this problem?

Also another weird thing is happening, Some blog entries are now displaying the previous version…

Profile
 
 
Posted: 20 August 2008 06:32 PM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  20854
Joined  04-29-2002

I haven’t had a chance to look during this shift.

Hmmm… is there a rhyme or reason to which entries aren’t showing correctly? Are you using caching of any kind?

 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: 20 August 2008 06:46 PM   [ Ignore ]   [ # 11 ]  
Summer Student
Total Posts:  12
Joined  05-28-2008

No there doesnt seem to be any particular reason why which entry works and which doesnt.

And theres no caching on the server level.

Profile
 
 
Posted: 20 August 2008 07:00 PM   [ Ignore ]   [ # 12 ]  
Summer Student
Total Posts:  12
Joined  05-28-2008

I played around with the entry that didnt work and i got it to display correctly if i use the entry id and not the URL title for the entry

eg

Id worked
http://www.domain.com.au/calendar/index.php/events/article/15

URL title didnt work
http://www.domain.com.au/calendar/index.php/events/article/taking-stock/

Profile
 
 
Posted: 20 August 2008 08:09 PM   [ Ignore ]   [ # 13 ]  
Summer Student
Total Posts:  12
Joined  05-28-2008

Its fixed! I fiddled around with a few settings and it seems to have fixed it. However I’m not quite sure which one of the things i did fixed it. I think it was everything combined that fixed it.

1. I turned off ‘Save Template Revisions’—(didnt fix it)
2. Cleared all the revision history by going into each template and selecting ‘Clear revision history’ in the drop down menu—(didnt fix it)
3. Increased the ‘Maximum Number of Cachable URIs’ from 150 to 1000 in ‘System Preferences’  ›  ‘General Configuration’—(didnt fix it)
4. Manually deleting everything in the /system/cache/ directory


I still wish to know what caused this problem (I’ve turned ‘Save Template Revisions’ back on and set the ‘Maximum Number of Cachable URIs’ back to 150 in hoping to replicate the problem) as we are planning on rolling out several more complex website than this one and we would like to know how to avoid this issue.

Profile
 
 
Posted: 21 August 2008 02:57 PM   [ Ignore ]   [ # 14 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  29018
Joined  05-15-2004

It’s hard to tell, but if I had to bet, I’d say manually clearing the cache solved the issue.

 Signature 

ExpressionEngine 2.0 Downloads | Docs | Bugtracker

“If the English language made any sense, lackadaisical would have something to do with a shortage of flowers.” (Doug Larson)

Profile
MSG
 
 
Posted: 21 August 2008 06:20 PM   [ Ignore ]   [ # 15 ]  
Summer Student
Total Posts:  12
Joined  05-28-2008

Yes it would seem logical, but I’ve manually deleted the cache over 20 times before but it didnt solve the problem. So what was so special about the 21st time?

Ingmar Greil - 21 August 2008 02:57 PM

It’s hard to tell, but if I had to bet, I’d say manually clearing the cache solved the issue.

Profile
 
 
Posted: 22 August 2008 01:19 PM   [ Ignore ]   [ # 16 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  29018
Joined  05-15-2004

Hard to say. If it’s working now, I say let’s not complain too much and keep an eye on things in case it comes back. Consquently, and if there are not other unresolved technical issues, I’d like to close this thread if that’s OK with you.

 Signature 

ExpressionEngine 2.0 Downloads | Docs | Bugtracker

“If the English language made any sense, lackadaisical would have something to do with a shortage of flowers.” (Doug Larson)

Profile
MSG
 
 
Posted: 24 August 2008 05:13 PM   [ Ignore ]   [ # 17 ]  
Summer Student
Total Posts:  12
Joined  05-28-2008

Yeah sure thing, you can close the thread.

Profile
 
 
Posted: 25 August 2008 12:10 AM   [ Ignore ]   [ # 18 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  29018
Joined  05-15-2004

Thank you. As I’ve said, if you need additional assistance, please do not hesitate to open a new thread.

 Signature 

ExpressionEngine 2.0 Downloads | Docs | Bugtracker

“If the English language made any sense, lackadaisical would have something to do with a shortage of flowers.” (Doug Larson)

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 02:47 PM
Total Registered Members: 119595 Total Logged-in Users: 94
Total Topics: 125822 Total Anonymous Users: 59
Total Replies: 662080 Total Guests: 467
Total Posts: 787902    
Members ( View Memberlist )