WordPress.org

Ready to get started?Download WordPress

Forums

[WP-PostViews] Not counting views since 2.9 update (16 posts)

  1. borreicho
    Member
    Posted 4 years ago #

    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?

  2. pasevin
    Member
    Posted 4 years ago #

    same happened to me after upgrade...don't know where to start, I tried to reinstall, but it did not help.

  3. Lester Chan
    Member
    Posted 4 years ago #

    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.

  4. gilig
    Member
    Posted 4 years ago #

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

  5. gilig
    Member
    Posted 4 years ago #

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

  6. AgnostosX
    Member
    Posted 4 years ago #

    It conflicts with Ajax Edit Comments.

  7. pasevin
    Member
    Posted 4 years ago #

    Yes somehow it does conflict with Ajax Edit Comments.

  8. pasevin
    Member
    Posted 4 years ago #

    But only after wordpress 2.9 upgrade, as I noticed.

  9. AgnostosX
    Member
    Posted 4 years ago #

    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.

  10. bareed235
    Member
    Posted 4 years ago #

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

  11. Wis_Alien
    Member
    Posted 4 years ago #

    Thanks AgnostosX!! It works!! :)

  12. gilig
    Member
    Posted 4 years ago #

    @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.

  13. gl@
    Member
    Posted 4 years ago #

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

  14. AgnostosX
    Member
    Posted 4 years ago #

    @ 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;
  15. halluzineyt
    Member
    Posted 3 years ago #

    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 http://www.flippish.com/laughter-yoga/2010/11/24/

  16. halluzineyt
    Member
    Posted 3 years ago #

    both wp-postviews and wp-postratings doesnt work

Topic Closed

This topic has been closed to new replies.

About this Topic