All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: Postviews shows everywhere "1" after Upgrade to 2.9  (Read 564 times)

0 Members and 1 Guest are viewing this topic.

Offline xspoof3

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: custom
Postviews shows everywhere "1" after Upgrade to 2.9
« on: 29 December 2009, 18:55 »
After i upgraded to WP 2.9 postviews shows only "1" on every post.
Code for postviews: <?php if(function_exists('the_views')) { the_views(); } ?>

Only the Widget that displays the most viewed Posts shows correct views.

I already tried disabling all other plugins and switching to the default theme. Doesnt help, same problem,
only widget works.

Any Idea what could be wrong?

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,535
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Postviews shows everywhere "1" after Upgrade to 2.9
« Reply #1 on: 30 December 2009, 01:13 »
You might want to check if there is more than 1 custom field called "views" in the custom post meta by editing the post in WP-Admin.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline caledosphere

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: Franck THERIAUX
Re: Postviews shows everywhere "1" after Upgrade to 2.9
« Reply #2 on: 30 December 2009, 12:25 »
I confirm there is a bug and no there is not a double on customfield in admin
I use the plugin more than 2 years

regards

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,535
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Postviews shows everywhere "1" after Upgrade to 2.9
« Reply #3 on: 30 December 2009, 16:58 »
Hmm, I have no idea, it works fine for me on two of my installation and of course I have used them for more than 2 years.

Try placing the code after <?php the_content(); ?> in the default theme index.php. Also checked your wp_postmeta table using phpmyadmin and see if you can find any fields of "meta_key" with a value "views" and see are they any 1 value.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline xspoof3

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: custom
Re: Postviews shows everywhere "1" after Upgrade to 2.9
« Reply #4 on: 30 December 2009, 20:27 »
You might want to check if there is more than 1 custom field called "views" in the custom post meta by editing the post in WP-Admin.


That's the point. All my posts have exactly 2 fields called "views". Any way to automatically delete one field?

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,535
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Postviews shows everywhere "1" after Upgrade to 2.9
« Reply #5 on: 31 December 2009, 03:59 »
You can't actually, you have to delete 1 by 1 or uninstall the plugin so all the views can deleted but you have to start over again. This is more of a data corruption as one user also encounter the same thing when he upgraded his DB.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.