Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues
Author Message
valdarez
Worker
Worker



Joined: Jan 22, 2007
Posts: 104

PostPosted: Sun Nov 18, 2007 10:13 am Reply with quote

For some reason, when the main page is viewed, the stats show 2 hits being made. Any idea what the call for updating the stats is so I can grep the theme and see if it's being called more than once?

Note, it only shows 2 hits on the main page. It shows 2 hits for everyone, not just the admin. All other pages only have 1 hit being registered (as expected).
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Nov 18, 2007 12:39 pm Reply with quote

grep won't necessarily tell you that. It could be that the theme is being called twice for some reason. When you call your main page do you see it being loaded twice? It might happen really quick so you have to look closely.
 
View user's profile Send private message
valdarez







PostPosted: Sun Nov 18, 2007 1:04 pm Reply with quote

No, it doesn't appear to be loading twice. There's lots of pictures / content. I think I could tell if it were displaying two times.
 
Raven







PostPosted: Sun Nov 18, 2007 1:09 pm Reply with quote

grepping the theme probably won't help you as the stats are done through the header.php file. Towards the end of the script you will see include_once('includes/counter.php');. That's where the stats are updated.
 
valdarez







PostPosted: Sun Nov 18, 2007 1:28 pm Reply with quote

Weird, I don't see any duplicate calls, and everything looks normal. I wonder if this is another 'GoDaddy' issue.
 
Raven







PostPosted: Sun Nov 18, 2007 3:11 pm Reply with quote

Did you try just looking for counter in your public_html folder?
 
valdarez







PostPosted: Sun Nov 18, 2007 4:26 pm Reply with quote

No, but this may be yet another GoDaddy issue. I'll post back on whether it's still occurring after I have switched providers. Thanks for the help guys.
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Nov 19, 2007 12:47 am Reply with quote

You could put some code to see whether includes/counter.php is actually being called more than once

Code:


if (!defined('COUNTED)) {
  define('COUNTED',true);
} else {
  die('includes/counter.php is being called more than once');
}

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©