WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
Post counts gone haywire in past few days (8 posts)

  1. Robin
    Member
    Posted 1 year ago #

    I noticed about three days ago that the 'popular' post counts on our site have gone haywire ... only one of the most recent popular posts is rating, and several old pages which get few views are showing up.

    http://horsetalk.co.nz

    In the WPP widget, we had "Most read, past 7 days", and this also has gone haywire ... ie, articles with hundreds of views not showing up, in favour of older pages (not posts). I've had to replace this temporarily with "Most read, past 30 days" to get a halfway sensible count of posts.

    On reading through this forum I went back to versions 2.3.2, 2.3.3. and 2.3.4 and tested in turn, to no avail. Deleted cache also.

    It's worked fine up til a few days ago ... any suggestions??

    thanks ...

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

  2. teyruu
    Member
    Posted 1 year ago #

    I have the same problem...

    I noticed that I used to have the admin-ajax.php ajax script appearing on the post, but now its gone with the current updates.

    Was the call to admin-ajax.php specifically removed?

  3. teyruu
    Member
    Posted 1 year ago #

    I think I may have found the problem: on Tools, Data Tools, Ajaxify widget - it should be enabled on w3total cache.

    But if you enable it then widgets will be loaded via ajax as well as the counting script.

    I had trouble with this since I'm using jquery on the output of the popular list. So I just disabled Ajaxify and just placed this on the single posts:

    <?php
    $nonce = wp_create_nonce('wpp-token');
    global $wp_query;
    wp_reset_query();
    $id1 = $wp_query->post->ID;
    ?>
    
    <script type="text/javascript">
        /* <![CDATA[ */
    	jQuery.post('<?php echo admin_url('admin-ajax.php'); ?>', {action: 'wpp_update', token: '<?php echo $nonce; ?>', id: <?php echo $id1; ?>}, function(data){/*alert(data);*/});
        /* ]]> */
    </script>
  4. Robin
    Member
    Posted 1 year ago #

    I am not using that tool, so that's not going to work for me!

    I've had to disable both instances of Popular Posts appearing on the site.

    Very frustrating.

  5. teyruu
    Member
    Posted 1 year ago #

    What caching plugin are you using Robin?

  6. Robin
    Member
    Posted 1 year ago #

    We have WP Super Cache.

  7. teyruu
    Member
    Posted 1 year ago #

    Ah I think the plugin is really broken even with the changes I made above. I hope it would be resolved soon.

  8. Robin
    Member
    Posted 1 year ago #

    I think you are right ... I am changing to another, trying out nrelate for now but may go on to something else that can be customised a little easier.

    thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.