lokety
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Recently Popular] Upgrade to 0.6.2 – visit count got resetFolks, a good alternative that I’ve found and installed is Popularity Contest. Check it out:
Forum: Plugins
In reply to: [Plugin: Recently Popular] Upgrade to 0.6.2 – visit count got resetI observed the same upgrade plugin issue as these guys above, but I managed to get it activated and behaving OK.
I noticed that I do have records in wp_recently_popular table but WP Tuner showed the following sql error:
SELECT
rp.hitsAS hits,rp.post_idASpost_id,p.post_titleASpost_title,p.post_dateASpost_date,u.display_nameASdisplay_name,u.user_urlASuser_url,t.nameAScategoryFROM ( SELECT COUNT(post_id) AShits, MIN(ts) ASts, MIN(user_type) ASuser_type, MIN(post_id) ASpost_idFROM wp_recently_popular WHEREts> (CURRENT_TIMESTAMP() – INTERVAL 7 DAY) GROUP BYpost_idORDER BYhitsDESC ) ASrpLEFT JOIN wp_posts ASpONrp.post_id=p.IDLEFT JOIN wp_users ASuONp.post_author=u.IDLEFT JOIN wp_term_relationships AStrONp.ID=tr.object_idLEFT JOIN wp_term_taxonomy ASttONtr.term_taxonomy_id=tt.term_taxonomy_idLEFT JOIN wp_terms AStONtt.term_id=t.term_idWHERE 1 ANDrp.user_type= 1 ANDp.post_type= ‘post’ GROUP BYrp.post_idORDER BYrp.hitsDESC,rp.tsDESC LIMIT 10Error in query:
Can’t group on ‘post_id’My guess the ‘group by’ and ‘order by’ don’t match, so records are returned anyway.
Hope this helps you fix our “stats reset” problem.