• The WP-PostViews plugin stopped working (not completly, it just counts the administrator views but none of the other people or something like that) since I updated WordPress to 2.9.

    Does anyone know how to solve the problem?

Viewing 15 replies - 1 through 15 (of 15 total)
  • same happened to me after upgrade…don’t know where to start, I tried to reinstall, but it did not help.

    Hmm, works fine for me, what about on the default theme without any other plugins activated? Are you using WP-SuperCache?

    If you are trust me, please drop me an email (lesterchan AT gmail) with your FTP username and password, I will debug it live on your site as I can’t reproduce the problem on my end.

    Dear Lesterchan, mine neither. The views doesn’t move from zero even in wp-stats it shows hundreds. I don’t use WP-Superchache.

    Additionally, when I deactivated the plugin, all my contents in my website (https://www.sekolahku.info/) are missing. So I have to carefully delete the call to the plugin (the_view) one by one.

    It conflicts with Ajax Edit Comments.

    Yes somehow it does conflict with Ajax Edit Comments.

    But only after wordpress 2.9 upgrade, as I noticed.

    Add this code in the wp-postviews.php on line 62:

    if (is_int($post)) {
          $post = get_post($post);
       }

    Code is given by the AEC developer and found it in Post Views Forum. It worked for me.

    @agnostosx
    Thank you so much! it did work for me..
    and it started to count views again!

    Thanks AgnostosX!! It works!! ??

    @agnostosx, thank you for your advise, but can you do me a little bit more favor?

    I am not good in coding, so putting it on line 62 is not simple enough for a beginner like me. Can you tell me what code preceding that line or after that?

    I put it after

    ### Function: Calculate Post Views

    and my the_views() call is in main index template (index.php).

    but as you can see in my website it’s not moving from zero. (The post view statement is right below the post title after the notepad icon)

    Thank you in advance.

    Thank you very much Finally it’s work perfectly on my Blog with Wp 2.9.2,
    AgnostosX you are agreat

    @ gilig
    Sorry for the delay. Put the code after this:

    ### Function: Calculate Post Views
    add_action('wp_head', 'process_postviews');
    function process_postviews() {
    	global $user_ID, $post;

    halluzineyt

    (@halluzineyt)

    Hello im encountering this now, but sadly i checked my plugins and they seem to be alright can somebody run through my codes is there any wrong codes https://www.flippish.com/laughter-yoga/2010/11/24/

    halluzineyt

    (@halluzineyt)

    both wp-postviews and wp-postratings doesnt work

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[WP-PostViews] Not counting views since 2.9 update’ is closed to new replies.