Track_Views count incrimenting off…???
Posted: 07 March 2008 07:13 PM   [ Ignore ]  
Lab Assistant
RankRank
Total Posts:  169
Joined  09-19-2007

Thanks for this thread… I am getting increments of 4, but I have none of the elements of concern mentioned here.

Profile
 
 
Posted: 07 March 2008 07:46 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
RankRank
Total Posts:  169
Joined  09-19-2007

So, my multiple counting was due to CSS links… I don’t know why, but when I removed the stylesheet items identified below, the view count worked…curious!

<link rel=‘stylesheet’ type=‘text/css’ media=‘all’ href=’{stylesheet=css_styles/style_layout}’ />
<link rel=‘stylesheet’ type=‘text/css’ media=‘all’ href=’{stylesheet=css_styles/style}’ />
<link rel=“alternate” type=“application/rss+xml” title=“RSS” href=”{path=css_styles/rss_2.0}” />
<link rel=“alternate” type=“application/atom+xml” title=“Atom” href=”{path=css_styles/atom}” />

<title>Boomer Coffee House</title>
—-REMOVED—-> <link href=“seafoam_style.css” rel=“stylesheet” type=“text/css” />
—-REMOVED—-> <link href=“style_layout.css” rel=“stylesheet” type=“text/css” />
—-REMOVED—-> <link href=“style.css” rel=“stylesheet” type=“text/css” />
</head>

Profile
 
 
Posted: 26 March 2008 09:05 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
RankRank
Total Posts:  169
Joined  09-19-2007

I thought I had this fixed… I now get increments of 2.  I will have to investigate some more.

Profile
 
 
Posted: 27 March 2008 09:09 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23547
Joined  05-20-2002

Hm- I’m going to break this off into a new thread, since it seems it may not be related.  First thing- what build/version are you running?  Second- if you create a test template w/nothing on it but the weblog tag- no style links no nothing else- does that increment properly?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 29 March 2008 02:21 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
RankRank
Total Posts:  169
Joined  09-19-2007

Hi Robin,

This is getting very strange..

I started by duplicating my main article template.

The original url is:

/index.php/self_expression/article/whats_up_with_the_fungi/

so then I copied the ‘article’ template to ‘article2’ and article2 works just fine.  It has the same exact code as ‘article’ the only difference is just the name.

any ideas?

Michael

Oh - here is the build info…

ExpressionEngine 1.6.2 -
Build:  20080225

Profile
 
 
Posted: 30 March 2008 09:54 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23547
Joined  05-20-2002

Hm- can you copy/paste the full contents of article2 template?  Put them inside [ code ] tags and we can take a closer look.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 30 March 2008 11:57 AM   [ Ignore ]   [ # 6 ]  
Lab Assistant
RankRank
Total Posts:  169
Joined  09-19-2007

This is article2


{embed=“templates2/open_2”}
  <div id=“main_body”>
      <div id=“blow_in”>
      <div class=“section_blowin”>
      <!—google_ad_section_start—>
          {embed=“widgets/article”}
      <!—google_ad_section_end—>
      {embed=“widgets/comments”}
      {embed=“widgets/submit_comments”}
        </div>
      </div>
<div class=“clear_floats”>.</div>
<div class=“column1_300”>
</div><!—end class column1_300—>
<div class=“column2_300”>
</div><!—end class column2_300—>
</div><!—end id main_body—>
<div class=“column3”>
{embed=“widgets/author_cp”}
<div class=“section_plain”>
{embed=“widgets/article_margin”}
</div>
</div>
<!—end class column3—>
{embed=“templates2/close_1”}

Profile
 
 
Posted: 31 March 2008 08:00 AM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23547
Joined  05-20-2002

Hm- not much in the templates but the embeds.  Though I can’t quite figure how the template group name should be affecting things.  Could be some sort of conditional in play in one of the embeds, though. 

But only way I see to figure this out is reduction test it.  Take out one embed at a time until it stops double counting- this will hopefully allow us to zero in on where the problem code is.

Make sense?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 31 March 2008 08:06 AM   [ Ignore ]   [ # 8 ]  
Lab Assistant
RankRank
Total Posts:  169
Joined  09-19-2007

Yes. I reduction test frequently.  I’ll have to figure out how to do this effectively, since the live template ‘article’ has the double counting problem but I cannot get this ‘article2’ to do the same thing thus making reduction testing with a test template tricky.

Let me think about this one.

Profile
 
 
Posted: 31 March 2008 08:20 AM   [ Ignore ]   [ # 9 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23547
Joined  05-20-2002

Yea- that definitely posses a problem!  The other option is to go through each embed and really focus on why the ‘article’ template might be different.

Make sense?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 31 March 2008 03:42 PM   [ Ignore ]   [ # 10 ]  
Lab Assistant
RankRank
Total Posts:  169
Joined  09-19-2007

article and article2 are definitely the same.  I’ve copied the contents several times with multiple tests.  I’ve also checked to make sure the template properties are the same.  It’s a real mystery.

ALSO, I just swapped the file names using the template preferences interface.  The file ‘article2’ that used to work is now names ‘article’  and now, it double counts.

is article a reserved word?

Profile
 
 
Posted: 01 April 2008 09:50 AM   [ Ignore ]   [ # 11 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23547
Joined  05-20-2002

No- article isn’t a reserved word- could be running into an issue with an actual entry url_title of ‘article’- but I don’t quite get why it would double count in that case.  Still- worth a look.  If you run a query

SELECT * FROM exp_weblog_titles WHERE url_title='article'


Anything come back?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 01 April 2008 01:42 PM   [ Ignore ]   [ # 12 ]  
Lab Assistant
RankRank
Total Posts:  169
Joined  09-19-2007

I tried that and no search results.  Just to make sure it was working, I changed ‘article’ to a valid title and it did return that post.

Profile
 
 
Posted: 01 April 2008 02:32 PM   [ Ignore ]   [ # 13 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32921
Joined  05-14-2004

Ok, the template that is double counting, just one last quick test on that - if you simply rename the template to something like “booya” - does it double count?  You can change it right back after that.

Also, have you tried turning on template debugging?  Any erroneous results in that?

 Signature 
Profile
MSG
 
 
Posted: 01 April 2008 09:08 PM   [ Ignore ]   [ # 14 ]  
Lab Assistant
RankRank
Total Posts:  169
Joined  09-19-2007

When I changed the template name, it did not double count.  I even called the template article_view and in that case it did not double count either.

I have not done any template debugging yet.  Are you meaning there is a switch I can turn on to look for output errors?

Profile
 
 
Posted: 02 April 2008 08:51 AM   [ Ignore ]   [ # 15 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32921
Joined  05-14-2004

You can turn on template debugging to see what the parser sees.  Admin -> System Preferences -> Output and Debugging Preferences.

 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 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65087 Total Logged-in Users: 40
Total Topics: 82226 Total Anonymous Users: 23
Total Replies: 441925 Total Guests: 215
Total Posts: 524151    
Members ( View Memberlist )