I’ve the same issue, same version…
EDIT:
Oops, I forget my theme and plugin.
My theme: BlogoLifePRO V 1.1.4 by WPlook Team
Plugins:
- Antispam Bee
- Cookie Law Info
- Disqus Comment System
- Jetpack by WordPress.com
- Lightbox Plus Colorbox
- mqTranslate
- Redirection
- Report Content
- Stop Self Pings
- TinyMCE Advanced
- Tumblr Crosspostr
- Tumblr Widget
- WordPress iSell – Sell Digital Downloads
- WordPress SEO
- WP-Memory-Usage
- WP CleanFix
- WP Hide Post
- XML Sitemap & Google News feeds
Always newest versions…
WordPress 3.9.2.
Greetings
double counted, same here.
is this plug still being maintained?
I have fixed the issue in my site.
the root cause for the double count is that. in this plusin, it add filter to default the_content function.
add_filter(‘the_content’, ‘kento_pvc_display’);
in function kento_pvc_display, it insert data to database.
therefore, if you page or post have code call the_content twice or three times. your count will double or triple. the fix is to put follow code in the beginning of kento_pvc_display function.
function kento_pvc_display($cont){
global $index;
$index = $index+1;
if($index>1)
{
return $cont;
}
…
It will fix the problem and improve your website performance.
the plugin owner own me on this. 🙂
Yes he does!
Thank you, it worked well now.
I applied the fix from above to the index.php file in the kento plugin folder replacing
function kento_pvc_display($cont){
with
function kento_pvc_display($cont){
global $index;
$index = $index+1;
if($index>1)
{
return $cont;
}
The counter on my post completely disappeared from the page. Did I miss something?
Thanks.
Anyone can you please let us know where the proper placement is?
vincent.jiang and lizanta, what file should the code be placed in? i have the same problem as beniEllis. Your help is appreciated!
PLEASE HELP US SOLVE THIS ISSUE 🙁 my site loads 2x the stats every hit. My post are loaded via ajax. Not sure why this happens.
I got it to work
I replaced
function kento_pvc_display($cont){
with
function kento_pvc_display($cont){
global $index;
$index = $index+1;
if($index>1)
{
return $cont;
}
then i used the readme file to and inserted the php code for the counter where i needed it. and… it worked…!!!
Still no luck. The least I can get is 2 hits per visit and I actually got it up to 4. Pretty frustrated. 🙁