• since I updated the plugin to version 1.77 it doesn’t work anymore
    the views counter gives me 0 or at most 1 or 2 for all articles

    WordPress 6.2 with Honeymoon theme

    is it possible to fix it?

    Thank you!

    Bruon

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • I am just update and for me work fine but i dont use shortcode maybe is problem on shortcode

    Plugin Author Lester Chan

    (@gamerz)

    It might be because you are using a caching plugin, and the cache is caching the old views.

    I had same problem. Now I found that it started counting after I stopped the plugin WP fastest Cache. It used to work together.

    WP fastest Cache can skip caching of certain file or Js. Im wondering what file shoud I skip caching ?

    • This reply was modified 1 year, 6 months ago by cwhiro.
    • This reply was modified 1 year, 6 months ago by cwhiro.

    I found version 1.77 stopped counting regardless WP Fastest cache plugin. Now I made rollback to version 1.76.1, then it started counting.

    Plugin Author Lester Chan

    (@gamerz)

    Only reason I can think of is breaking is the nonce of the page is cached and hence when it is send, it is outdated.

    Same problem here. Not counting views after the update.

    I have cleared all caches, browsers, cloudflare etc. But no luck.

    Please any fix for this? Thanks

    Same issue here. Rolling back to 1.76.1 resolves the issue.

    Plugin Author Lester Chan

    (@gamerz)

    Can I double-check that it is not counting or not displaying the updated count?

    This is the change that likely broke it https://github.com/lesterchan/wp-postviews/commit/3cd09cd654026fc5c12e7307733a354fa11f33ec

    It introduces nonce for security for counting and removes the dependency for jQuery. So I am unsure if the nonce is being cached on the page.

    So if anyone can see the AJAX request and response, let me know. I will need to see the issue on the site itself since i don’t use any caching plugin myself.

    • This reply was modified 1 year, 6 months ago by Lester Chan.
    • This reply was modified 1 year, 6 months ago by Lester Chan.

    Hi Lester

    I uninstalled caching plugins, and deactivated all plugins except WP post views. Changed theme to Twenty Twenty-one.

    My summary is that I need to set “Use AJAX To Update Views” to NO regardless of the presence or absence of caching plugins.

    The followings are my trial.

    Counting = I check changing number of view on custom field with log-in, and check it from other divice without log-in.

    1.76.1
    Count Views From: Everyone
    Use AJAX To Update Views: YES
    Device with log-in : Counting and displaying correct number
    Device without log-in : Counting and displaying correct number
    IT WORKS !

    1.76.1
    Count Views From: Guests Only
    Use AJAX To Update Views: YES
    Device with log-in : No Counting and displaying correct number
    Device without log-in : Counting and displaying correct number
    IT WORKS !

    1.77
    Count Views From: Everyone
    Use AJAX To Update Views: YES
    Device with log-in : No Counting and keep displaying same number
    Device without log-in : No Counting and keep displaying same number
    It does not work.

    1.77
    Count Views From: Guests Only
    Use AJAX To Update Views: YES
    Device with log-in : No Counting and keep displaying same number
    Device without log-in : No Counting and keep displaying same number
    It does not work.

    1.77
    Count Views From: Everyone
    Use AJAX To Update Views: NO
    Device with log-in : Counting and displaying correct number
    Device without log-in : Counting and displaying correct number
    IT WORKS.

    1.77
    Count Views From: Guests Only
    Use AJAX To Update Views: NO
    Device with log-in : No Counting and keep displaying same number
    Device without log-in : Counting and displaying correct number
    IT WORKS.

    Plugin Author Lester Chan

    (@gamerz)

    Weird I tested with:
    Count Views From: Everyone
    Use AJAX To Update Views: YES

    On my test site and it works for me. There is an AJAX call being fired to update the views. Only the displays is not updated which is expected.

    You can see it in action https://lesterchan.net/wordpress/2021/02/27/test-polls/

    • This reply was modified 1 year, 6 months ago by Lester Chan.

    Same problem.
    WP Super Cache 1.9.4 + WP-PostViews 1.77 – the counter does not work.
    WP Super Cache 1.9.4 + WP-PostViews 1.76.1 – Counter works.
    Rolled back to 1.76.1

    Same problem here, please fix ASAP ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘plugin not working after update 1.77’ is closed to new replies.