WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostViews
[resolved] Miscounting next entries (8 posts)

  1. f_magician
    Member
    Posted 12 months ago #

    I'm now testing WP-PostViews 1.65 on WP 3.5.2.
    I'm counting PageViews only my posts, not my pages.

    The following problems happened only when the permalink setting
    is 'not' default.
    On the default permalink setting, the problems didn't happen.
    But I'd like to use slug-based permalink, so I hope the problems
    will be fixed.

    ----

    For example, I have 3 posts named A , B and C.
    B is posted just after A, and C is posted just after B.

    When I access A, A's counter is increased by 1.
    Then I go out to B, B's counter is increased by 2.
    Moreover I reload B, both B and C's counters are increased by 1.
    Finally I go out to A, both A and B's counters are increased by 1.

    Maybe WP-PostViews increases the next posts by mistake.
    Is there any idea to solve the problem?

    http://wordpress.org/extend/plugins/wp-postviews/

  2. Lester Chan
    Member
    Plugin Author

    Posted 12 months ago #

    That is weird, what is the permalink structure you are using? See if I can reproduce it on my end.

    Also are you using the default theme?

    PostViews hook on to wp_head to see if your post can be counted. I can't find anywhere in the code that might trigger it more than 1 times.

  3. f_magician
    Member
    Posted 11 months ago #

    > Lester
    Thanks for your reply.

    I tried all the patterns of permalink, and the problems happen
    only excepts the default setting (ID-based URL).
    My site is a part of a Multisite.
    My theme is 'Responsive'.

    I checked wp_head on the php codes, but only one was found.

  4. Lester Chan
    Member
    Plugin Author

    Posted 11 months ago #

    How about the default twentytwelve theme?

  5. f_magician
    Member
    Posted 11 months ago #

    Sorry for my late reply.

    I tested Twenty Twelve and all other settings I could think of.
    The problems may occur when I use Firefox 22.0.
    If I use other browsers like IE or Safari, the problems don't happen.
    The problems occur both Windows and Macintosh systems.

  6. Lester Chan
    Member
    Plugin Author

    Posted 11 months ago #

    I don't see how different browsers/systems can cause the views to be difference since it doesn't rely of Javascript to count the views unless you are using caching plugin.

  7. f_magician
    Member
    Posted 11 months ago #

    I'm using pure Firefoxes and there is no add-on.
    Maybe any other Firefox users have same problems.

    I'll use IE or Safari with the plugin for the present.
    If possible, the problems are resolved in future release.

    Thank you.

  8. Toro_Unit
    Member
    Posted 11 months ago #

    The problem has occurred in my firefox too.

    By deleting <link rel="prev"> and <link rel="next"> in wp_head, it has been resolved.

    In functions.php

    add_action( "wp_loaded", "remove_adjacent_posts_rel_link_wp_head", 100 );
    function remove_adjacent_posts_rel_link_wp_head() {
      remove_action( "wp_head", "adjacent_posts_rel_link_wp_head", 10 );
    }

Reply

You must log in to post.

About this Plugin

About this Topic