[resolved] Miscounting next entries (8 posts)

  1. f_magician
    Posted 3 years 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?


  2. Lester Chan
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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
    Plugin Author

    Posted 3 years ago #

    How about the default twentytwelve theme?

  5. f_magician
    Posted 2 years 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
    Plugin Author

    Posted 2 years 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
    Posted 2 years 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 (Hiroshi Urabe)
    Posted 2 years 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 );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic